[client-app] also upload a next-version to S3 for autoupdate testing

Summary:
We never want to ship the last release we'll ever ship.
This can happen if the new version's autoupdater is broken.
To test this we upload to a version n+1 higher than the current one.

Test Plan: manual

Reviewers: juan, spang, halla

Reviewed By: halla

Differential Revision: https://phab.nylas.com/D4125
This commit is contained in:
Evan Morikawa 2017-03-07 14:54:50 -05:00
parent a4de75d3ec
commit 5024f9c2cc

View file

@ -102,11 +102,20 @@ module.exports = (grunt) => {
const outputDir = grunt.config.get('outputDir');
const uploads = [];
// We increment the version so we have an autoupdate target to test
const versionParts = fullVersion.split('.')
versionParts[2] = +versionParts[2] + 1
const nextVersion = versionParts.join('.')
if (process.platform === 'darwin') {
uploads.push({
source: `${outputDir}/NylasMail.zip`,
key: `${fullVersion}/${process.platform}/${process.arch}/NylasMail.zip`,
});
uploads.push({
source: `${outputDir}/NylasMail.zip`,
key: `${nextVersion}/${process.platform}/${process.arch}/NylasMail.zip`,
});
uploads.push({
source: `${outputDir}/NylasMail.dmg`,
key: `${fullVersion}/${process.platform}/${process.arch}/NylasMail.dmg`,
@ -120,6 +129,10 @@ module.exports = (grunt) => {
source: `${outputDir}/NylasMailSetup.exe`,
key: `${fullVersion}/${process.platform}/${process.arch}/NylasMailSetup.exe`,
});
uploads.push({
source: `${outputDir}/NylasMailSetup.exe`,
key: `${nextVersion}/${process.platform}/${process.arch}/NylasMailSetup.exe`,
});
uploads.push({
source: `${outputDir}/Nylas-${packageVersion}-full.nupkg`,
key: `${fullVersion}/${process.platform}/${process.arch}/nylas-${packageVersion}-full.nupkg`,