summaryrefslogtreecommitdiff
path: root/bin/build-python
diff options
context:
space:
mode:
Diffstat (limited to 'bin/build-python')
-rwxr-xr-xbin/build-python7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/build-python b/bin/build-python
index 17f49c1e..5a93f610 100755
--- a/bin/build-python
+++ b/bin/build-python
@@ -2,6 +2,7 @@
set -e
info_year=$( date "+%Y" )
+ARCH="$(uname -m)"
# PyInstaller v6.x rearranges folder configuration causing broken builds, This re-enables old onedir layout.
pyinstaller_args+="--contents-directory . "
@@ -20,8 +21,8 @@ if [ "$BUILD" = "osx" ]; then
fi
elif [ "$BUILD" = "linux" ]; 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:. "
+ pyinstaller_args+="--add-binary /lib/${ARCH}-linux-gnu/libcrypt.so.1:. "
+ pyinstaller_args+="--add-binary /lib/${ARCH}-linux-gnu/libnsl.so.1:. "
elif [ "$BUILD" = "linux32" ]; then
pyinstaller_args+="--hidden-import gi.repository.Gtk "
pyinstaller_args+="--add-binary /lib/i386-linux-gnu/libcrypt.so.1:. "
@@ -63,4 +64,4 @@ shopt -s dotglob
mkdir dist/bin
mv dist/inkstitch/* dist/bin
mv dist/bin dist/inkstitch
-mkdir artifacts \ No newline at end of file
+mkdir artifacts