forked from NinjaCheetah/NUSGet
Added Linux packaging files and added linux-install to Makefile
This commit is contained in:
parent
bf09f3b18e
commit
439aebbdb8
5
.github/workflows/python-build.yml
vendored
5
.github/workflows/python-build.yml
vendored
@ -31,11 +31,10 @@ jobs:
|
||||
pip install -r requirements.txt
|
||||
- name: Build Package
|
||||
run: |
|
||||
pyside6-project build
|
||||
python -m nuitka --show-progress --include-data-dir=data=data --include-data-dir=resources=resources --assume-yes-for-downloads --onefile --plugin-enable=pyside6 NUSGet.py
|
||||
make linux
|
||||
- name: Prepare Package for Upload
|
||||
run: |
|
||||
mv NUSGet.bin ~/NUSGet
|
||||
mv NUSGet ~/NUSGet
|
||||
cd ~
|
||||
tar cvf NUSGet.tar NUSGet
|
||||
- name: Upload Package
|
||||
|
10
Makefile
10
Makefile
@ -1,6 +1,14 @@
|
||||
CC=python -m nuitka
|
||||
|
||||
linux:
|
||||
pyside6-project build
|
||||
nuitka3 --show-progress --include-data-dir=data=data --include-data-dir=resources=resources --assume-yes-for-downloads --onefile --plugin-enable=pyside6 NUSGet.py
|
||||
$(CC) --show-progress --include-data-dir=data=data --include-data-dir=resources=resources --assume-yes-for-downloads --onefile --plugin-enable=pyside6 NUSGet.py -o NUSGet
|
||||
|
||||
linux-install:
|
||||
install -d /opt/NUSGet
|
||||
install NUSGet /opt/NUSGet/
|
||||
install ./packaging/icon.png /opt/NUSGet/NUSGet.png
|
||||
install ./packaging/NUSGet.desktop /usr/share/applications
|
||||
|
||||
clean:
|
||||
rm NUSGet.bin
|
||||
|
22
README.md
22
README.md
@ -38,23 +38,37 @@ pip install -r requirements.txt
|
||||
Then, use the command for your platform to build an executable with Nuitka:
|
||||
|
||||
**Windows**
|
||||
```
|
||||
```shell
|
||||
python -m nuitka --show-progress --include-data-dir=data=data --include-data-dir=resources=resources --assume-yes-for-downloads --onefile --windows-icon-from-ico=resources/icon.png --plugin-enable=pyside6 NUSGet.py --windows-console-mode=disable
|
||||
```
|
||||
|
||||
**Linux**
|
||||
```
|
||||
python -m nuitka --show-progress --include-data-dir=data=data --include-data-dir=resources=resources --assume-yes-for-downloads --onefile --plugin-enable=pyside6 NUSGet.py
|
||||
```shell
|
||||
python -m nuitka --show-progress --include-data-dir=data=data --include-data-dir=resources=resources --assume-yes-for-downloads --onefile --plugin-enable=pyside6 NUSGet.py -o NUSGet
|
||||
```
|
||||
|
||||
**macOS**
|
||||
```
|
||||
```shell
|
||||
python -m nuitka --show-progress --include-data-dir=data=data --include-data-dir=resources=resources --assume-yes-for-downloads --onefile --plugin-enable=pyside6 NUSGet.py --macos-create-app-bundle --macos-app-icon=resources/icon.png
|
||||
```
|
||||
|
||||
The result will be a single binary named `NUSGet` that contains everything required to run NUSGet. No dependencies are needed on the target system.
|
||||
|
||||
|
||||
### For Linux Users:
|
||||
A Makefile has been included to both build and install NUSGet on Linux. This will automatically set up NUSGet under `/opt/` and install a .desktop file to `/usr/share/applications/` so you can use it like any other application.
|
||||
|
||||
First, use make to build NUSGet (this automates the step above):
|
||||
```shell
|
||||
make linux
|
||||
```
|
||||
|
||||
Then, run the install command with `sudo` (or your favorite alternative):
|
||||
```shell
|
||||
sudo make linux-install
|
||||
```
|
||||
|
||||
|
||||
## Why this and not NUSD?
|
||||
NUS Downloader (Nintendo Update Server Downloader), is an old tool for downloading titles from the Nintendo Update Servers for the Wii and DSi. Originally released in 2009, and effectively last updated in 2011, it stills works today, however it definitely shows its age, and is in need of a refresh. One of the major shortcomings of NUSD is that it only supports Windows, as most of the tools for the Wii from that era are written in C# and use the .NET Framework, especially since they tend to rely on the C# library libWiiSharp. NUSD also has far more limited support for DSi titles, and no support whatsoever for vWii titles.
|
||||
|
||||
|
9
packaging/NUSGet.desktop
Normal file
9
packaging/NUSGet.desktop
Normal file
@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Name=NUSGet
|
||||
Exec=/opt/NUSGet/NUSGet %U
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=/opt/NUSGet/NUSGet.png
|
||||
StartupWMClass=NUSGet
|
||||
Comment=A modern and supercharged NUS downloader built with Python and Qt6.
|
||||
Categories=Utility;
|
BIN
packaging/icon.png
Normal file
BIN
packaging/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
Loading…
x
Reference in New Issue
Block a user