mirror of
https://github.com/NinjaCheetah/NUSGet.git
synced 2025-07-07 09:11:01 -04:00
Separate standalone and onefile packages on Windows
This commit is contained in:
parent
690a14b77c
commit
bb93248b62
19
.github/workflows/python-build.yml
vendored
19
.github/workflows/python-build.yml
vendored
@ -120,6 +120,25 @@ jobs:
|
||||
with:
|
||||
path: D:\a\NUSGet\NUSGet\NUSGet.dist
|
||||
name: NUSGet-Windows-bin
|
||||
|
||||
build-windows-onefile:
|
||||
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Enable Developer Command Prompt
|
||||
uses: ilammy/msvc-dev-cmd@v1.13.0
|
||||
- name: Set up Python 3.12
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
- name: Build Onefile Package
|
||||
run: .\Build.ps1 build-onefile
|
||||
- name: Upload Onefile Package
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
10
Build.ps1
10
Build.ps1
@ -11,6 +11,12 @@ $buildNUSGet = {
|
||||
python -m nuitka --show-progress --assume-yes-for-downloads NUSGet.py
|
||||
}
|
||||
|
||||
$buildNUSGetOnefile = {
|
||||
Write-Host "Building NUSGet in onefile mode..."
|
||||
python build_translations.py
|
||||
python -m nuitka --show-progress --assume-yes-for-downloads --onefile NUSGet.py
|
||||
}
|
||||
|
||||
$cleanNUSGet = {
|
||||
Write-Host "Cleaning..."
|
||||
Remove-Item -Recurse -Force NUSGet.exe, ./NUSGet.build/, ./NUSGet.dist/, ./NUSGet.onefile-build/
|
||||
@ -21,6 +27,10 @@ switch ($Task.ToLower()) {
|
||||
& $buildNUSGet
|
||||
break
|
||||
}
|
||||
"build-onefile" {
|
||||
& $buildNUSGetOnefile
|
||||
break
|
||||
}
|
||||
"clean" {
|
||||
& $cleanNUSGet
|
||||
break
|
||||
|
@ -7,7 +7,7 @@
|
||||
# nuitka-project: --macos-create-app-bundle
|
||||
# nuitka-project: --macos-app-icon={MAIN_DIRECTORY}/resources/icon.png
|
||||
# nuitka-project-if: {OS} == "Windows":
|
||||
# nuitka-project: --onefile
|
||||
# nuitka-project: --standalone
|
||||
# nuitka-project: --windows-icon-from-ico={MAIN_DIRECTORY}/resources/icon.png
|
||||
# nuitka-project: --windows-console-mode=disable
|
||||
# nuitka-project-if: {OS} in ("Linux", "FreeBSD", "OpenBSD"):
|
||||
@ -38,7 +38,7 @@ from modules.download_batch import run_nus_download_batch
|
||||
from modules.download_wii import run_nus_download_wii
|
||||
from modules.download_dsi import run_nus_download_dsi
|
||||
|
||||
nusget_version = "1.4.1"
|
||||
nusget_version = "1.4.2"
|
||||
|
||||
regions = {"World": ["41"], "USA/NTSC": ["45"], "Europe/PAL": ["50"], "Japan": ["4A"], "Korea": ["4B"], "China": ["43"],
|
||||
"Australia/NZ": ["55"]}
|
||||
|
@ -1,5 +1,5 @@
|
||||
pyside6
|
||||
nuitka~=2.6.0
|
||||
nuitka
|
||||
git+https://github.com/NinjaCheetah/libWiiPy
|
||||
libTWLPy
|
||||
zstandard
|
||||
|
Loading…
x
Reference in New Issue
Block a user