Skip to content

Commit adc7261

Browse files
committed
fix: windows build failed
1 parent d6c99ff commit adc7261

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/build.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ async function buildWin() {
1313
const OUTPUT_PATH = join(OUTPUT_DIR, WIN_OUTPUT_NAME)
1414

1515
try {
16-
console.log(`📦 Creating standalone executable for Windows...`)
16+
console.log(`📦 Creating standalone executable for Windows...`, OUTPUT_PATH)
1717

1818
execSync(
19-
`node -e "require('fs').copyFileSync(process.execPath, ${OUTPUT_PATH})" `,
19+
`node -e "require('fs').copyFileSync(process.execPath, '${OUTPUT_PATH}')" `,
2020
)
2121

2222
execSync(`signtool remove /s ${OUTPUT_PATH}`)
@@ -40,7 +40,7 @@ async function buildMac() {
4040
const OUTPUT_PATH = join(OUTPUT_DIR, MAC_OUTPUT_NAME)
4141

4242
try {
43-
console.log(`📦 Creating standalone executable for macOS...`)
43+
console.log(`📦 Creating standalone executable for macOS...`, OUTPUT_PATH)
4444

4545
execSync(`cp ${NODE_PATH} ${OUTPUT_PATH}`)
4646

0 commit comments

Comments
 (0)