Skip to content

Commit

Permalink
Prepare Windows and Linux builds
Browse files Browse the repository at this point in the history
  • Loading branch information
alichtman committed Mar 19, 2020
1 parent 4ed111b commit 18576b8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
24 changes: 19 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
{
"name": "deadbolt-app",
"name": "deadbolt",
"version": "0.1.0",
"description": "An open source encryption app that even your mom can use.",
"license": "MIT",
"author": "aaronlichtman@gmail.com",
"author": "Aaron Lichtman <aaronlichtman@gmail.com>",
"contributors": [
"Jonathan Shobrook <shobrookj@gmail.com> (https://github.com/shobrook)"
],
"main": "public/electron.js",
"homepage": "./",
"homepage": "https://github.com/alichtman/deadbolt#readme",
"repository": {
"type": "git",
"url": "https://github.com/alichtman/deadbolt.git"
},
"bugs": {
"url" : "https://github.com/alichtman/deadbolt/issues"
},
"build": {
"appId": "org.alichtman.deadbolt",
"productName": "deadbolt",
Expand All @@ -16,6 +26,9 @@
"directories": {
"buildResources": "assets"
},
"mac": {
"category": "public.app-category.utilities"
},
"dmg": {
"contents": [
{
Expand All @@ -34,7 +47,8 @@
"target": [
"AppImage",
"deb"
]
],
"category": "Utility"
},
"win": {
"target": "NSIS"
Expand All @@ -50,7 +64,7 @@
},
"scripts": {
"build": "react-scripts build",
"dist": "electron-builder",
"dist": "electron-builder -mlw",
"eject": "react-scripts eject",
"electron-pack": "build --em.main=build/electron.js",
"electron-start": "electron .",
Expand Down
10 changes: 5 additions & 5 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ esac
npm version "$bump"
git push

# Build electron app
# Build electron app for Linux, Windows and macOS

npm run preelectron-pack && npm run dist

# Publish on npm

npm publish

# Push new release to GitHub

version=$(node -p "require('./package.json').version")
hub release create -m "deadbolt v$version" "$version" -a dist/deadbolt-"$version"-mac.dmg

# Homebrew

echo "Make sure to update the Homebrew tap with the new release.\n"

0 comments on commit 18576b8

Please sign in to comment.