ci(lst): changes to improve the build process
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user