mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-12 17:26:17 +00:00
add electron-builder & modify deploy scripts
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,5 +1,5 @@
|
||||
.env
|
||||
node_modules/*
|
||||
!node_modules/boost
|
||||
Boost-darwin-x64/
|
||||
dist/
|
||||
compiled
|
||||
|
||||
12
builder-config.json
Normal file
12
builder-config.json
Normal file
@@ -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" }
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user