配置windows平台的安装引导程序图标

This commit is contained in:
Allen 2025-05-18 20:26:53 +08:00
parent 7da3a62852
commit dc6386f671
3 changed files with 19 additions and 4 deletions

View File

@ -13,10 +13,25 @@ const config: ForgeConfig = {
extraResource: [ extraResource: [
'assets/' 'assets/'
], ],
icon: 'assets/icon.ico', icon: 'assets/icon',
}, },
rebuildConfig: {}, 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: [ plugins: [
new VitePlugin({ new VitePlugin({
// `build` can specify multiple entry builds, which can be Main process, Preload scripts, Worker process, etc. // `build` can specify multiple entry builds, which can be Main process, Preload scripts, Worker process, etc.

View File

@ -1,7 +1,7 @@
{ {
"name": "china-telecom-app", "name": "china-telecom-app",
"productName": "china-telecom-app", "productName": "china-telecom-app",
"version": "1.0.0", "version": "1.1.0",
"description": "China Telecom App", "description": "China Telecom App",
"main": ".vite/build/main.js", "main": ".vite/build/main.js",
"scripts": { "scripts": {

View File

@ -1,7 +1,7 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "ESNext", "target": "ESNext",
"module": "commonjs", "module": "ESNext",
"allowJs": true, "allowJs": true,
"skipLibCheck": true, "skipLibCheck": true,
"esModuleInterop": true, "esModuleInterop": true,