forked from electron/electron-quick-start
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e94d7f
commit 3657a54
Showing
7 changed files
with
85 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,38 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directory | ||
node_modules | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
version.json | ||
compile/ | ||
.cache/ | ||
release/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
# electron-quick-start | ||
# innobox | ||
This is an example [electron](http://electron.atom.io/) app to show how to update self using [innoSetup](http://www.jrsoftware.org/isinfo.php). | ||
|
||
**Clone and run for a quick way to see an Electron in action.** | ||
The name `innobox` is the demo name. | ||
|
||
This is a minimal Electron application based on the [Quick Start Guide](http://electron.atom.io/docs/latest/tutorial/quick-start) within the Electron documentation. | ||
|
||
A basic Electron application needs just these files: | ||
|
||
- `index.html` - A web page to render. | ||
- `main.js` - Starts the app and creates a browser window to render HTML. | ||
- `package.json` - Points to the app's main file and lists its details and dependencies. | ||
## Usage | ||
``` | ||
# install dependencies | ||
npm install | ||
You can learn more about each of these components within the [Quick Start Guide](http://electron.atom.io/docs/latest/tutorial/quick-start). | ||
# run app | ||
npm start | ||
``` | ||
|
||
## To Use | ||
## Package | ||
``` | ||
npm i -g gulp | ||
gulp inno | ||
``` | ||
|
||
To clone and run this repository you'll need [Git](https://git-scm.com) and [Node.js](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com)) installed on your computer. From your command line: | ||
This command will package innobox to file `release/innobox-setup.exe` | ||
|
||
```bash | ||
# Clone this repository | ||
git clone https://github.com/atom/electron-quick-start | ||
# Go into the repository | ||
cd electron-quick-start | ||
# Install dependencies and run the app | ||
npm install && npm start | ||
``` | ||
## More | ||
File `inno-update.js` implement API which defines in <http://electron.atom.io/docs/v0.36.4/api/auto-updater/> | ||
|
||
Learn more about Electron and its API in the [documentation](http://electron.atom.io/docs/latest). | ||
## PS | ||
是不是很简单,坑爹的我花了好长时间才想起来可以这么做。 | ||
|
||
#### License [CC0 (Public Domain)](LICENSE.md) | ||
## License [CC0 (Public Domain)](LICENSE.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.