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

Update build.js

parent 331ce748
......@@ -133,8 +133,9 @@ async function main() {
console.log("Starting file copy...");
await copyFiles(src, dest, subFolders);
const iss= '/CPAS6Setup_IASWithBom.iss'
// 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) {
new Error(`Error copying file: ${err}`);
}
......@@ -147,7 +148,7 @@ async function main() {
// Run ISCC to compile the installer
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("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