Skip to content

Commit

Permalink
Added electron builder
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschwendener committed Mar 25, 2019
1 parent 4ad925b commit 3746130
Show file tree
Hide file tree
Showing 3 changed files with 727 additions and 21 deletions.
32 changes: 32 additions & 0 deletions electron-builder-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
directories:
output: dist
buildResources: bundle

files:
- bundle/**/*.js
- styles/**/*.css
- ./*.html
- img/**/*
- assets/**/*

win:
icon: ./img/icons/win/icon.ico
target:
- nsis
- zip
publish:
- github

mac:
icon: ./img/icons/mac/icon.icns
category: public.app-category.utilities
target:
- dmg
- zip
publish:
- github

nsis:
allowToChangeInstallationDirectory: true
oneClick: false
perMachine: true
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"lint": "./node_modules/.bin/tslint --project tsconfig.json --config tslint.json",
"lint:fix": "./node_modules/.bin/tslint --project tsconfig.json --config tslint.json --fix",
"test": "./node_modules/.bin/jest --config jest.json --silent .",
"tsc:validate": "./node_modules/.bin/tsc --noEmit"
"tsc:validate": "./node_modules/.bin/tsc --noEmit",
"package:dir": "./node_modules/.bin/electron-builder --dir --config electron-builder-config.yml --publish never"
},
"devDependencies": {
"@types/electron-store": "^1.3.0",
Expand All @@ -42,8 +43,8 @@
"@types/vue-color": "^2.4.1",
"app2png": "https://github.com/oliverschwendener/app2png",
"axios": "^0.18.0",
"bulma-extensions": "^4.0.1",
"electron": "^4.0.0",
"electron-builder": "^20.39.0",
"electron-store": "^2.0.0",
"fuse.js": "^3.3.0",
"jest": "^23.6.0",
Expand All @@ -59,6 +60,7 @@
},
"dependencies": {
"@fortawesome/fontawesome-free": "^5.6.3",
"bulma": "^0.7.2"
"bulma": "^0.7.2",
"bulma-extensions": "^4.0.1"
}
}
Loading

0 comments on commit 3746130

Please sign in to comment.