diff --git a/.gitignore b/.gitignore index fd28ced7..8d2c0503 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ .env node_modules/* !node_modules/boost -Boost-darwin-x64/ +dist/ compiled diff --git a/builder-config.json b/builder-config.json new file mode 100644 index 00000000..8b8fa269 --- /dev/null +++ b/builder-config.json @@ -0,0 +1,12 @@ +{ + "osx" : { + "title": "Boost Installer", + // "background": "resources/background.png", + "icon": "resources/app.icns", + "icon-size": 80, + "contents": [ + { "x": 438, "y": 344, "type": "link", "path": "/Applications" }, + { "x": 192, "y": 344, "type": "file" } + ] + } +} diff --git a/package.json b/package.json index da42c8de..cab5bdd1 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,9 @@ "start": "BOOST_ENV=development electron ./main.js", "webpack": "webpack-dev-server --hot --inline --config webpack.config.js", "compile": "NODE_ENV=production webpack --config webpack.config.production.js", - "build": "electron-packager ./ Boost --app-version=$npm_package_version $npm_package_config_platform $npm_package_config_version $npm_package_config_ignore --overwrite --asar", - "codesign": "codesign --verbose --deep --force --sign \"TG7C97ZRU2\" Boost-darwin-x64/Boost.app", + "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\"", + "codesign:osx": "codesign --verbose --deep --force --sign \"TG7C97ZRU2\" Boost-darwin-x64/Boost.app", + "build:osx": "electron-builder \"dist/Boost-darwin-x64/Boost.app\" --platform=osx --out=\"dist\" --config=\"./builder-config.json\"", "release": "electron-release --app=\"/Users/dickchoi/Boost/boost-app/Boost-darwin-x64/Boost.app\" --token=$(cat .env/.github-token) --repo=\"BoostIO/boost-releases\"" }, "config": {