put Linux build files inside a folder before zipping (#870)

* add preference to set a custom update url

* put linux build inside a folder before zipping
This commit is contained in:
Alberto Iannaccone
2022-03-01 08:23:56 +00:00
committed by GitHub
parent f2d492b5dc
commit 2a27a14a68
9 changed files with 187 additions and 2 deletions

View File

@@ -392,7 +392,11 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()}
for (const fileToCopy of filesToCopy) {
echo(`🚢 >>> Copying ${fileToCopy} to ${targetFolder}.`);
const isZip = await utils.isZip(fileToCopy);
cp('-rf', fileToCopy, targetFolder);
if (isZip && platform === 'linux') {
await utils.adjustArchiveStructure(fileToCopy, targetFolder);
} else {
cp('-rf', fileToCopy, targetFolder);
}
echo(`👌 >>> Copied ${fileToCopy} to ${targetFolder}.`);
}
}