return outPath if --noCompress

This commit is contained in:
SrGooglo 2023-04-27 22:10:38 +00:00
parent d1c27258ce
commit 94ffb78456

View File

@ -67,16 +67,16 @@ async function createAppDistBundle() {
}
async function compressDistBundle() {
const outPath = path.resolve(appDistPath, "../app_dist.7z")
if (process.argv.includes("--noCompress") || process.argv.includes("--noBuild")) {
console.log("🔥 Skipping compress due to `noBuild` or `noCompress` argument")
return true
return outPath
}
// compress with 7zip
console.log("⚒ Compressing app...")
const outPath = path.resolve(appDistPath, "../app_dist.7z")
// check if out file exists
if (fs.existsSync(outPath)) {
fs.unlinkSync(outPath)
@ -208,7 +208,7 @@ async function main() {
const bundlePath = await compressDistBundle()
const changelog = await composeChangelog()
const changelogFilepath = path.resolve(changelogsPath, `v${currentVersion.split(".").join("-")}.md`)
console.log(`📝 Writing changelog to file > ${changelogFilepath}`)