summaryrefslogtreecommitdiff
path: root/bin/build-python
diff options
context:
space:
mode:
authorrejbasket <39080670+rejbasket@users.noreply.github.com>2025-05-20 17:53:43 +0200
committerGitHub <noreply@github.com>2025-05-20 17:53:43 +0200
commite7b5f19b02512b7424954c868e7bacb93cdff9f2 (patch)
tree16c67353d4b7f23b75e031d25ef9bb4258d69c34 /bin/build-python
parent75f02dc4b0d6b7d6276e8b425a1c1f32c6bfca29 (diff)
add linux arm build (#3740)
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