From ccdcb673111a2f57852596ed781baa08f61c738b Mon Sep 17 00:00:00 2001 From: csd4ni3l Date: Sun, 12 Oct 2025 21:39:38 +0200 Subject: [PATCH] Fix build and release script and use another version on Pypi to make it work --- .github/workflows/main.yml | 11 ++++++----- pyproject.toml | 2 +- wizard_vs_irs/__init__.py | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1caae41..42ef9d2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,7 +21,7 @@ jobs: architecture: "x64" cache: "pip" cache-dependency-path: | - **/requirements*.txt + requirements.txt - name: Install Dependencies run: pip install -r requirements.txt @@ -30,10 +30,10 @@ jobs: uses: Nuitka/Nuitka-Action@main with: nuitka-version: main - script-name: run.py + script-name: wizard_vs_irs/run.py nofollow-import-to: "*tk*,_codecs,encodings,multiprocessing,gi" disable-plugins: tk-inter,dill-compat,eventlet,gevent,pyqt5,pyqt6,pyside2,pyside6,delvewheel,pywebview,matplotlib,spacy,enum-compat,pbr-compat,gevent,pmw-freezer,transformers,upx,kivy,options-nanny,multiprocessing,gi - include-data-dir: assets=assets + include-data-dir: wizard_vs_irs/assets=assets include-data-files: CREDITS=CREDITS mode: standalone output-file: WizardvsIRS @@ -43,9 +43,9 @@ jobs: run: | mkdir -p zip_output if [ "${{ runner.os }}" = "Windows" ]; then - powershell.exe -Command "Compress-Archive -Path 'build/run.dist/*' -DestinationPath 'zip_output/WizardvsIRS-${{ runner.os }}.zip'" + powershell.exe -Command "Compress-Archive -Path 'build/wizard_vs_irs.run.dist/*' -DestinationPath 'zip_output/WizardvsIRS-${{ runner.os }}.zip'" else - cd build/run.dist + cd build/wizard_vs_irs.run.dist zip -r "../../zip_output/WizardvsIRS-${{ runner.os }}.zip" . fi @@ -54,6 +54,7 @@ jobs: with: name: WizardvsIRS-${{ runner.os }}.zip path: zip_output/WizardvsIRS-${{ runner.os }}.zip + release: name: Create GitHub Release needs: build diff --git a/pyproject.toml b/pyproject.toml index 8146819..d1a9610 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "wizard_vs_irs" -version = "0.1.0" +version = "0.1.1" description = "Wizard vs IRS" readme = "README.md" requires-python = ">=3.11" diff --git a/wizard_vs_irs/__init__.py b/wizard_vs_irs/__init__.py index b3c06d4..d1f2e39 100644 --- a/wizard_vs_irs/__init__.py +++ b/wizard_vs_irs/__init__.py @@ -1 +1 @@ -__version__ = "0.0.1" \ No newline at end of file +__version__ = "0.1.1" \ No newline at end of file