Skip to content

Commit 6635543

Browse files
committed
Trim backend build
1 parent 5bdba13 commit 6635543

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,19 @@ jobs:
3232
- name: Install Python dependencies
3333
run: |
3434
python -m pip install --upgrade pip
35-
pip install -r backend/requirements.txt
36-
pip install pyinstaller
35+
pip install --no-cache-dir -r backend/requirements.txt
36+
pip install --no-cache-dir pyinstaller
37+
38+
- name: Install UPX (Compression)
39+
shell: bash
40+
run: |
41+
if [ "$RUNNER_OS" == "Linux" ]; then
42+
sudo apt-get update && sudo apt-get install -y upx
43+
elif [ "$RUNNER_OS" == "macOS" ]; then
44+
brew install upx
45+
elif [ "$RUNNER_OS" == "Windows" ]; then
46+
choco install upx
47+
fi
3748
3849
- name: Install dependencies
3950
run: npm install

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,50 +92,58 @@
9292
</table>
9393
</div>
9494

95-
9695
# FAQ
9796

9897
**Does this app stream from peers?**
98+
9999
> No, It does not stream from peers, it streams from the user himself after the file is saved.
100100

101101
---
102102

103103
**Will there only be one P2P source?**
104+
104105
> No, making it a large P2P source aggregator is the grand plan.
105106

106107
---
107108

108109
**Which files does this app reshare back to the P2P network?**
110+
109111
> Every single one of the file that you download or put in your library gets reshared back.
110112

111113
---
112114

113115
**How is it different from any other P2P client?**
116+
114117
> It's not, infact, it uses well known and maintained Nicotine+ in backend.
115118
116119
---
117120
118121
**Can it replace my current music streaming service/provider?**
122+
119123
> No, this is not a replacement, they are simply a lot more convenient, thats why only enthusiasts actually stick around.
120124
121125
---
122126
123127
**How accurate is the fake flac analyser?**
128+
124129
> The algo works well with low effort fake flac (which are the most popular type of fakes) and fails with old files but, it just tags the audio and doesn't actually remove them so that you can see for yourself too.
125130

126131
---
127132

128133
**How big is the library?**
134+
129135
> Depends. larger than any other service, but you might find things there that you can't here.
130136
131137
---
132138
133139
**Do I have to setup anything else to use the app?**
140+
134141
> No, besides network requirments, its standalone.
135142
136143
---
137144
138145
**What does Sonosano mean?**
146+
139147
> Pure/healthy Sound, name inspired from 20th century grape bricks.
140148
141149
# The Sonosano Team

backend/sonosano.spec

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,22 @@ from PyInstaller.utils.hooks import collect_data_files
55
datas = [('src/pynicotine', 'pynicotine')]
66
datas += collect_data_files('uroman')
77

8+
excluded_modules = [
9+
'tkinter', 'test', 'unittest', 'pydoc', 'pdb', 'distutils',
10+
'PyQt5', 'PyQt6', 'PySide2', 'PySide6', 'wx', 'Gtk', 'GTK',
11+
'pandas', 'notebook', 'share', 'icons', 'ipython', 'jedi'
12+
]
13+
814
a = Analysis(
915
['src/main.py'],
1016
pathex=[],
1117
binaries=[],
1218
datas=datas,
1319
hiddenimports=[],
1420
hookspath=[],
15-
hooksconfig={},
21+
hooksconfig={},
1622
runtime_hooks=[],
17-
excludes=[],
23+
excludes=excluded_modules,
1824
noarchive=False,
1925
)
2026
pyz = PYZ(a.pure)

0 commit comments

Comments
 (0)