pnpm add --save-dev @electron-forge/cli
"devDependencies": {
"@electron-forge/cli": "^6.2.1"
}
npx electron-forge import
"author": "Hey、小怪兽",
"description": "Desktop pet",
"config": {
"forge": {
"packagerConfig": {
"name": "TaroPet",
"icon": "src/public/icon/icon.ico",
"asar": true
},
"makers": [
{
"name": "@electron-forge/maker-squirrel",
"config": {
"name": "TaroPet"
}
},
{
"name": "@electron-forge/maker-zip",
"platforms": [
"darwin"
]
},
{
"name": "@electron-forge/maker-deb",
"config": {}
},
{
"name": "@electron-forge/maker-rpm",
"config": {}
}
]
}
}
pnpm run make
{
"name": "demo",
"version": "1.0.0",
"description": "Desktop pet",
"main": "./src/_main/main.js",
"scripts": {
"start": "electron-forge start",
"package": "electron-forge package",
"make": "electron-forge make"
},
"keywords": [],
"author": "Hey、小怪兽",
"license": "ISC",
"dependencies": {
"electron-squirrel-startup": "^1.0.0",
"electron-store": "^8.1.0",
"nodemon": "^2.0.22"
},
"devDependencies": {
"@electron-forge/cli": "^6.2.1",
"@electron-forge/maker-deb": "^6.2.1",
"@electron-forge/maker-rpm": "^6.2.1",
"@electron-forge/maker-squirrel": "^6.2.1",
"@electron-forge/maker-zip": "^6.2.1",
"@electron-forge/plugin-auto-unpack-natives": "^6.2.1",
"electron": "24.3.1"
},
"config": {
"forge": {
"packagerConfig": {
"name": "TaroPet",
"icon": "src/public/icon/icon.ico",
"asar": true
},
"makers": [
{
"name": "@electron-forge/maker-squirrel",
"config": {
"name": "TaroPet"
}
},
{
"name": "@electron-forge/maker-zip",
"platforms": [
"darwin"
]
},
{
"name": "@electron-forge/maker-deb",
"config": {}
},
{
"name": "@electron-forge/maker-rpm",
"config": {}
}
]
}
}
}
此页面不支持夜间模式!
已进入夜间模式!
已进入普通模式!
搜索框不允许为空
签到成功!经验+5!芋圆币+2!
签到失败!今日已签到!
需要登录社区账号才可以进入!