mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-07 00:02:14 +08:00
chore: 更新ci脚本 (#139)
* perf: replace ubuntu 20.04 with latest * fix: Cannot handle 8-byte build ID * perf: wxvpkg_pack 兼容windows
This commit is contained in:
parent
70a2622fae
commit
cb363c5326
@ -3,7 +3,6 @@
|
|||||||
// https://gist.github.com/chemzqm/9f2334ca201dc2fbc363fdd757aa2ed4
|
// https://gist.github.com/chemzqm/9f2334ca201dc2fbc363fdd757aa2ed4
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const { execSync } = require('child_process')
|
|
||||||
|
|
||||||
const args = process.argv.slice(2);
|
const args = process.argv.slice(2);
|
||||||
const from = args[0]
|
const from = args[0]
|
||||||
@ -12,7 +11,10 @@ const to = args[1]
|
|||||||
let file = to
|
let file = to
|
||||||
console.log(file)
|
console.log(file)
|
||||||
if (fs.existsSync(file)) {
|
if (fs.existsSync(file)) {
|
||||||
execSync(`rm -rf ${file}`)
|
try{
|
||||||
|
fs.rmSync(file)
|
||||||
|
}
|
||||||
|
catch{}
|
||||||
}
|
}
|
||||||
|
|
||||||
let fd = fs.openSync(file, 'w')
|
let fd = fs.openSync(file, 'w')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user