Skip to content

Commit 8a87304

Browse files
committed
add electron-builder & modify deploy scripts
1 parent 64bbe05 commit 8a87304

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.env
22
node_modules/*
33
!node_modules/boost
4-
Boost-darwin-x64/
4+
dist/
55
compiled

builder-config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"osx" : {
3+
"title": "Boost Installer",
4+
// "background": "resources/background.png",
5+
"icon": "resources/app.icns",
6+
"icon-size": 80,
7+
"contents": [
8+
{ "x": 438, "y": 344, "type": "link", "path": "/Applications" },
9+
{ "x": 192, "y": 344, "type": "file" }
10+
]
11+
}
12+
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
"start": "BOOST_ENV=development electron ./main.js",
88
"webpack": "webpack-dev-server --hot --inline --config webpack.config.js",
99
"compile": "NODE_ENV=production webpack --config webpack.config.production.js",
10-
"build": "electron-packager ./ Boost --app-version=$npm_package_version $npm_package_config_platform $npm_package_config_version $npm_package_config_ignore --overwrite --asar",
11-
"codesign": "codesign --verbose --deep --force --sign \"TG7C97ZRU2\" Boost-darwin-x64/Boost.app",
10+
"pack:osx": "electron-packager ./ Boost --app-version=$npm_package_version $npm_package_config_platform $npm_package_config_version $npm_package_config_ignore --overwrite --out=\"dist\"",
11+
"codesign:osx": "codesign --verbose --deep --force --sign \"TG7C97ZRU2\" Boost-darwin-x64/Boost.app",
12+
"build:osx": "electron-builder \"dist/Boost-darwin-x64/Boost.app\" --platform=osx --out=\"dist\" --config=\"./builder-config.json\"",
1213
"release": "electron-release --app=\"/Users/dickchoi/Boost/boost-app/Boost-darwin-x64/Boost.app\" --token=$(cat .env/.github-token) --repo=\"BoostIO/boost-releases\""
1314
},
1415
"config": {

0 commit comments

Comments
 (0)