From 3b4316f6ffa6d6a04e37041a23df05d3880a6f5c Mon Sep 17 00:00:00 2001 From: Davide Ceschia Date: Wed, 5 Sep 2018 20:03:15 +0200 Subject: [PATCH] v0.6.1 --- .travis.yml | 17 ++++++++--------- app/actions/autoUpdater.js | 7 +++++-- app/components/Common/SideBar/SideBar.js | 9 +++++++-- app/components/Common/SideBar/SideBar.scss | 5 +++++ app/constants.js | 2 +- app/package.json | 2 +- app/reducers/autoUpdater.js | 6 ++++-- package.json | 2 +- 8 files changed, 32 insertions(+), 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3bc4ace4a..582a72eb1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,17 +33,16 @@ matrix: - sudo ls -l # - node $TRAVIS_BUILD_DIR/scripts/preDeploy.js deploy: - provider: s3 + provider: releases skip_cleanup: true - access_key_id: $AWS_ACCESS_KEY_ID - secret_access_key: $AWS_SECRET_ACCESS_KEY - bucket: "dl.gorilladevs.com" - region: $AWS_DEFAULT_REGION - acl: public_read - local_dir: $TRAVIS_BUILD_DIR/release - upload-dir: releases + prerelease: true + api_key: + secure: hF5RKP28CK3zGjqK++zNxMOjXNvGhq51kcbwV2hiMiBs8JSRVzLWgbemQ0qExVzvn5OxH+3GDlZLCeAfeZBjuC8cRqccWQyQ7OAT27PqW1ZvPCSsG6Xz53z6AC06A3j3DkcougqVSVbRBr6JLDZBlNxeVRle+KUM1f0CdmQJtBH71lYYiafmV/xu1rBG0zJJL60nhln84jiorKSekhVnLzyWH+W2H+a3Shl0/TcGvQAJ1oTCypYjmp7+/4vvRTX2wt016UVeW9UYPowBoJWvia3/5ptMJthoYdibQc0NrCvlx1E4L6HlNnrCSZwnxmP9d0mt5kekpmOu+QijS0OrwGSMADzwxfx34cwcLMoX/4Q/E4X4C6fgTSe8s3NODtfKtiiovgX6tNiTu+eLkV/UuRA3qxQGM9vlbbGv37CNY/VLSNbRsEQQsofTzKXjUZ09WcBrHrML2ZZ1j1TkPlkZBf8ZwyqF2Y4Zou+bRDuER1oAHzsptjap2GIa2F8mZ/im6p6DhlU0MvGo4LSbuJwdj5Gc0G/Yq296OUkvH7ue6LgzTceILygt7q2pwz2TJuEK8Sgs+/3wQ2wmjT3m3h4KMt0T1l/DPyZQbQDTUX/7jwI1ObvEbRLH5C+x5B163rN75MvWCDwPuBkErvRQTLE96h+GuGQZvxz34R84aB4zK0Y= + file: + - "$TRAVIS_BUILD_DIR/release/GDLauncher-win.zip" + - "$TRAVIS_BUILD_DIR/release/GDLauncher-linux.zip" on: - branch: master + tags: true - os: osx osx_image: xcode9.4 language: node_js diff --git a/app/actions/autoUpdater.js b/app/actions/autoUpdater.js index 463ea84bf..4f70b9c67 100644 --- a/app/actions/autoUpdater.js +++ b/app/actions/autoUpdater.js @@ -20,8 +20,11 @@ export function checkForUpdates() { const res = await axios.get(UPDATE_URL); const actualVersion = packageJson.version; // versionsCompare returns positive if v1 > v2, negative if v1 < v2, 0 if they're equal - if (versionsCompare(res.data.latestVersion, actualVersion) === 1) { - dispatch({ type: UPDATE_AVAILABLE }); + if (versionsCompare(res.data.version, actualVersion) === 1) { + dispatch({ + type: UPDATE_AVAILABLE, + payload: res.data.version + }); } } catch (err) { console.error(err.message); diff --git a/app/components/Common/SideBar/SideBar.js b/app/components/Common/SideBar/SideBar.js index 8aa1350cc..4d4f64476 100644 --- a/app/components/Common/SideBar/SideBar.js +++ b/app/components/Common/SideBar/SideBar.js @@ -49,7 +49,11 @@ class SideBar extends Component { return (