<fix> fix clean before unrpyc complete #163
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Package Application with Nuitka | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Setup Python | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.8' # Version range or exact version of a Python version to use, using SemVer's version range syntax | |
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified | |
cache: 'pip' # caching pip dependencies | |
- run: pip install -r src/requirements.txt | |
# Build python script into a stand-alone exe | |
- uses: Nuitka/Nuitka-Action@main | |
with: | |
nuitka-version: main | |
script-name: src/main.py | |
onefile: false | |
disable-console: true | |
standalone: true | |
enable-plugins: pyside6 | |
windows-icon-from-ico: src/main.ico | |
- run: mkdir dist\windows | |
- run: xcopy build\main.dist dist\windows /E | |
- run: xcopy src\supported_language dist\windows\supported_language\ | |
- run: xcopy src\unrpyc_python3 dist\windows\unrpyc_python3\ | |
- run: xcopy src\unrpyc_python2 dist\windows\unrpyc_python2\ | |
- run: xcopy src\qm dist\windows\qm\ | |
- run: xcopy src\custom_engine dist\windows\custom_engine\ | |
- run: copy src\custom.txt dist\windows\custom.txt | |
- run: copy src\hook_unrpa.rpy dist\windows\hook_unrpa.rpy | |
- run: copy src\openai_model.txt dist\windows\openai_model.txt | |
- run: copy src\hook_extract.rpy dist\windows\hook_extract.rpy | |
- run: copy src\hook_add_change_language_entrance.rpy dist\windows\hook_add_change_language_entrance.rpy | |
- run: copy src\rpatool dist\windows\rpatool | |
- run: copy src\font_style_template.txt dist\windows\font_style_template.txt | |
- run: copy src\cacert.pem dist\windows\cacert.pem | |
- run: copy src\main.ico dist\windows\main.ico | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Action-Build | |
path: dist/windows |