Skip to content

Commit

Permalink
👷 misc(CD): use PyInstaller instead of Nuitka
Browse files Browse the repository at this point in the history
Goal: reduce false positives from AntiVirus software.
  • Loading branch information
welpo committed Dec 27, 2024
1 parent cd2f346 commit cf7fcbf
Show file tree
Hide file tree
Showing 5 changed files with 230 additions and 302 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,28 +51,19 @@ jobs:
run: poetry install --only main,build

- name: Build executable
env:
NUITKA_WORKFLOW_INPUTS: >-
{
"standalone": true,
"onefile": true,
"assume-yes-for-downloads": true,
"output-dir": "build",
"output-file": "${{ startsWith(matrix.os, 'windows') && 'shuku.exe' || 'shuku' }}"
}
shell: bash
run: poetry run python -m nuitka --github-workflow-options shuku/cli.py
run: poetry run pyinstaller --clean shuku.spec

- name: Generate build attestations
uses: actions/attest-build-provenance@v2
with:
subject-path: 'build/shuku*'
subject-path: 'dist/shuku*'

- name: Upload build
uses: actions/upload-artifact@v4
with:
name: shuku-${{ runner.os }}-build
path: build/shuku*
path: dist/shuku*
if-no-files-found: error
compression-level: 0
retention-days: 14
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ __pycache__/
*coverage*
.vscode/
dist/
build/
Loading

0 comments on commit cf7fcbf

Please sign in to comment.