ci(lst): changes to improve the build process

This commit is contained in:
2025-03-14 09:59:53 -05:00
parent 5f5757c784
commit 200ec975f7
2 changed files with 81 additions and 76 deletions

View File

@@ -158,13 +158,18 @@ export const createZip = async (appLock: string) => {
//createZip("C:\\Users\\matthes01\\Documents\\lstv2");
// Only call `createZip` if the script is executed directly
if (import.meta.url === `file://${process.argv[1]}`) {
if (process.argv.length > 2) {
const location = process.argv[2];
if (!location) {
console.error("Error: No location provided.");
createLog("error", "lst", "zipUpBuild", "Error: No location provided.");
process.exit(1);
} else {
createLog("info", "lst", "zipUpBuild", "Startiing the zip process.");
}
createZip(location);
} else {
createLog("error", "lst", "zipUpBuild", "Error: No location provided.");
}