From 7202e37bcb0d188e0273fcae6df78d168ab8d401 Mon Sep 17 00:00:00 2001 From: Kirill Belousov Date: Thu, 23 Feb 2023 13:18:05 +0300 Subject: [PATCH] Removed pyinstaller build. Create bootstrap and build scripts for building with nuitka --- bootstrap.cmd | 2 ++ build-requirements-pyi.txt | 1 - build.cmd | 1 + sku-updater.spec | 44 -------------------------------------- 4 files changed, 3 insertions(+), 45 deletions(-) create mode 100644 bootstrap.cmd delete mode 100644 build-requirements-pyi.txt create mode 100644 build.cmd delete mode 100644 sku-updater.spec diff --git a/bootstrap.cmd b/bootstrap.cmd new file mode 100644 index 0000000..af5ecc6 --- /dev/null +++ b/bootstrap.cmd @@ -0,0 +1,2 @@ +python -m pip install -r requirements.txt +python -m pip install -r build-requirements-nuitka.txt \ No newline at end of file diff --git a/build-requirements-pyi.txt b/build-requirements-pyi.txt deleted file mode 100644 index d9ed9a7..0000000 --- a/build-requirements-pyi.txt +++ /dev/null @@ -1 +0,0 @@ -pyinstaller==5.7.0 diff --git a/build.cmd b/build.cmd new file mode 100644 index 0000000..9e870f2 --- /dev/null +++ b/build.cmd @@ -0,0 +1 @@ +python -m nuitka --standalone --onefile --prefer-source-code --assume-yes-for-downloads --remove-output --lto=yes --windows-uac-admin --company-name=Cyrmax --product-name=Sku_Updater --file-version=32.15 --product-version=32.15 --file-description="A console program to update your installation of Sku for WoW Classic" --copyright="Made by Cyrmax in 2022. MIT license" sku-updater.py \ No newline at end of file diff --git a/sku-updater.spec b/sku-updater.spec deleted file mode 100644 index 142bc0c..0000000 --- a/sku-updater.spec +++ /dev/null @@ -1,44 +0,0 @@ -# -*- mode: python ; coding: utf-8 -*- - - -block_cipher = None - - -a = Analysis( - ['sku-updater.py'], - pathex=[], - binaries=[], - datas=[], - hiddenimports=[], - hookspath=[], - hooksconfig={}, - runtime_hooks=[], - excludes=[], - win_no_prefer_redirects=False, - win_private_assemblies=False, - cipher=block_cipher, - noarchive=False, -) -pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) - -exe = EXE( - pyz, - a.scripts, - a.binaries, - a.zipfiles, - a.datas, - [], - name='sku-updater', - debug=False, - bootloader_ignore_signals=False, - strip=False, - upx=True, - upx_exclude=[], - runtime_tmpdir=None, - console=True, - disable_windowed_traceback=False, - argv_emulation=False, - target_arch=None, - codesign_identity=None, - entitlements_file=None, -)