https://github.com/jacobq/ember-electron-update-demo
Bare-bones example using ember-electron and nuts/squirrel for automatic updates
https://github.com/jacobq/ember-electron-update-demo
ember-electron squirrel
Last synced: about 1 year ago
JSON representation
Bare-bones example using ember-electron and nuts/squirrel for automatic updates
- Host: GitHub
- URL: https://github.com/jacobq/ember-electron-update-demo
- Owner: jacobq
- License: mit
- Created: 2017-03-06T15:33:39.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-15T23:01:29.000Z (over 9 years ago)
- Last Synced: 2025-03-26T21:09:32.375Z (about 1 year ago)
- Topics: ember-electron, squirrel
- Language: JavaScript
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ember-electron-update-demo
# **Important:** These instructions are currently out of date. Please check back after `ember-electron` v2.0 is released.
## Introduction
This application is intended to provide a minimalistic example of one way to provide seamless software updates to an electron application based on `ember-electron` by using free git hosting from [GitHub](github.com) (containing update content) and free application hosting from [Heroku](heroku.com) (running [`nuts`](https://github.com/GitbookIO/nuts) server to facilitate updates).
At the time of writing `ember-electron` was transitioning from version 1.x to 2.x, and it was necessary to use [`npm link` per these instructions](https://github.com/felixrieseberg/ember-electron/issues/160#issuecomment-284005502) to make things work. This caused me much grief, so you may want to wait for 2.0 to be released before playing with this.
## From scratch
```
# (Note: it's normally not this complicated -- just due to pending PRs right now)
git clone git+ssh://git@github.com/isleofcode/electron-forge
cd electron-forge
git checkout feat/make-platforms
npm install
npm link
cd ..
git clone git+ssh://git@github.com/felixrieseberg/ember-electron
cd ember-electron
npm link electron-forge
npm install
npm link
cd ..
# (This is normally where one would start)
ember new demo-app
cd demo-app
# (Normally the following would just be `ember install ember-electron`)
npm install --save-dev ember-electron@file:///abs/path/to/ember-electron
npm link ember-electron
ember g ember-electron
npm link electron-forge
# TODO: edit config & files
npm install
ember electron # To run
ember electron:package; ember electron:make # To package
```
## Prerequisites
You will need the following things properly installed on your computer.
* [Git](https://git-scm.com/)
* [Node.js](https://nodejs.org/) (with NPM)
* [Bower](https://bower.io/)
* [Ember CLI](https://ember-cli.com/)
* [PhantomJS](http://phantomjs.org/)
Note: to build as a Windows Store application you also need to install the [Windows 10 SDK](https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk)
Note: For building rpm (RedHat Linux) packages you may need to `sudo apt-get install rpm` on Debian/Ubuntu systems.
## Installation
* `git clone ` this repository
* `cd ember-electron-update-demo`
* `npm install`
* `ember electron` (to build & run / debug)
* `ember electron:make` (to generate installation package)
## Further Reading / Useful Links
* [nuget](https://www.nuget.org/)
* [electron autoUpdater](https://electron.atom.io/docs/api/auto-updater/)
* [ember-electron](https://github.com/felixrieseberg/ember-electron)
* [ember.js](http://emberjs.com/)
* [ember-cli](https://ember-cli.com/)
* [nuts](https://github.com/GitbookIO/nuts)
## License
This software is provided free of charge under the terms of the MIT license. See [`LICENSE` file](./LICENSE) for details.