From a619f4912dbd912a4e6bf0f448cdef0256f7697d Mon Sep 17 00:00:00 2001 From: gaoshuaixing Date: Wed, 26 Feb 2025 14:12:25 +0800 Subject: [PATCH] [fix] [ee-bin] rm replace --- ee-bin/package.json | 2 +- ee-bin/tools/incrUpdater.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ee-bin/package.json b/ee-bin/package.json index 0dacc0b..464f6a5 100644 --- a/ee-bin/package.json +++ b/ee-bin/package.json @@ -1,6 +1,6 @@ { "name": "ee-bin", - "version": "4.1.2", + "version": "4.1.3", "description": "ee bin", "main": "index.js", "scripts": { diff --git a/ee-bin/tools/incrUpdater.js b/ee-bin/tools/incrUpdater.js index 6270094..06e6d4d 100644 --- a/ee-bin/tools/incrUpdater.js +++ b/ee-bin/tools/incrUpdater.js @@ -83,7 +83,7 @@ class IncrUpdater { zipName = path.basename(cfg.output.zip, '.zip') + `-${platformForFilename}-${version}.zip`; const asarZipPath = path.join(homeDir, cfg.output.directory, zipName); if (fs.existsSync(asarZipPath)) { - rm(asarZipPath); + fsPro.removeSync(asarZipPath); } const zip = new admZip(); // 添加 asar 文件