mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
return outPath
if --noCompress
This commit is contained in:
parent
d1c27258ce
commit
94ffb78456
@ -67,16 +67,16 @@ async function createAppDistBundle() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function compressDistBundle() {
|
async function compressDistBundle() {
|
||||||
|
const outPath = path.resolve(appDistPath, "../app_dist.7z")
|
||||||
|
|
||||||
if (process.argv.includes("--noCompress") || process.argv.includes("--noBuild")) {
|
if (process.argv.includes("--noCompress") || process.argv.includes("--noBuild")) {
|
||||||
console.log("🔥 Skipping compress due to `noBuild` or `noCompress` argument")
|
console.log("🔥 Skipping compress due to `noBuild` or `noCompress` argument")
|
||||||
return true
|
return outPath
|
||||||
}
|
}
|
||||||
|
|
||||||
// compress with 7zip
|
// compress with 7zip
|
||||||
console.log("⚒ Compressing app...")
|
console.log("⚒ Compressing app...")
|
||||||
|
|
||||||
const outPath = path.resolve(appDistPath, "../app_dist.7z")
|
|
||||||
|
|
||||||
// check if out file exists
|
// check if out file exists
|
||||||
if (fs.existsSync(outPath)) {
|
if (fs.existsSync(outPath)) {
|
||||||
fs.unlinkSync(outPath)
|
fs.unlinkSync(outPath)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user