From e7b5f19b02512b7424954c868e7bacb93cdff9f2 Mon Sep 17 00:00:00 2001 From: rejbasket <39080670+rejbasket@users.noreply.github.com> Date: Tue, 20 May 2025 17:53:43 +0200 Subject: add linux arm build (#3740) --- bin/build-python | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin/build-python') 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 -- cgit v1.2.3