<fix> fix unable to unpack due to path problem #178
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 | |
noinclude-data-files: src\resource | |
- run: mkdir dist\windows | |
- run: xcopy /E src\resource\ dist\windows\resource\ | |
- run: xcopy /E build\main.dist\ dist\windows\ | |
- run: xcopy src\supported_language dist\windows\supported_language\ | |
- 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 |