Commit 4c6671c9 authored by Auto Backup's avatar Auto Backup

feat: build

parent 5261d47b
......@@ -132,14 +132,14 @@ async function main() {
// Copy files from source to destination (recursive)
console.log("Starting file copy...");
await copyFiles(src, dest, subFolders);
console.log("File copy completed.");
// If it's a file, copy directly
fs.copyFile("./CPAS6Setup_IAS.iss", dest, fs.constants.COPYFILE_FICLONE, (err) => {
if (err) {
new Error(`Error copying file: ${err}`);
}
});
console.log("File copy completed.");
// Run the updateVersion.js script
console.log("Running updateVersion.js...");
await execCommand(`node "${dest}/buildscript/updateVersion.js"`);
......@@ -147,7 +147,7 @@ async function main() {
// Run ISCC to compile the installer
console.log("Running ISCC.exe...");
await execCommand(`ISCC.exe "${dest}/CPAS6Setup_IAS.iss"`);
await execCommand(`D:/InnoSetup6/ISCC.exe "${dest}/CPAS6Setup_IAS.iss"`);
console.log("ISCC.exe completed.");
console.log("Script execution completed successfully.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment