Commit e89cd2ef authored by 李金钢's avatar 李金钢

Update build.js

parent 331ce748
...@@ -132,9 +132,10 @@ async function main() { ...@@ -132,9 +132,10 @@ async function main() {
// Copy files from source to destination (recursive) // Copy files from source to destination (recursive)
console.log("Starting file copy..."); console.log("Starting file copy...");
await copyFiles(src, dest, subFolders); await copyFiles(src, dest, subFolders);
const iss= '/CPAS6Setup_IASWithBom.iss'
// If it's a file, copy directly // If it's a file, copy directly
fs.copyFile("./CPAS6Setup_IAS.iss", dest, fs.constants.COPYFILE_FICLONE, (err) => { fs.copyFile("."+iss, dest, fs.constants.COPYFILE_FICLONE, (err) => {
if (err) { if (err) {
new Error(`Error copying file: ${err}`); new Error(`Error copying file: ${err}`);
} }
...@@ -147,7 +148,7 @@ async function main() { ...@@ -147,7 +148,7 @@ async function main() {
// Run ISCC to compile the installer // Run ISCC to compile the installer
console.log("Running ISCC.exe..."); console.log("Running ISCC.exe...");
await execCommand(`D:/InnoSetup6/ISCC.exe "${dest}/CPAS6Setup_IAS.iss"`); await execCommand(`D:/InnoSetup6/ISCC.exe "${dest}${iss}"`);
console.log("ISCC.exe completed."); console.log("ISCC.exe completed.");
console.log("Script execution completed successfully."); 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