From 10d236acd82c55674ec4da4d7390fbb36c1f5a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20B=C3=BCchner?= Date: Mon, 22 Apr 2024 09:02:55 +0200 Subject: [PATCH] Fix missing model in binaries - add path for models code into pyinstaller scripts --- build_linux.sh | 2 +- build_mac-intel_v13.sh | 2 +- build_mac-universal2_v13.sh | 2 +- build_windows-11.bat | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build_linux.sh b/build_linux.sh index 3f5c4dc..6ea276c 100755 --- a/build_linux.sh +++ b/build_linux.sh @@ -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 \ No newline at end of file diff --git a/build_mac-intel_v13.sh b/build_mac-intel_v13.sh index cd85053..bf92c0c 100755 --- a/build_mac-intel_v13.sh +++ b/build_mac-intel_v13.sh @@ -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 diff --git a/build_mac-universal2_v13.sh b/build_mac-universal2_v13.sh index 8dc8174..f0cea3e 100755 --- a/build_mac-universal2_v13.sh +++ b/build_mac-universal2_v13.sh @@ -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 diff --git a/build_windows-11.bat b/build_windows-11.bat index d803c21..17afa27 100644 --- a/build_windows-11.bat +++ b/build_windows-11.bat @@ -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 \ No newline at end of file