Which were accidentally comitted to master and also completely wrong
as it sets the version to the literal 'develop' which is silly.
This commit is contained in:
David Baker 2020-02-27 17:30:00 +00:00
parent 9ec2407957
commit 18dbad4e8c

View file

@ -118,7 +118,7 @@ async function main() {
let targetVersion;
let filename;
let url;
let shouldSetPackageVersion = false;
let setVersion = 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;
shouldSetPackageVersion = true;
setVersion = true;
}
const haveGpg = await new Promise((resolve) => {
@ -279,15 +279,13 @@ async function main() {
console.log("Pack " + expectedDeployDir + " -> " + ASAR_PATH);
await asar.createPackage(expectedDeployDir, ASAR_PATH);
if (shouldSetPackageVersion) {
if (setVersion) {
const semVer = targetVersion.slice(1);
console.log("Updating package version to " + semVer);
console.log("Updating version to " + semVer);
await setPackageVersion(semVer);
await setDebVersion(semVer);
}
console.log("Updating deb version to " + targetVersion);
await setDebVersion(targetVersion);
console.log("Done!");
}