Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
cpas6-install
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李金钢
cpas6-install
Commits
4c6671c9
Commit
4c6671c9
authored
Mar 30, 2026
by
Auto Backup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: build
parent
5261d47b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
build.js
build.js
+3
-3
No files found.
build.js
View file @
4c6671c9
...
@@ -132,14 +132,14 @@ async function main() {
...
@@ -132,14 +132,14 @@ 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
);
console
.
log
(
"File copy completed."
);
// 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
(
"./CPAS6Setup_IAS.iss"
,
dest
,
fs
.
constants
.
COPYFILE_FICLONE
,
(
err
)
=>
{
if
(
err
)
{
if
(
err
)
{
new
Error
(
`Error copying file:
${
err
}
`
);
new
Error
(
`Error copying file:
${
err
}
`
);
}
}
});
});
console
.
log
(
"File copy completed."
);
// Run the updateVersion.js script
// Run the updateVersion.js script
console
.
log
(
"Running updateVersion.js..."
);
console
.
log
(
"Running updateVersion.js..."
);
await
execCommand
(
`node "
${
dest
}
/buildscript/updateVersion.js"`
);
await
execCommand
(
`node "
${
dest
}
/buildscript/updateVersion.js"`
);
...
@@ -147,7 +147,7 @@ async function main() {
...
@@ -147,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
(
`
D:/InnoSetup6/
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."
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment