Install standalone instead of onefile when using make install

This makes the app load faster, because the current install setup makes using the compressed onefile over the standalone build pointless and wastes time on launch.
This commit is contained in:
Campbell 2024-12-22 21:52:20 -05:00
parent 9dcaa22e89
commit 588b44381c
Signed by: NinjaCheetah
GPG Key ID: 670C282B3291D63D
3 changed files with 4 additions and 4 deletions

View File

@ -6,8 +6,10 @@ all:
$(CC) --show-progress --assume-yes-for-downloads NUSGet.py $(ARCH_FLAGS) -o NUSGet $(CC) --show-progress --assume-yes-for-downloads NUSGet.py $(ARCH_FLAGS) -o NUSGet
install: install:
rm -rd /opt/NUSGet/
install -d /opt/NUSGet install -d /opt/NUSGet
install NUSGet /opt/NUSGet/ cp -r ./NUSGet.dist/* /opt/NUSGet/
chmod 755 /opt/NUSGet/
install ./packaging/icon.png /opt/NUSGet/NUSGet.png install ./packaging/icon.png /opt/NUSGet/NUSGet.png
install ./packaging/NUSGet.desktop /usr/share/applications install ./packaging/NUSGet.desktop /usr/share/applications

View File

@ -341,8 +341,6 @@ class MainWindow(QMainWindow, Ui_MainWindow):
def check_batch_result(self, result: BatchResults): def check_batch_result(self, result: BatchResults):
if result.code != 0: if result.code != 0:
print(result.warning_titles)
print(result.failed_titles)
msg_box = QMessageBox() msg_box = QMessageBox()
if result.failed_titles: if result.failed_titles:
msg_box.setIcon(QMessageBox.Icon.Critical) msg_box.setIcon(QMessageBox.Icon.Critical)

View File

@ -1,6 +1,6 @@
[Desktop Entry] [Desktop Entry]
Name=NUSGet Name=NUSGet
Exec=/opt/NUSGet/NUSGet %U Exec=/opt/NUSGet/NUSGet.bin %U
Terminal=false Terminal=false
Type=Application Type=Application
Icon=/opt/NUSGet/NUSGet.png Icon=/opt/NUSGet/NUSGet.png