mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 23:44:59 +01:00
Merge branch 'master' into dbkr/docker-env
This commit is contained in:
commit
fca983cc7d
@ -118,7 +118,7 @@ async function main() {
|
|||||||
let targetVersion;
|
let targetVersion;
|
||||||
let filename;
|
let filename;
|
||||||
let url;
|
let url;
|
||||||
let setPackageVersion = false;
|
let shouldSetPackageVersion = false;
|
||||||
|
|
||||||
while (process.argv.length > 2) {
|
while (process.argv.length > 2) {
|
||||||
switch (process.argv[2]) {
|
switch (process.argv[2]) {
|
||||||
@ -166,7 +166,7 @@ async function main() {
|
|||||||
} else {
|
} else {
|
||||||
filename = 'riot-' + targetVersion + '.tar.gz';
|
filename = 'riot-' + targetVersion + '.tar.gz';
|
||||||
url = PACKAGE_URL_PREFIX + targetVersion + '/' + filename;
|
url = PACKAGE_URL_PREFIX + targetVersion + '/' + filename;
|
||||||
setPackageVersion = true;
|
shouldSetPackageVersion = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const haveGpg = await new Promise((resolve) => {
|
const haveGpg = await new Promise((resolve) => {
|
||||||
@ -279,7 +279,7 @@ async function main() {
|
|||||||
console.log("Pack " + expectedDeployDir + " -> " + ASAR_PATH);
|
console.log("Pack " + expectedDeployDir + " -> " + ASAR_PATH);
|
||||||
await asar.createPackage(expectedDeployDir, ASAR_PATH);
|
await asar.createPackage(expectedDeployDir, ASAR_PATH);
|
||||||
|
|
||||||
if (setPackageVersion) {
|
if (shouldSetPackageVersion) {
|
||||||
const semVer = targetVersion.slice(1);
|
const semVer = targetVersion.slice(1);
|
||||||
console.log("Updating package version to " + semVer);
|
console.log("Updating package version to " + semVer);
|
||||||
await setPackageVersion(semVer);
|
await setPackageVersion(semVer);
|
||||||
|
Loading…
Reference in New Issue
Block a user