Skip to content

Commit

Permalink
fixed CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Sep 2, 2024
1 parent b15ec0d commit f5ab99b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/CI_build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:

- name: install dependencies
run: |
sudo apt install alsa-base libasound2-dev python3-tk python3-numpy
python3 -m pip install pyinstaller simpleaudio setuptools
- name: Build CI
Expand All @@ -22,7 +23,7 @@ jobs:
- name: Archive build
uses: actions/upload-artifact@v3
with:
name: ESC unlocker
name: ESC unlocker Linux
path: |
esc_unlocker_linux
retention-days: 7
4 changes: 2 additions & 2 deletions .github/workflows/CI_build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

- name: install dependencies
run: |
python3 -m pip install pyinstaller simpleaudio setuptools
python3 -m pip install pyinstaller simpleaudio setuptools tk numpy
- name: Build CI
run: |
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Archive build
uses: actions/upload-artifact@v3
with:
name: ESC unlocker
name: ESC unlocker windows
path: |
esc_unlocker_windows.exe
retention-days: 7
12 changes: 10 additions & 2 deletions package/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@
MCUPath = "MCU"

# Initialize the options for PyInstaller
options = "--onefile --windowed --hidden-import=simpleaudio --add-data=tools/windows:tools/windows --add-data bootloaders:bootloaders --add-data probes:probes"
options = "--onefile --windowed --hidden-import=simpleaudio --add-data bootloaders:bootloaders --add-data probes:probes"

shutil.rmtree("dist")
if is_windows:
options += " --add-data=tools/windows:tools/windows"
else:
options += " --add-data=tools/linux:tools/linux"

try:
shutil.rmtree("dist")
except Exception:
pass

# Get the list of subdirectories in the MCU directory
if os.path.exists(MCUPath):
Expand Down

0 comments on commit f5ab99b

Please sign in to comment.