Skip to content

Commit

Permalink
Merge branch 'Asher-Dev' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Asherda authored Jul 7, 2018
2 parents 5b0c606 + 22e8c8d commit cf3ad24
Show file tree
Hide file tree
Showing 13 changed files with 139 additions and 186 deletions.
125 changes: 66 additions & 59 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ stages:
- deploy
variables:
DOCKER_DRIVER: overlay2
AGAMA_VERSION: $(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json)
PKG_VERSION: $AGAMA_VERSION-beta
AGAMA_VERSION: 0.3.10
EASYDEX_GUI_ARTIFACT: build.tar.gz
AGAMA_ARTIFACTS_LINUX: linux64.tar.gz
AGAMA_ARTIFACTS_MACOS: osx.tar.gz
Expand All @@ -16,30 +15,31 @@ variables:
AGAMA_WINDOWS_PORTABLE: ${ELECTRON_BUILD_WINDOWS}-v${AGAMA_VERSION}-beta.zip
AGAMA_OSX_PORTABLE: ${ELECTRON_BUILD_OSX}-v${AGAMA_VERSION}-beta.tar.gz
GIT_SUBMODULE_STRATEGY: recursive

build:linux:
image: asherd/agama-builder
stage: build
before_script:
- 'echo "$AUTH_KEY" > AUTH_KEY.json'
- "gcloud auth activate-service-account --key-file AUTH_KEY.json"
- "gsutil cp $STAGING/EasyDEX-GUI/$CI_COMMIT_REF_NAME/$EASYDEX_GUI_ARTIFACT ."
- "tar -xzf $EASYDEX_GUI_ARTIFACT --directory gui/EasyDEX-GUI/react"
- "rm $EASYDEX_GUI_ARTIFACT"
- "gsutil cp $STAGING/VerusCoin/$CI_COMMIT_REF_NAME/Linux/$AGAMA_ARTIFACTS_LINUX ."
- "mkdir -p assets/bin/"
- "tar -xzf $AGAMA_ARTIFACTS_LINUX --directory assets/bin/ && ls assets/bin"
- "rm $AGAMA_ARTIFACTS_LINUX"


script:
- "npm install electron-packager -g"
- "npm install electron -g --unsafe-perm=true"
- "npm install"
- "./buildscripts/electron-build-linux.sh"
- "cd build"
- "tar -czf $AGAMA_LINUX_PORTABLE $ELECTRON_BUILD_LINUX"
- "mv $AGAMA_LINUX_PORTABLE .."
- echo "$AUTH_KEY" > AUTH_KEY.json
- gcloud auth activate-service-account --key-file AUTH_KEY.json
- rm AUTH_KEY.json
- gsutil cp $STAGING/EasyDEX-GUI/$CI_COMMIT_REF_NAME/$EASYDEX_GUI_ARTIFACT .
- tar -xzf $EASYDEX_GUI_ARTIFACT --directory gui/EasyDEX-GUI/react
- rm $EASYDEX_GUI_ARTIFACT
- gsutil cp $STAGING/VerusCoin/$CI_COMMIT_REF_NAME/Linux/$AGAMA_ARTIFACTS_LINUX .
- mkdir -p assets/bin/
- tar -xzf $AGAMA_ARTIFACTS_LINUX --directory assets/bin/ && ls assets/bin
- rm $AGAMA_ARTIFACTS_LINUX


script:
- npm install electron-packager -g
- npm install electron -g --unsafe-perm=true
- npm install
- ./buildscripts/electron-build-linux.sh
- cd build
- tar -czf $AGAMA_LINUX_PORTABLE $ELECTRON_BUILD_LINUX
- mv $AGAMA_LINUX_PORTABLE ..
artifacts:
paths:
- $AGAMA_LINUX_PORTABLE
Expand All @@ -49,25 +49,26 @@ build:windows:
stage: build
image: asherd/agama-builder
before_script:
- 'echo "$AUTH_KEY" > AUTH_KEY.json'
- "gcloud auth activate-service-account --key-file AUTH_KEY.json"
- "gsutil cp $STAGING/EasyDEX-GUI/$CI_COMMIT_REF_NAME/$EASYDEX_GUI_ARTIFACT ."
- "tar -xzf $EASYDEX_GUI_ARTIFACT --directory gui/EasyDEX-GUI/react"
- "rm $EASYDEX_GUI_ARTIFACT"
- "gsutil cp $STAGING/VerusCoin/$CI_COMMIT_REF_NAME/Windows/$AGAMA_ARTIFACTS_WINDOWS ."
- "mkdir -p assets/bin/"
- "unzip $AGAMA_ARTIFACTS_WINDOWS -d assets/bin/ && ls assets/bin "
- "rm $AGAMA_ARTIFACTS_WINDOWS"
- "./binary_artifacts_win.sh"
- echo $AUTH_KEY > AUTH_KEY.json
- gcloud auth activate-service-account --key-file AUTH_KEY.json
- rm AUTH_KEY.json
- gsutil cp $STAGING/EasyDEX-GUI/$CI_COMMIT_REF_NAME/$EASYDEX_GUI_ARTIFACT .
- tar -xzf $EASYDEX_GUI_ARTIFACT --directory gui/EasyDEX-GUI/react
- rm $EASYDEX_GUI_ARTIFACT
- gsutil cp $STAGING/VerusCoin/$CI_COMMIT_REF_NAME/Windows/$AGAMA_ARTIFACTS_WINDOWS .
- mkdir -p assets/bin/
- unzip $AGAMA_ARTIFACTS_WINDOWS -d assets/bin/ && ls assets/bin
- rm $AGAMA_ARTIFACTS_WINDOWS
- ./binary_artifacts_win.sh

script:
- "npm install electron-packager -g"
- "npm install electron -g --unsafe-perm=true"
- "npm install"
- "./buildscripts/electron-build-windows.sh"
- "cd build"
- "zip -r $AGAMA_WINDOWS_PORTABLE $ELECTRON_BUILD_WINDOWS"
- "mv $AGAMA_WINDOWS_PORTABLE .."
- npm install electron-packager -g
- npm install electron -g --unsafe-perm=true
- npm install
- ./buildscripts/electron-build-windows.sh
- cd build
- zip -r $AGAMA_WINDOWS_PORTABLE $ELECTRON_BUILD_WINDOWS
- mv $AGAMA_WINDOWS_PORTABLE ..
artifacts:
paths:
- $AGAMA_WINDOWS_PORTABLE
Expand All @@ -77,25 +78,25 @@ build:mac:
stage: build
image: asherd/agama-builder
before_script:
- 'echo "$AUTH_KEY" > AUTH_KEY.json'
- "gcloud auth activate-service-account --key-file AUTH_KEY.json"
- "gsutil cp $STAGING/EasyDEX-GUI/$CI_COMMIT_REF_NAME/$EASYDEX_GUI_ARTIFACT ."
- "tar -xzf $EASYDEX_GUI_ARTIFACT --directory gui/EasyDEX-GUI/react"
- "rm $EASYDEX_GUI_ARTIFACT"
- "gsutil cp $STAGING/VerusCoin/$CI_COMMIT_REF_NAME/MacOS/$AGAMA_ARTIFACTS_MACOS ."
- "mkdir -p assets/bin/"
- "tar -xzf $AGAMA_ARTIFACTS_MACOS --directory assets/bin/ "
- "rm $AGAMA_ARTIFACTS_MACOS"
- echo "$AUTH_KEY" > AUTH_KEY.json
- gcloud auth activate-service-account --key-file AUTH_KEY.json
- rm AUTH_KEY.json
- gsutil cp $STAGING/EasyDEX-GUI/$CI_COMMIT_REF_NAME/$EASYDEX_GUI_ARTIFACT .
- tar -xzf $EASYDEX_GUI_ARTIFACT --directory gui/EasyDEX-GUI/react
- rm $EASYDEX_GUI_ARTIFACT
- gsutil cp $STAGING/VerusCoin/$CI_COMMIT_REF_NAME/MacOS/$AGAMA_ARTIFACTS_MACOS .
- mkdir -p assets/bin/
- tar -xzf $AGAMA_ARTIFACTS_MACOS --directory assets/bin/
- rm $AGAMA_ARTIFACTS_MACOS

script:
- "npm install electron-packager -g"
- "npm install electron -g --unsafe-perm=true"
- "npm install"
- "./buildscripts/electron-build-osx.sh"
- "builder build buildscripts/AgamaApp-osx.xml echo"
- "cd build"
- "tar -czf $AGAMA_OSX_PORTABLE $ELECTRON_BUILD_OSX"
- "mv $AGAMA_OSX_PORTABLE .."
- npm install electron-packager -g
- npm install electron -g --unsafe-perm=true
- npm install
- ./buildscripts/electron-build-osx.sh
- cd build
- tar -czf $AGAMA_OSX_PORTABLE $ELECTRON_BUILD_OSX
- mv $AGAMA_OSX_PORTABLE ..
artifacts:
paths:
- $AGAMA_OSX_PORTABLE
Expand All @@ -109,6 +110,12 @@ deploy:
- build:windows
- build:mac
script:
- 'echo "$AUTH_KEY" > AUTH_KEY.json'
- "gcloud auth activate-service-account --key-file AUTH_KEY.json"
- "gsutil cp $AGAMA_LINUX_PORTABLE $AGAMA_OSX_PORTABLE $AGAMA_WINDOWS_PORTABLE gs://$BUCKET/GitLab/Agama/$CI_COMMIT_REF_NAME/"
- mkdir -p $CI_COMMIT_REF_NAME/Windows
- mkdir -p $CI_COMMIT_REF_NAME/Linux
- mkdir -p $CI_COMMIT_REF_NAME/MacOS
- mv $AGAMA_LINUX_PORTABLE $CI_COMMIT_REF_NAME/Linux
- mv $AGAMA_WINDOWS_PORTABLE $CI_COMMIT_REF_NAME/Windows
- mv $AGAMA_OSX_PORTABLE $CI_COMMIT_REF_NAME/MacOS
- echo $AUTH_KEY > AUTH_KEY.json
- gcloud auth activate-service-account --key-file AUTH_KEY.json
- gsutil rsync -r $CI_COMMIT_REF_NAME $STAGING/Agama/$CI_COMMIT_REF_NAME/
Binary file removed AUTH_KEY.json.enc
Binary file not shown.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ This project uses [EasyDEX-GUI](https://github.com/VerusCoin/EasyDEX-GUI), a Rea
Check [the VerusCoin github Wiki](https://github.com/VerusCoin/VerusCoin/wiki) for useful information about operating the wallet.
Also [check the Discord commnity](https://discordapp.com/channels/444621794964537354/449633547343495172)

Version 0.3.9-beta release of the Verus enhanced Agama wallet.
Version 0.3.10-beta release of the Verus enhanced Agama wallet.

This version adds portable VerusHash support and better Mac integration. It has been tested against Mac OSX Sierra 10.12.6 and Mac OSX 10.13.5 High Sierra. There are no prerequisites for the Mac now, download the .dmg from the VerusCoin web site, click to mount it, and launch the Agama icon from the mounted drive on your desktop.

#### For Developers
Expand Down
59 changes: 0 additions & 59 deletions binary_artifacts.sh

This file was deleted.

21 changes: 0 additions & 21 deletions binary_artifacts_mac.sh

This file was deleted.

34 changes: 24 additions & 10 deletions buildscripts/electron-build-linux.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,35 @@
#!/bin/bash
### Build script for Iguana application for Linux x64 platform.
### Created by mmaxian, 3/2017

[ -z $AGAMA_VERSION ] && echo "AGAMA_VERSION variable is not set." && exit 0
[ ! -d build ] && mkdir build

echo
echo "Build script for Iguana application for Linux x64 platform."
echo "Preparing electron package $AGAMA_VERSION"
### Created by mmaxian, 3/2017; updated by Asher Dawes 7/2018

electron-packager . --platform=linux --arch=x64 \
--icon=assets/icons/agama_icons/128x128.png \
--out=build/ \
--buildVersion=$AGAMA_VERSION \
--ignore=assets/bin/win64 \
--ignore=assets/bin/osx \
--ignore=react/node_modules \
--ignore=react/src \
--ignore=react/www \
--overwrite
--ignore=buildscripts\
--ignore=windeps \
--ignore=.travis.yml \
--ignore=check_submodule.sh \
--ignore=.gitlab-ci.yml \
--ignore=.gitignore \
--ignore=.gitmodules \
--ignore=binary_artifacts_win.sh \
--ignore=Brewfile \
--ignore=make-deb.js \
--ignore=make-patch.sh \
--ignore=make-rpm.js \
--ignore=README.md \
--ignore=version_build \
--prune=true \
--overwrite \
--version-string.CompanyName="VerusCoin" \
--version-string.FileDescription="Agama" \
--version-string.OriginalFilename="Agama" \
--version-string.ProductName="Agama" \
--version-string.InternalName="Agama" \
--app-copyright="Copyright (C) 2018 VerusCoin. All rights reserved."

37 changes: 26 additions & 11 deletions buildscripts/electron-build-osx.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,35 @@
#!/bin/bash
### Build script for Agama application for MacOS platform.
### Created by mmaxian, 3/2017; updated by David Dawes 5/2018
### Created by mmaxian, 3/2017; updated by David Dawes 5/2018; updated by Asher Dawes 7/2018

[ -z $AGAMA_VERSION ] && echo "AGAMA_VERSION variable is not set." && exit 0
[ ! -d build ] && mkdir build

echo
echo "Build script for Agama application for MacOS platform."
echo "Preparing electron package $AGAMA_VERSION"

electron-packager . --platform=darwin --arch=x64 \
electron-packager . --platform=darwin \
--arch=x64 \
--icon=assets/icons/agama_app_icon.icns \
--out=build/ --buildVersion=$AGAMA_VERSION \
--out=build/ \
--ignore=assets/bin/win64 \
--ignore=assets/bin/linux64 \
--ignore=react/node_modules \
--ignore=react/src \
--ignore=react/www \
--overwrite
--ignore=buildscripts\
--ignore=windeps \
--ignore=.travis.yml \
--ignore=check_submodule.sh \
--ignore=.gitlab-ci.yml \
--ignore=.gitignore \
--ignore=.gitmodules \
--ignore=binary_artifacts_win.sh \
--ignore=Brewfile \
--ignore=make-deb.js \
--ignore=make-patch.sh \
--ignore=make-rpm.js \
--ignore=README.md \
--ignore=version_build \
--prune=true \
--overwrite \
--version-string.CompanyName="VerusCoin" \
--version-string.FileDescription="Agama" \
--version-string.OriginalFilename="Agama" \
--version-string.ProductName="Agama" \
--version-string.InternalName="Agama" \
--app-copyright="Copyright (C) 2018 VerusCoin. All rights reserved."
25 changes: 16 additions & 9 deletions buildscripts/electron-build-windows.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
#!/bin/bash
### Build script for Agama application for Windows x64 platform.
### Created by mmaxian, 3/2017; updated by David Dawes 5/2018

[ -z $AGAMA_VERSION ] && echo "AGAMA_VERSION variable is not set." && exit 0
[ ! -d build ] && mkdir build

echo
echo "Build script for Agama application for Windows x64 platform."
echo "Preparing electron package $AGAMA_VERSION"
### Created by mmaxian, 3/2017; updated by David Dawes 5/2018; updated by Asher Dawes 7/2018

electron-packager . --platform=win32 \
--arch=x64 \
--icon=assets/icons/agama_app_icon.ico \
--out=build/ \
--buildVersion=$AGAMA_VERSION \
--ignore=assets/bin/osx \
--ignore=assets/bin/linux64 \
--ignore=react/node_modules \
--ignore=react/src \
--ignore=react/www \
--ignore=buildscripts\
--ignore=windeps \
--ignore=.travis.yml \
--ignore=check_submodule.sh \
--ignore=.gitlab-ci.yml \
--ignore=.gitignore \
--ignore=.gitmodules \
--ignore=binary_artifacts_win.sh \
--ignore=Brewfile \
--ignore=make-deb.js \
--ignore=make-patch.sh \
--ignore=make-rpm.js \
--ignore=README.md \
--ignore=version_build \
--prune=true \
--overwrite \
--version-string.CompanyName="VerusCoin" \
--version-string.FileDescription="Agama" \
Expand Down
Loading

0 comments on commit cf3ad24

Please sign in to comment.