| | |
| | | { |
| | | "name": "electron-fg", |
| | | "version": "1.0.0", |
| | | "description": "", |
| | | "description": "electron-fg", |
| | | "main": "main.js", |
| | | "scripts": { |
| | | "start": "electron .", |
| | | "electron:build": "electron-builder build --linux", |
| | | "electron:serve": "vue-cli-service electron:serve --mode development", |
| | | "electron:build": "electron-builder --win --ia32", |
| | | "electron:build-linux": "electron-builder --linux", |
| | | "electron:serve": "electron:serve --mode development", |
| | | "electron:generate-icons": "electron-icon-builder --input=./icon.png --output=build --flatten", |
| | | "test": "echo \"Error: no test specified\" && exit 1" |
| | | }, |
| | | "build": { |
| | | "productName": "test", |
| | | "appId": "com.testyx.text", |
| | | "linux": { |
| | | "icon": "build/icons" |
| | | "productName": "electron-fg", |
| | | "appId": "com.whyc.fg", |
| | | "asar": true, |
| | | "files": [ |
| | | "!dependent/**", |
| | | "!dependent_linux/**", |
| | | "getConfig.js", |
| | | "config.json", |
| | | "main.js", |
| | | "preload.js", |
| | | "loading.html" |
| | | ], |
| | | "directories": { |
| | | "output": "./release" |
| | | }, |
| | | "extraResources": { |
| | | "from": "./config.json", |
| | | "to": "." |
| | | } |
| | | "win": { |
| | | "target": ["dir"], |
| | | "icon": "build/icons/icon.ico" |
| | | }, |
| | | "nsis": { |
| | | "script": "setup.nsi", |
| | | "oneClick": false, |
| | | "perMachine": true, |
| | | "allowToChangeInstallationDirectory": true, |
| | | "createDesktopShortcut": true, |
| | | "createStartMenuShortcut": true, |
| | | "shortcutName": "electronFg" |
| | | }, |
| | | "linux": { |
| | | "icon": "./build/icons", |
| | | "artifactName": "${productName}-${version}-linux.${ext}", |
| | | "target": ["dir", "tar.gz"] |
| | | }, |
| | | "extraResources": [ |
| | | { |
| | | "from": "./dependent_linux/", |
| | | "to": "../" |
| | | }, |
| | | { |
| | | "from": "./build/", |
| | | "to": "build" |
| | | } |
| | | ] |
| | | }, |
| | | "author": "", |
| | | "author": "whychw, Inc <858544502@qq.com>", |
| | | "license": "ISC", |
| | | "devDependencies": { |
| | | "electron-builder": "^24.12.0", |
| | | "electron": "^29.0.0" |
| | | "electron": "^34.1.1", |
| | | "electron-builder": "^26.8.1" |
| | | }, |
| | | "dependencies": { |
| | | "@vue/cli-plugin-babel": "^5.0.8", |
| | | "@vue/cli-service": "^5.0.8" |
| | | "electron-log": "^5.4.3", |
| | | "minimal-request-promise": "^1.5.0" |
| | | } |
| | | } |