From 588b44381cb16f5d3d294bf3ea8c9ece9ead8823 Mon Sep 17 00:00:00 2001 From: NinjaCheetah <58050615+NinjaCheetah@users.noreply.github.com> Date: Sun, 22 Dec 2024 21:52:20 -0500 Subject: [PATCH] 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. --- Makefile | 4 +++- NUSGet.py | 2 -- packaging/NUSGet.desktop | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index fa3ba98..39897e1 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,10 @@ all: $(CC) --show-progress --assume-yes-for-downloads NUSGet.py $(ARCH_FLAGS) -o NUSGet install: + rm -rd /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/NUSGet.desktop /usr/share/applications diff --git a/NUSGet.py b/NUSGet.py index e15ba9d..33dcc45 100644 --- a/NUSGet.py +++ b/NUSGet.py @@ -341,8 +341,6 @@ class MainWindow(QMainWindow, Ui_MainWindow): def check_batch_result(self, result: BatchResults): if result.code != 0: - print(result.warning_titles) - print(result.failed_titles) msg_box = QMessageBox() if result.failed_titles: msg_box.setIcon(QMessageBox.Icon.Critical) diff --git a/packaging/NUSGet.desktop b/packaging/NUSGet.desktop index 602c8b5..e27b18c 100644 --- a/packaging/NUSGet.desktop +++ b/packaging/NUSGet.desktop @@ -1,6 +1,6 @@ [Desktop Entry] Name=NUSGet -Exec=/opt/NUSGet/NUSGet %U +Exec=/opt/NUSGet/NUSGet.bin %U Terminal=false Type=Application Icon=/opt/NUSGet/NUSGet.png