Skip to content

Commit

Permalink
Fix missing model in binaries
Browse files Browse the repository at this point in the history
- add path for models code into pyinstaller scripts
  • Loading branch information
Timozen committed Apr 22, 2024
1 parent feba090 commit 10d236a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ eval "$(conda shell.bash hook)"
conda activate jefapato
rm -r build
rm -r dist
pyinstaller --console --onefile --name JeFaPaTo --add-data frontend:frontend --add-data examples:examples --icon "frontend\assets\icons\icon.ico" main.py
pyinstaller --console --onefile --name JeFaPaTo --add-data src/jefapato:jefapato --add-data frontend:frontend --add-data examples:examples --icon "frontend\assets\icons\icon.ico" main.py
mv dist/JeFaPaTo dist/JeFaPaTo_linux
2 changes: 1 addition & 1 deletion build_mac-intel_v13.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ arch -x86_64 python3 -m pip install --upgrade --force-reinstall .

rm -rf build

arch -x86_64 pyinstaller --windowed --onefile --name JeFaPaTo --add-data frontend:frontend --add-data jefapato:jefapato --add-data examples:examples --icon "frontend/assets/icons/icon.icns" main.py
arch -x86_64 pyinstaller --windowed --onefile --name JeFaPaTo --add-data src/jefapato:jefapato --add-data frontend:frontend --add-data jefapato:jefapato --add-data examples:examples --icon "frontend/assets/icons/icon.icns" main.py

mkdir -p dist/intel
mv dist/JeFaPaTo.app dist/intel/JeFaPaTo.app
Expand Down
2 changes: 1 addition & 1 deletion build_mac-universal2_v13.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ python3 -m pip install --upgrade --force-reinstall .

rm -rf build

pyinstaller --windowed --onefile --name JeFaPaTo --add-data frontend:frontend --add-data jefapato:jefapato --add-data examples:examples --icon "frontend/assets/icons/icon.icns" main.py
pyinstaller --windowed --onefile --name JeFaPaTo --add-data src/jefapato:jefapato --add-data frontend:frontend --add-data jefapato:jefapato --add-data examples:examples --icon "frontend/assets/icons/icon.icns" main.py

# python3 setup.py py2app --arch=universal2
# # rename the created app
Expand Down
2 changes: 1 addition & 1 deletion build_windows-11.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
call activate jefapato
RMDIR /S /Q build
RMDIR /S /Q dist
pyinstaller --console --onefile --name JeFaPaTo --add-data frontend:frontend --add-data examples:examples --icon "frontend\assets\icons\icon.ico" main.py
pyinstaller --console --onefile --name JeFaPaTo --add-data src/jefapato:jefapato --add-data frontend:frontend --add-data examples:examples --icon "frontend\assets\icons\icon.ico" main.py
CD dist
RENAME JeFaPaTo.exe JeFaPaTo_windows.exe

0 comments on commit 10d236a

Please sign in to comment.