From ccb21760c73563c20187fe5f85ff7513e1504f9a Mon Sep 17 00:00:00 2001 From: michal maxian Date: Fri, 21 Apr 2017 02:06:07 +0200 Subject: [PATCH] buildscripts for electron changed - new artifact download added --- buildscripts/electron-build-linux.sh | 16 +++++++++++++++- buildscripts/electron-build-osx.sh | 17 ++++++++++++++++- buildscripts/electron-build-windows.sh | 16 +++++++++++++++- 3 files changed, 46 insertions(+), 3 deletions(-) diff --git a/buildscripts/electron-build-linux.sh b/buildscripts/electron-build-linux.sh index 23f5f89..00f8d45 100755 --- a/buildscripts/electron-build-linux.sh +++ b/buildscripts/electron-build-linux.sh @@ -4,10 +4,24 @@ [ -z $AGAMA_VERSION ] && echo "AGAMA_VERSION variable is not set." && exit 0 +echo +echo ========================================= +echo Step: Removing old binaries +cd build +rm -rvf artifacts.supernet.org +echo +echo Step: Cloning latest binaries for build +wget --recursive --no-parent https://artifacts.supernet.org/latest/linux/ +cd .. +echo ========================================= +echo + echo "Build script for Iguana application for Linux x64 platform." echo "Preparing electron package $AGAMA_VERSION" electron-packager . --platform=linux --arch=x64 \ --icon=assets/icons/iguana_app_icon_png/128x128.png \ --out=build/ --buildVersion=$AGAMA_VERSION \ - --ignore=assets/bin/win64 --ignore=assets/bin/osx --overwrite \ No newline at end of file + --ignore=build/artifacts.supernet.org/latest/windows \ + --ignore=build/artifacts.supernet.org/latest/osx \ + --overwrite \ No newline at end of file diff --git a/buildscripts/electron-build-osx.sh b/buildscripts/electron-build-osx.sh index 208e7de..aa58f01 100755 --- a/buildscripts/electron-build-osx.sh +++ b/buildscripts/electron-build-osx.sh @@ -4,9 +4,24 @@ [ -z $AGAMA_VERSION ] && echo "AGAMA_VERSION variable is not set." && exit 0 +echo +echo ========================================= +echo Step: Removing old binaries +cd build +rm -rvf artifacts.supernet.org +echo +echo Step: Cloning latest binaries for build +wget --recursive --no-parent https://artifacts.supernet.org/latest/osx/ +cd .. +echo ========================================= +echo + echo "Build script for Iguana application for MacOS platform." echo "Preparing electron package $AGAMA_VERSION" + electron-packager . --platform=darwin --arch=x64 \ --icon=assets/icons/iguana_app_icon.icns \ --out=build/ --buildVersion=$AGAMA_VERSION \ - --ignore=assets/bin/win64 --ignore=assets/bin/linux64 --overwrite \ No newline at end of file + --ignore=build/artifacts.supernet.org/latest/windows \ + --ignore=build/artifacts.supernet.org/latest/linux \ + --overwrite \ No newline at end of file diff --git a/buildscripts/electron-build-windows.sh b/buildscripts/electron-build-windows.sh index b066f96..579847b 100755 --- a/buildscripts/electron-build-windows.sh +++ b/buildscripts/electron-build-windows.sh @@ -4,10 +4,24 @@ [ -z $AGAMA_VERSION ] && echo "AGAMA_VERSION variable is not set." && exit 0 +echo +echo ========================================= +echo Step: Removing old binaries +cd build +rm -rvf artifacts.supernet.org +echo +echo Step: Cloning latest binaries for build +wget --recursive --no-parent https://artifacts.supernet.org/latest/windows/ +cd .. +echo ========================================= +echo + echo "Build script for Iguana application for Windows x64 platform." echo "Preparing electron package $AGAMA_VERSION" electron-packager . --platform=win32 --arch=x64 \ --icon=assets/icons/iguana_app_icon.ico \ --out=build/ --buildVersion=$AGAMA_VERSION \ - --ignore=assets/bin/osx --ignore=assets/bin/linux64 --overwrite \ No newline at end of file + --ignore=build/artifacts.supernet.org/latest/osx \ + --ignore=build/artifacts.supernet.org/latest/linux \ + --overwrite \ No newline at end of file