From dc6386f6716f4965b95ae5f55be34ccbda1f2ab1 Mon Sep 17 00:00:00 2001 From: Allen Date: Sun, 18 May 2025 20:26:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AEwindows=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E7=9A=84=E5=AE=89=E8=A3=85=E5=BC=95=E5=AF=BC=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- forge.config.ts | 19 +++++++++++++++++-- package.json | 2 +- tsconfig.json | 2 +- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/forge.config.ts b/forge.config.ts index a6dc7a8..71c5fa5 100644 --- a/forge.config.ts +++ b/forge.config.ts @@ -13,10 +13,25 @@ const config: ForgeConfig = { extraResource: [ 'assets/' ], - icon: 'assets/icon.ico', + icon: 'assets/icon', }, rebuildConfig: {}, - makers: [new MakerSquirrel({}), new MakerZIP({}, ['darwin']), new MakerRpm({}), new MakerDeb({})], + makers: [ + new MakerSquirrel({ + authors: 'Allen Cai', + owners: 'Allen Cai', + exe: 'china-telecom-app.exe', + name: 'china-telecom-app', + version: require('./package.json').version, + description: 'China Telecom App', + copyright: 'Copyright © 2025 Allen Cai', + noMsi: true, + setupIcon: 'assets/icon.ico', + }), + new MakerZIP({}, ['darwin']), + new MakerRpm({}), + new MakerDeb({}) + ], plugins: [ new VitePlugin({ // `build` can specify multiple entry builds, which can be Main process, Preload scripts, Worker process, etc. diff --git a/package.json b/package.json index c9db25f..c67a90b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "china-telecom-app", "productName": "china-telecom-app", - "version": "1.0.0", + "version": "1.1.0", "description": "China Telecom App", "main": ".vite/build/main.js", "scripts": { diff --git a/tsconfig.json b/tsconfig.json index 04afc51..cdcbcbb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "target": "ESNext", - "module": "commonjs", + "module": "ESNext", "allowJs": true, "skipLibCheck": true, "esModuleInterop": true,