diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-12-07 15:12:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-07 15:12:18 +0100 |
| commit | 1e86d621e6b3661bd250b56a2012dd59017edde6 (patch) | |
| tree | d7a1fcba8640ecdc0edb49c222a4643bc3d02d3d /bin/build-python | |
| parent | 7514e716a1c854df4305ae801dcd933c9eea1ce5 (diff) | |
Fix some workflow issues (#3330)
Diffstat (limited to 'bin/build-python')
| -rwxr-xr-x | bin/build-python | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/bin/build-python b/bin/build-python index 52226630..13d2d893 100755 --- a/bin/build-python +++ b/bin/build-python @@ -22,22 +22,19 @@ if [ "$BUILD" = "osx" ]; then echo "Dev or Local Build" else bash bin/import-macos-keys + python -m PyInstaller $pyinstaller_args inkstitch.py; fi -fi - -if [ "$BUILD" = "linux" ]; then +elif [ "$BUILD" = "linux" ] || [ "$BUILD" = "linux-new" ] || [ "$BUILD" = "linux-old" ]; then pyinstaller_args+="--hidden-import gi.repository.Gtk " pyinstaller_args+="--add-binary /lib/x86_64-linux-gnu/libcrypt.so.1:. " pyinstaller_args+="--add-binary /lib/x86_64-linux-gnu/libnsl.so.1:. " -fi - -if [ "$BUILD" = "linux32" ]; then + python -m PyInstaller $pyinstaller_args --strip inkstitch.py; +elif [ "$BUILD" = "linux32" ]; then pyinstaller_args+="--hidden-import gi.repository.Gtk " pyinstaller_args+="--add-binary /lib/i386-linux-gnu/libcrypt.so.1:. " pyinstaller_args+="--add-binary /lib/i386-linux-gnu/libnsl.so.1:. " -fi - -if [ "$BUILD" = "windows" ]; then + python -m PyInstaller $pyinstaller_args --strip inkstitch.py; +elif [ "$BUILD" = "windows" ]; then if [[ "$VERSION" =~ ^v[0-9][.0-9]+$ ]]; then # setting the file and product version for release # Code to remove the periods in the version number @@ -57,10 +54,6 @@ if [ "$BUILD" = "windows" ]; then pyinstaller_args+="-i images/inkstitch/win/inkstitch.ico " pyinstaller_args+="--version-file installer_scripts/file_version_info.txt " python -m PyInstaller $pyinstaller_args inkstitch.py -elif [ "$BUILD" = "osx" ]; then - python -m PyInstaller $pyinstaller_args inkstitch.py; -else - python -m PyInstaller $pyinstaller_args --strip inkstitch.py; fi # pyinstaller put a whole mess of libraries under dist/inkstitch. We'd like |
