Skip to content

Commit

Permalink
Add electron-simple-publisher to example
Browse files Browse the repository at this point in the history
  • Loading branch information
megahertz committed Nov 20, 2016
1 parent 585ed65 commit 48b4a69
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 9 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ default.
## Related
- [electron-builder](https://github.com/electron-userland/electron-builder) -
A complete solution to package and build an Electron app
- [electron-simple-publisher](https://github.com/megahertz/electron-simple-publisher) -
Simple way to publish releases for electron-simple-updater


## License
Expand Down
13 changes: 12 additions & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,15 @@ This example shows how to use advanced features of electron-simple-updater

This example uses
[electron-builder](https://github.com/electron-userland/electron-builder)
for building installer and update package.
for building installer and update package and
[electron-simple-publisher](https://github.com/megahertz/electron-simple-publisher)
to simplify release publishing

It can be build and publish by the single command:

npm run release -- -- --transport-token<Your Github API Token>

where `-- --` allows to pass arguments through npm.

Also you can save github api token to publisher.json if you use
a private repository.
6 changes: 5 additions & 1 deletion example/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"url": "https://raw.githubusercontent.com/megahertz/electron-simple-updater/master/example/updates.json"
},
"dependencies": {
"electron-simple-updater": "^1.0.1"
"electron-simple-updater": "^1.2.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/megahertz/electron-simple-updater.git"
}
}
Binary file added example/build/icon.icns
Binary file not shown.
Binary file added example/build/icon.ico
Binary file not shown.
18 changes: 13 additions & 5 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
"main": "app/main.js",
"scripts": {
"postinstall": "install-app-deps",
"start": "node_modules/.bin/electron ./app",
"dist": "build"
"start": "electron ./app",
"dist": "build",
"publish": "publish",
"release": "npm run dist && npm run publish"
},
"author": "Alexey Prokhorov",
"license": "MIT",
Expand All @@ -15,13 +17,19 @@
"mac": {
"category": "public.app-category.developer-tools"
},
"iconUrl": "http://electron.atom.io/images/favicon.ico"
"win": {
"target": "squirrel"
},
"squirrelWindows": {
"iconUrl": "https://raw.githubusercontent.com/megahertz/electron-simple-updater/master/example/build/icon.ico"
}
},
"engines": {
"node": ">=6.0"
},
"devDependencies": {
"electron": "^1.4.3",
"electron-builder": "7.8.0"
"electron": "^1.4.7",
"electron-builder": "^8.6.0",
"electron-simple-publisher": "*"
}
}
7 changes: 7 additions & 0 deletions example/publisher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"transport": {
"module": "github",
"token": "",
"updatesJsonPath": "example/updates.json"
}
}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "electron-simple-updater",
"version": "1.1.3",
"version": "1.2.0",
"description": "Simple way to enable update for the electron application",
"main": "index.js",
"scripts": {
Expand All @@ -14,7 +14,6 @@
},
"files": [
"index.js",
"README.md",
"lib/*"
],
"keywords": [
Expand Down

0 comments on commit 48b4a69

Please sign in to comment.