|
1 | 1 | { |
2 | 2 | "name": "hiera-editor", |
3 | | - "version": "0.1.1", |
4 | | - "description": "Hiera editor", |
| 3 | + "version": "0.1.2", |
| 4 | + "description": "A GUI tool to manage your Puppet/Hiera for you", |
5 | 5 | "main": "dist/main.js", |
6 | 6 | "scripts": { |
7 | 7 | "start": "electron .", |
8 | | - "postinstall": "npx npmpd && npx run-script-os", |
| 8 | + "postinstall": "npx run-script-os && npx electron-builder install-app-deps", |
9 | 9 | "install:darwin": "./node_modules/rubyjs-darwin/bin/gem install bundler && BUNDLE_GEMFILE=./ruby/Gemfile ./node_modules/rubyjs-darwin/bin/bundle install", |
10 | 10 | "install:linux": "./node_modules/rubyjs-linux/bin/gem install -f bundler && BUNDLE_GEMFILE=./ruby/Gemfile ./node_modules/rubyjs-linux/bin/bundle install", |
11 | 11 | "install:win32": "cmd /C \"set BUNDLE_GEMFILE=ruby\\Gemfile && node_modules\\rubyjs-win32\\bin\\gem install bundler && node_modules\\rubyjs-win32\\bin\\bundle install\"", |
12 | 12 | "test": "mocha --timeout 15000 dist/tests/**/*.js", |
13 | | - "package-mac": "npx electron-packager . --no-prune --overwrite --platform=darwin --arch=x64 --icon=assets/icons/icon.icns --out=release-builds", |
14 | | - "package-win": "npx electron-packager . hiera-editor --no-prune --overwrite --platform=win32 --arch=ia32 --icon=assets/icons/icon.ico --out=release-builds --version-string.ProductName=\"Hiera Editor\"", |
15 | | - "package-linux": "npx electron-packager . hiera-editor --no-prune --overwrite --platform=linux --arch=x64 --icon=assets/icons/icon.png --out=release-builds" |
| 13 | + "compile": "tsc", |
| 14 | + "dist": "npm run compile && npx electron-builder", |
| 15 | + "publish": "npm run compile && npx electron-builder -p onTagOrDraft" |
16 | 16 | }, |
17 | 17 | "repository": "https://github.com/desertkun/hiera-editor", |
| 18 | + "build": { |
| 19 | + "appId": "com.desertkun.hiera-editor", |
| 20 | + "productName": "Hiera Editor", |
| 21 | + "files": [ |
| 22 | + "./build/**/*", |
| 23 | + "./dist/**/*", |
| 24 | + "./html/**/*", |
| 25 | + "./css/**/*", |
| 26 | + "./js/**/*", |
| 27 | + "./images/**/*", |
| 28 | + "./fonts/**/*" |
| 29 | + ], |
| 30 | + "directories": { |
| 31 | + "output": "release-builds" |
| 32 | + }, |
| 33 | + "nsis": { |
| 34 | + "createDesktopShortcut": true |
| 35 | + }, |
| 36 | + "mac": { |
| 37 | + "asar": true, |
| 38 | + "asarUnpack": [ |
| 39 | + "**/app/node_modules/rubyjs-darwin/*" |
| 40 | + ], |
| 41 | + "icon": "build/icons/icon.icns", |
| 42 | + "target": [ |
| 43 | + "zip", |
| 44 | + "dmg" |
| 45 | + ] |
| 46 | + }, |
| 47 | + "win": { |
| 48 | + "asar": true, |
| 49 | + "asarUnpack": [ |
| 50 | + "**/app/node_modules/rubyjs-win32/*" |
| 51 | + ], |
| 52 | + "icon": "build/icons/icon.ico" |
| 53 | + }, |
| 54 | + "linux": { |
| 55 | + "asar": true, |
| 56 | + "asarUnpack": [ |
| 57 | + "**/app/node_modules/rubyjs-linux/*" |
| 58 | + ], |
| 59 | + "icon": "build/icons/icon.png" |
| 60 | + } |
| 61 | + }, |
18 | 62 | "keywords": [ |
19 | 63 | "Electron", |
20 | 64 | "Puppet", |
|
26 | 70 | "@types/chai-as-promised": "^7.1.0", |
27 | 71 | "@types/mocha": "^5.2.5", |
28 | 72 | "@types/tmp": "0.0.33", |
| 73 | + "@types/chai": "^4.1.6", |
| 74 | + "@types/fs-extra": "^5.0.4", |
| 75 | + "@types/yaml": "^1.0.0", |
29 | 76 | "chai": "^4.2.0", |
30 | 77 | "chai-as-promised": "^7.1.1", |
31 | 78 | "electron": "^3.0.0", |
32 | | - "electron-packager": "^12.2.0", |
| 79 | + "electron-builder": "^20.38.4", |
33 | 80 | "mocha": "^5.2.0", |
34 | | - "npm-platform-dependencies": "git+https://github.com/desertkun/npm-platform-dependencies.git", |
35 | 81 | "rimraf": "^2.6.2", |
36 | 82 | "run-script-os": "^1.0.3", |
37 | 83 | "tmp": "0.0.33", |
|
40 | 86 | }, |
41 | 87 | "dependencies": { |
42 | 88 | "@fortawesome/fontawesome-free": "^5.3.1", |
43 | | - "@types/chai": "^4.1.6", |
44 | | - "@types/fs-extra": "^5.0.4", |
45 | | - "@types/yaml": "^1.0.0", |
46 | 89 | "app-root-path": "^2.0.1", |
47 | 90 | "dialogs": "^1.1.20", |
48 | 91 | "electron-ipc-tunnel": "^3.1.0", |
49 | 92 | "electron-json-storage": "^4.1.3", |
| 93 | + "electron-updater": "^4.0.6", |
50 | 94 | "electron-window-state": "^4.1.1", |
51 | 95 | "es6-promise-pool": "^2.5.0", |
52 | 96 | "extract-zip": "^1.6.7", |
|
59 | 103 | "text-ellipsis": "^1.0.3", |
60 | 104 | "yaml": "^1.0.1" |
61 | 105 | }, |
62 | | - "darwinDependencies": { |
63 | | - "rubyjs-darwin": "latest" |
64 | | - }, |
65 | | - "win32Dependencies": { |
66 | | - "rubyjs-win32": "latest" |
67 | | - }, |
68 | | - "linuxDependencies": { |
| 106 | + "optionalDependencies": { |
| 107 | + "rubyjs-darwin": "latest", |
| 108 | + "rubyjs-win32": "latest", |
69 | 109 | "rubyjs-linux": "latest" |
70 | 110 | } |
71 | 111 | } |
0 commit comments