Skip to content

Commit

Permalink
chore: Update build workflow to simplify icon and settings handling f…
Browse files Browse the repository at this point in the history
…or PyInstaller
  • Loading branch information
techtanic committed Nov 2, 2024
1 parent 19bfa11 commit 69763fc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,11 @@ jobs:
matrix:
include:
- name: "DUCE-GUI-windows"
icon: "extra/DUCE-LOGO.ico"
mode: "-w"
script: "gui.py"
settings: "default_settings_gui_settings.json"
- name: "DUCE-CLI-windows"
icon: "extra/DUCE-LOGO.ico"
mode: "-c"
script: "cli.py"
settings: "default_settings_cli_settings.json"
steps:
- uses: actions/checkout@v4

Expand All @@ -36,13 +32,13 @@ jobs:

- name: Build ${{ matrix.name }}
run: >
pyinstaller -y -F ${{ matrix.mode }} -i "${{ matrix.icon }}" --clean --name "${{ matrix.name }}"
pyinstaller -y -F ${{ matrix.mode }} -i "extra/DUCE-LOGO.ico" --clean --name "${{ matrix.name }}"
--add-data "base.py;."
--add-data "colors.py;."
--add-data "${{ matrix.settings }};."
--add-data "default-duce-${{ matrix.script }}-settings.json;."
--add-data "README.md;."
--add-data "LICENSE;."
"${{ matrix.script }}"
"${{ matrix.script }}.py"
- name: Upload ${{ matrix.name }}.exe
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 69763fc

Please sign in to comment.