From cb363c53262bd323918f26a97a1229db8d13ae5f Mon Sep 17 00:00:00 2001 From: msojocs Date: Thu, 24 Apr 2025 13:54:58 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0ci=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=20(#139)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * perf: replace ubuntu 20.04 with latest * fix: Cannot handle 8-byte build ID * perf: wxvpkg_pack 兼容windows --- tools/wxvpkg_pack.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/wxvpkg_pack.js b/tools/wxvpkg_pack.js index 00d4377..a8c22de 100755 --- a/tools/wxvpkg_pack.js +++ b/tools/wxvpkg_pack.js @@ -3,7 +3,6 @@ // https://gist.github.com/chemzqm/9f2334ca201dc2fbc363fdd757aa2ed4 const path = require('path') const fs = require('fs') -const { execSync } = require('child_process') const args = process.argv.slice(2); const from = args[0] @@ -12,7 +11,10 @@ const to = args[1] let file = to console.log(file) if (fs.existsSync(file)) { - execSync(`rm -rf ${file}`) + try{ + fs.rmSync(file) + } + catch{} } let fd = fs.openSync(file, 'w')