Skip to content

<feature> change build engine from pyinstaller to nuitka #142

<feature> change build engine from pyinstaller to nuitka

<feature> change build engine from pyinstaller to nuitka #142

Workflow file for this run

name: Package Application with Nuitka
on:
push:
branches: [ feature/nuitka-build ]
pull_request:
branches: [ feature/nuitka-build ]
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
- run: cp build/main.dist dist/windows
- run: cp src/google.source.rst dist/windows/google.source.rst
- run: cp src/google.target.rst dist/windows/google.target.rst
- run: cp src/deepl.source.rst dist/windows/deepl.source.rst
- run: cp src/deepl.target.rst dist/windows/deepl.target.rst
- run: cp src/youdao.source.rst dist/windows/youdao.source.rst
- run: cp src/youdao.target.rst dist/windows/youdao.target.rst
- run: cp src/youdao.source.rst dist/windows/openai.source.rst
- run: cp src/youdao.target.rst dist/windows/openai.target.rst
- run: cp src/cacert.pem dist/windows/cacert.pem
- uses: actions/upload-artifact@v4
with:
name: Action-Build
path: dist/windows