From bda87d875f24de30dd60c43cd965b99998e93b03 Mon Sep 17 00:00:00 2001 From: michal maxian Date: Mon, 20 Mar 2017 10:11:42 +0100 Subject: [PATCH] Added notes into build scripts. --- electron-build-linux.sh | 12 ++++++++---- electron-build-osx.sh | 6 +++--- electron-build-win.sh | 16 ++++++++++------ 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/electron-build-linux.sh b/electron-build-linux.sh index 8312a08..f847388 100755 --- a/electron-build-linux.sh +++ b/electron-build-linux.sh @@ -1,7 +1,11 @@ -echo "Build script for Iguana application for Linux platform." -echo "Preparing electron package $VERSION" && \ +echo "Build script for Iguana application for Linux x32 and x64 platform." +echo "Preparing electron package $IGUANA_VERSION" && \ +electron-packager . --platform=linux --arch=x32 \ + --icon=assets/icons/iguana_app_icon_png/128x128.png \ + --out=build/ --buildVersion=$IGUANA_VERSION \ + --ignore=assets/bin/win64 --ignore=assets/bin/osx --overwrite && \ electron-packager . --platform=linux --arch=x64 \ --icon=assets/icons/iguana_app_icon_png/128x128.png \ - --out=build/ --buildVersion=$VERSION \ + --out=build/ --buildVersion=$IGUANA_VERSION \ --ignore=assets/bin/win64 --ignore=assets/bin/osx --overwrite || \ -echo "Did you call script with VERSION variable?" \ No newline at end of file +echo "PROBLEM: Did you call script with IGUANA_VERSION variable?" \ No newline at end of file diff --git a/electron-build-osx.sh b/electron-build-osx.sh index 177845b..cd3fba4 100755 --- a/electron-build-osx.sh +++ b/electron-build-osx.sh @@ -1,7 +1,7 @@ echo "Build script for Iguana application for MacOS platform." -echo "Preparing electron package $VERSION" && \ +echo "Preparing electron package $IGUANA_VERSION" && \ electron-packager . --platform=darwin --arch=x64 \ --icon=assets/icons/iguana_app_icon.icns \ - --out=build/ --buildVersion=VERSION_NUMBER_HERE \ + --out=build/ --buildVersion=$IGUANA_VERSION \ --ignore=assets/bin/win64 --ignore=assets/bin/linux64 --overwrite || \ -echo "Did you call script with VERSION variable?" \ No newline at end of file +echo "PROBLEM: Did you call script with IGUANA_VERSION variable?" \ No newline at end of file diff --git a/electron-build-win.sh b/electron-build-win.sh index 5b9d0c2..8cf5c44 100755 --- a/electron-build-win.sh +++ b/electron-build-win.sh @@ -1,7 +1,11 @@ -echo "Build script for Iguana application for Windows platform." -echo "Preparing electron package $VERSION" && \ -electron-packager . --platform=win32 --arch=all - --icon=assets/icons/iguana_app_icon.ico - --out=build/ --buildVersion=VERSION_NUMBER_HERE +echo "Build script for Iguana application for Windows ia32 and x64 platform." +echo "Preparing electron package $IGUANA_VERSION" && \ +electron-packager . --platform=win32 --arch=x64 \ + --icon=assets/icons/iguana_app_icon.ico \ + --out=build/ --buildVersion=$IGUANA_VERSION \ + --ignore=assets/bin/osx --ignore=assets/bin/linux64 --overwrite && \ +electron-packager . --platform=win32 --arch=ia32 \ + --icon=assets/icons/iguana_app_icon.ico \ + --out=build/ --buildVersion=$IGUANA_VERSION \ --ignore=assets/bin/osx --ignore=assets/bin/linux64 --overwrite || \ -echo "Did you call script with VERSION variable?" \ No newline at end of file +echo "PROBLEM: Did you call script with IGUANA_VERSION variable?" \ No newline at end of file