summaryrefslogtreecommitdiff
path: root/bin/build-python
diff options
context:
space:
mode:
authorrejbasket <39080670+rejbasket@users.noreply.github.com>2022-04-18 10:59:42 +0200
committerGitHub <noreply@github.com>2022-04-18 10:59:42 +0200
commit35b748c46c57e553b526ae4b106270f752b4acf3 (patch)
tree0fd872917bf26109b40b58edc8472d294c62f249 /bin/build-python
parenta53d4aa229d31b1d261b99f39905eee8f37342d8 (diff)
Pkg inkscape check (#1622)
* add warning if Inkscape not installed (mac) enable local build with arm linux and mac Authored-by: rejbasket <rejbasket@users.noreply.github.com>
Diffstat (limited to 'bin/build-python')
-rwxr-xr-xbin/build-python13
1 files changed, 6 insertions, 7 deletions
diff --git a/bin/build-python b/bin/build-python
index e84e84a5..195248c3 100755
--- a/bin/build-python
+++ b/bin/build-python
@@ -3,13 +3,12 @@
set -e
info_year=$( date "+%Y" )
site_packages="$(python -c "import os; print(os.path.dirname(os.__file__) + '/site-packages')")"
-
+arch=$(uname -m)
if [ "$BUILD" = "linux" ]; then
- # pyinstaller misses these
- pyinstaller_args+="--add-binary /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so:. "
- pyinstaller_args+="--add-binary /usr/lib/x86_64-linux-gnu/libproxy.so.1:. "
- pyinstaller_args+="--add-binary /lib/x86_64-linux-gnu/libnsl.so.1:. "
- pyinstaller_args+="--add-binary /usr/lib/x86_64-linux-gnu/libxcb.so.1:. "
+ pyinstaller_args+="--add-binary /usr/lib/"$arch"-linux-gnu/gio/modules/libgiolibproxy.so:. "
+ pyinstaller_args+="--add-binary /usr/lib/"$arch"-linux-gnu/libproxy.so.1:. "
+ pyinstaller_args+="--add-binary /lib/"$arch"-linux-gnu/libnsl.so.1:. "
+ pyinstaller_args+="--add-binary /usr/lib/"$arch"-linux-gnu/libxcb.so.1:. "
fi
# This one's tricky. ink/stitch doesn't actually _use_ gi.repository.Gtk,
@@ -41,7 +40,7 @@ if [ "$BUILD" = "osx" ]; then
pyinstaller_args+="--osx-bundle-identifier org.inkstitch.app "
pyinstaller_args+="-i electron/build/icons/mac/inkstitch.icns"
if [[ -z ${GITHUB_REF} ]]; then
- :
+ echo "Dev or Local Build"
else
bash bin/import-macos-keys
fi