From e0631770b5a2fefb0e238147ebeaee825c8a07ef Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 27 Feb 2020 17:17:51 +0000 Subject: [PATCH] Always update deb version We always need the debian version to be correct. --- scripts/fetch-package.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/fetch-package.js b/scripts/fetch-package.js index 1ee43c4..1c65f3e 100755 --- a/scripts/fetch-package.js +++ b/scripts/fetch-package.js @@ -118,7 +118,7 @@ async function main() { let targetVersion; let filename; let url; - let setVersion = false; + let setPackageVersion = false; while (process.argv.length > 2) { switch (process.argv[2]) { @@ -166,7 +166,7 @@ async function main() { } else { filename = 'riot-' + targetVersion + '.tar.gz'; url = PACKAGE_URL_PREFIX + targetVersion + '/' + filename; - setVersion = true; + setPackageVersion = true; } const haveGpg = await new Promise((resolve) => { @@ -279,13 +279,15 @@ async function main() { console.log("Pack " + expectedDeployDir + " -> " + ASAR_PATH); await asar.createPackage(expectedDeployDir, ASAR_PATH); - if (setVersion) { + if (setPackageVersion) { const semVer = targetVersion.slice(1); - console.log("Updating version to " + semVer); + console.log("Updating package version to " + semVer); await setPackageVersion(semVer); - await setDebVersion(semVer); } + console.log("Updating deb version to " + targetVersion); + await setDebVersion(targetVersion); + console.log("Done!"); }