Commit 07d71636 authored by Auto Backup's avatar Auto Backup

feat: build

parent 0559f665
This diff is collapsed.
...@@ -108,7 +108,7 @@ pipeline { ...@@ -108,7 +108,7 @@ pipeline {
) )
string(name: 'NODE_WORKING_DIR', defaultValue: ' G:\\cpas-framework', description: 'electron打包脚本执行的工作目录 G:\\cpas-framework or C:/Users/Administrator/Desktop/youdatasumCode/framework') string(name: 'NODE_WORKING_DIR', defaultValue: ' G:\\cpas-framework', description: 'electron打包脚本执行的工作目录 G:\\cpas-framework or C:/Users/Administrator/Desktop/youdatasumCode/framework')
string(name: 'BRANCH_NAME', defaultValue: 'unknown', description: '要构建的分支名称') string(name: 'BRANCH_NAME', defaultValue: 'unknown', description: '要构建的分支名称')
string(name: 'INSTALLATION_DIR', defaultValue: '', description: '安装包打包目录:E:/CPAS6-101 UFCPAS6.0 致同智审IAS版_测试版') string(name: 'INSTALLATION_DIR', defaultValue: '', description: '安装包打包目录:E:/CPAS6-101-UFCPAS6-zt')
string(name: 'PUBLISH_DIR', defaultValue: 'E:/产品安装包/05 大客户专版/109 致同/CPAS6.0 IAS版', description: '发布目录:E:/产品安装包/05 大客户专版/109 致同/CPAS6.0 IAS版') string(name: 'PUBLISH_DIR', defaultValue: 'E:/产品安装包/05 大客户专版/109 致同/CPAS6.0 IAS版', description: '发布目录:E:/产品安装包/05 大客户专版/109 致同/CPAS6.0 IAS版')
} }
......
...@@ -133,6 +133,12 @@ async function main() { ...@@ -133,6 +133,12 @@ async function main() {
console.log("Starting file copy..."); console.log("Starting file copy...");
await copyFiles(src, dest, subFolders); await copyFiles(src, dest, subFolders);
console.log("File copy completed."); 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}`);
}
});
// Run the updateVersion.js script // Run the updateVersion.js script
console.log("Running updateVersion.js..."); console.log("Running updateVersion.js...");
...@@ -141,7 +147,7 @@ async function main() { ...@@ -141,7 +147,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(`ISCC.exe "${dest}/CPAS6Setup_智审IAS作业平台.iss"`); await execCommand(`ISCC.exe "${dest}/CPAS6Setup_IAS.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