Files
Web2App/package.json
gmh01 686d94e178 fix: 修复新建项目无响应问题
- 替换 prompt() 为 InputDialog Vue 模态组件
- 替换 alert()/confirm() 为 Electron showMessageBox IPC
- 添加 dialog:showMessage / dialog:showConfirm IPC 通道
2026-07-23 19:44:04 +08:00

83 lines
1.9 KiB
JSON

{
"name": "web2app",
"version": "1.0.0",
"description": "将网站转化为独立运行的桌面应用",
"homepage": "https://github.com/web2app/web2app",
"author": {
"name": "Web2App Team",
"email": "team@web2app.dev"
},
"main": "electron/main.js",
"scripts": {
"dev": "vite",
"build": "vite build",
"electron:dev": "concurrently \"vite\" \"wait-on http://localhost:5173 && electron .\"",
"electron:build": "vite build && electron-builder --config",
"electron:build:linux": "vite build && electron-builder --config --linux",
"electron:build:deb": "vite build && electron-builder --config --linux deb",
"preview": "vite preview"
},
"build": {
"appId": "com.web2app.app",
"productName": "Web2App",
"directories": {
"output": "release"
},
"files": [
"electron/**/*",
"dist/**/*",
"template/**/*",
"package.json"
],
"extraResources": [],
"win": {
"target": [
{
"target": "nsis",
"arch": ["x64"]
}
],
"icon": null
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"shortcutName": "Web2App"
},
"mac": {
"target": ["dmg"],
"icon": null
},
"linux": {
"target": [
{
"target": "AppImage",
"arch": ["x64"]
},
{
"target": "deb",
"arch": ["x64"]
}
],
"icon": null,
"category": "Utility",
"maintainer": "Web2App Team <team@web2app.dev>"
}
},
"dependencies": {
"pinia": "^2.1.0",
"vue": "^3.4.0",
"vue-router": "^4.3.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.0",
"concurrently": "^8.2.0",
"electron": "^28.0.0",
"electron-builder": "^24.9.0",
"vite": "^5.4.0",
"wait-on": "^7.2.0"
}
}