Skip to content

Commit cb363c5

Browse files
authored
chore: 更新ci脚本 (#139)
* perf: replace ubuntu 20.04 with latest * fix: Cannot handle 8-byte build ID * perf: wxvpkg_pack 兼容windows
1 parent 70a2622 commit cb363c5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/wxvpkg_pack.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// https://gist.github.com/chemzqm/9f2334ca201dc2fbc363fdd757aa2ed4
44
const path = require('path')
55
const fs = require('fs')
6-
const { execSync } = require('child_process')
76

87
const args = process.argv.slice(2);
98
const from = args[0]
@@ -12,7 +11,10 @@ const to = args[1]
1211
let file = to
1312
console.log(file)
1413
if (fs.existsSync(file)) {
15-
execSync(`rm -rf ${file}`)
14+
try{
15+
fs.rmSync(file)
16+
}
17+
catch{}
1618
}
1719

1820
let fd = fs.openSync(file, 'w')

0 commit comments

Comments
 (0)