Skip to content

Commit 6aa92ab

Browse files
authored
Update version (fyears#14)
* Update package.json * Update README.md
1 parent 8fe8fe9 commit 6aa92ab

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ start
9595

9696
## preparation
9797

98-
Attention: the example could be successfully run on my Windows 10 machine with Python 3.5, Electron 1.4, Node.js v6.
98+
Attention: the example could be successfully run on my Windows 10 machine with Python 3.6, Electron 1.7, Node.js v6.
9999

100100
We need the python application, `python`, `pip`, `node`, `npm`, available in command line. For using `zerorpc`, we also need the C/C++ compilers (`cc` and `c++` in the command line, and/or MSVC on Windows).
101101

@@ -151,11 +151,11 @@ We need to configure the `package.json`, especially the `main` entry:
151151
"start": "electron ."
152152
},
153153
"dependencies": {
154-
"zerorpc": "fyears/zerorpc-node"
154+
"zerorpc": "git+https://github.com/fyears/zerorpc-node.git"
155155
},
156156
"devDependencies": {
157-
"electron": "^1.4.1",
158-
"electron-packager": "^8.5.1"
157+
"electron": "^1.7.6",
158+
"electron-packager": "^9.0.1"
159159
}
160160
}
161161
```
@@ -181,10 +181,10 @@ Remove-Item .\node_modules -Force -Recurse -ErrorAction Ignore
181181
Then run `npm`:
182182

183183
```bash
184-
# 1.4.15 is the version of electron
184+
# 1.7.6 is the version of electron
185185
# It's very important to set the electron version correctly!!!
186186
# check out the version value in your package.json
187-
npm install --runtime=electron --target=1.4.15
187+
npm install --runtime=electron --target=1.7.6
188188

189189
# verify the electron binary and its version by opening it
190190
./node_modules/.bin/electron
@@ -214,7 +214,7 @@ Set the environment variables for Linux (Ubuntu) / OS X / Windows:
214214
# On Linux / OS X:
215215

216216
# env
217-
export npm_config_target=1.4.15 # electron version
217+
export npm_config_target=1.7.6 # electron version
218218
export npm_config_runtime=electron
219219
export npm_config_disturl=https://atom.io/download/electron
220220
export npm_config_build_from_source=true
@@ -229,7 +229,7 @@ npm config ls
229229
```powershell
230230
# On Window PowerShell (not cmd.exe!!!)
231231
232-
$env:npm_config_target="1.4.15" # electron version
232+
$env:npm_config_target="1.7.6" # electron version
233233
$env:npm_config_runtime="electron"
234234
$env:npm_config_disturl="https://atom.io/download/electron"
235235
$env:npm_config_build_from_source="true"
@@ -540,7 +540,7 @@ In the end, run [`electron-packager`](https://github.com/electron-userland/elect
540540
# and copy the output into the correct distributable Electron folder...
541541

542542
./node_modules/.bin/electron-packager . --overwrite --ignore="pycalc$" --ignore="\.venv" --ignore="old-post-backup"
543-
## Packaging app for platform win32 x64 using electron v1.4.15
543+
## Packaging app for platform win32 x64 using electron v1.7.6
544544
## Wrote new app to ./pretty-calculator-win32-x64
545545
```
546546

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"author": "fyears",
1717
"license": "MIT",
1818
"dependencies": {
19-
"zerorpc": "fyears/zerorpc-node"
19+
"zerorpc": "git+https://github.com/fyears/zerorpc-node.git"
2020
},
2121
"devDependencies": {
22-
"electron": "^1.4.1",
23-
"electron-packager": "^8.5.1"
22+
"electron": "^1.7.6",
23+
"electron-packager": "^9.0.1"
2424
}
2525
}

0 commit comments

Comments
 (0)