mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
return outPath
if --noCompress
This commit is contained in:
parent
7b4cd38d73
commit
d353c24aeb
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user