From b74ab0e6b83494d6666458c62c21508852cbfcba Mon Sep 17 00:00:00 2001 From: Kuingsmile <96409857+Kuingsmile@users.noreply.github.com> Date: Fri, 22 Aug 2025 10:50:51 +0800 Subject: [PATCH] :package: Chore(custom): reduce package size , exclude typescript --- electron-builder.json | 4 ++-- scripts/{removeLocales.cjs => afterPack.cjs} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename scripts/{removeLocales.cjs => afterPack.cjs} (100%) diff --git a/electron-builder.json b/electron-builder.json index a5f8c7e6..38febf85 100644 --- a/electron-builder.json +++ b/electron-builder.json @@ -1,7 +1,7 @@ { "productName": "PicList", "appId": "com.kuingsmile.piclist", - "afterPack": "scripts/removeLocales.cjs", + "afterPack": "scripts/afterPack.cjs", "afterSign": "scripts/notarize.cjs", "directories": { "output": "dist_electron", @@ -13,7 +13,7 @@ "**/node_modules/@img/**", "resources/**" ], - "files": ["out/**/*", "resources/**", "package.json"], + "files": ["out/**/*", "resources/**", "package.json", "!**/node_modules/typescript{,/**}"], "publish": [ { "provider": "s3", diff --git a/scripts/removeLocales.cjs b/scripts/afterPack.cjs similarity index 100% rename from scripts/removeLocales.cjs rename to scripts/afterPack.cjs