Support tar.gz url for fetching packages (#422)

* Support tar.gz url for fetching packages

* Trim version file
This commit is contained in:
Michael Telatynski 2022-09-23 15:39:43 +01:00 committed by GitHub
parent 0068a18feb
commit 8762f1907a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
scripts/fetch-package.js Executable file → Normal file
View file

@ -221,7 +221,7 @@ async function main() {
await asar.createPackage(expectedDeployDir, ASAR_PATH);
if (setVersion) {
const semVer = fs.readFileSync(path.join(expectedDeployDir, "version"), "utf-8");
const semVer = fs.readFileSync(path.join(expectedDeployDir, "version"), "utf-8").trim();
console.log("Updating version to " + semVer);
await setPackageVersion(semVer);
}