Files
Web2App/package.json
gmh01 8dc102a7cb fix: 重构新建项目逻辑,选定文件夹即项目
- 移除 prompt() 及 InputDialog 组件依赖
- 选定文件夹直接创建 .web2app 项目结构
- 默认以文件夹名作为项目名称
- 在编辑器中可自由修改名称、版本、图标、入口等配置
- 增强导入资源入口的文案提示
2026-07-23 20:40:45 +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": "installer"
},
"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"
}
}