Skip to content

Commit

Permalink
Fix: missing audio file in packaged bundles (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts authored Mar 20, 2024
2 parents 7f7bdb4 + d1d8c13 commit 08ac8e5
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/builder_releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,14 @@ jobs:
path: dist/DicoGIS-gui.bin
if-no-files-found: error

- name: Install tests fixtures
run: python -m pip install -U gisdata -t ./tests/fixtures

- name: Minimal integration test
run: |
./dist/DicoGIS-cli.bin --help
./dist/DicoGIS-cli.bin --version
./dist/DicoGIS-cli.bin list inventory --input-folder ./tests/ --language EN
build-windows:
name: "🏠 Windows"
Expand Down Expand Up @@ -151,10 +155,14 @@ jobs:
path: dist/DicoGIS-gui.exe
if-no-files-found: error

- name: Install tests fixtures
run: python -m pip install -U gisdata -t ./tests/fixtures

- name: Minimal integration test
run: |
./dist/DicoGIS-cli.exe --help
./dist/DicoGIS-cli.exe --version
./dist/DicoGIS-cli.exe list inventory --input-folder ./tests/ --language EN
release:
name: "🚀 GitHub Release"
Expand Down
7 changes: 6 additions & 1 deletion builder/pyinstaller_build_ubuntu_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@

PyInstaller.__main__.run(
[
"--add-binary={}:bin/img/".format((package_folder / "bin/img/").resolve()),
"--add-binary={}:bin/audio/".format(
package_folder.joinpath("bin/audio/").resolve()
),
"--add-binary={}:bin/img/".format(
package_folder.joinpath("bin/img/").resolve()
),
"--add-data={}:locale/".format((package_folder / "locale/").resolve()),
"--add-data=options_TPL.ini:.",
"--add-data=LICENSE:.",
Expand Down
7 changes: 6 additions & 1 deletion builder/pyinstaller_build_ubuntu_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@

PyInstaller.__main__.run(
[
"--add-binary={}:bin/img/".format((package_folder / "bin/img/").resolve()),
"--add-binary={}:bin/audio/".format(
package_folder.joinpath("bin/audio/").resolve()
),
"--add-binary={}:bin/img/".format(
package_folder.joinpath("bin/img/").resolve()
),
"--add-data={}:locale/".format((package_folder / "locale/").resolve()),
"--add-data=options_TPL.ini:.",
"--add-data=LICENSE:.",
Expand Down
7 changes: 6 additions & 1 deletion builder/pyinstaller_build_windows_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@

PyInstaller.__main__.run(
[
"--add-binary={};bin/img/".format((package_folder / "bin/img/").resolve()),
"--add-binary={}:bin/audio/".format(
package_folder.joinpath("bin/audio/").resolve()
),
"--add-binary={}:bin/img/".format(
package_folder.joinpath("bin/img/").resolve()
),
"--add-data={};locale/".format((package_folder / "locale/").resolve()),
"--add-data=options_TPL.ini;.",
"--add-data=LICENSE;.",
Expand Down
7 changes: 6 additions & 1 deletion builder/pyinstaller_build_windows_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@

PyInstaller.__main__.run(
[
"--add-binary={};bin/img/".format((package_folder / "bin/img/").resolve()),
"--add-binary={}:bin/audio/".format(
package_folder.joinpath("bin/audio/").resolve()
),
"--add-binary={}:bin/img/".format(
package_folder.joinpath("bin/img/").resolve()
),
"--add-data={};locale/".format((package_folder / "locale/").resolve()),
"--add-data=options_TPL.ini;.",
"--add-data=LICENSE;.",
Expand Down

0 comments on commit 08ac8e5

Please sign in to comment.