diff options
| author | rejbasket <39080670+rejbasket@users.noreply.github.com> | 2022-04-18 10:59:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-18 10:59:42 +0200 |
| commit | 35b748c46c57e553b526ae4b106270f752b4acf3 (patch) | |
| tree | 0fd872917bf26109b40b58edc8472d294c62f249 /bin/build-electron | |
| parent | a53d4aa229d31b1d261b99f39905eee8f37342d8 (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-electron')
| -rwxr-xr-x | bin/build-electron | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/build-electron b/bin/build-electron index 9fdb88ae..b0e93572 100755 --- a/bin/build-electron +++ b/bin/build-electron @@ -2,11 +2,20 @@ set -e set -x +ARCH="$(uname -m)" +# Check for cpu arch to build mac and linux electron arch +if [[ "$ARCH" = "arm64" ]] || [[ "$ARCH" = "aarch64" ]]; then + echo "Found ARM" + sed -i'' -e 's/CPU_ARCH/'arm64'/' electron/package.json +else + echo "Found x64" + sed -i'' -e 's/CPU_ARCH/'x64'/' electron/package.json +fi if [ "$BUILD" = "windows" ]; then args="-w --ia32" elif [ "$BUILD" = "linux" ]; then - args="-l --x64" + args="-l" elif [ "$BUILD" = "osx" ]; then cp installer_scripts/electron-entitlements.plist electron/build/ args="-m" |
