зеркало из https://github.com/electron/electron.git
docs: replace the atom.io headers URL with electronjs.org (#18328)
This commit is contained in:
Родитель
d1207e9d8f
Коммит
e73a0e6cc6
|
@ -8,6 +8,16 @@ The `FIXME` string is used in code comments to denote things that should be fixe
|
|||
|
||||
## Planned Breaking API Changes (7.0)
|
||||
|
||||
### Node Headers URL
|
||||
|
||||
This is the URL specified as `disturl` in a `.npmrc` file or as the `--dist-url`
|
||||
command line flag when building native Node modules. Both will be supported for
|
||||
the forseeable future but it is reccomened that you switch.
|
||||
|
||||
Deprecated: https://atom.io/download/electron
|
||||
|
||||
Replace with: https://electronjs.org/headers
|
||||
|
||||
### `session.clearAuthCache(options)`
|
||||
|
||||
The `session.clearAuthCache` API no longer accepts options for what to clear, and instead unconditionally clears the whole cache.
|
||||
|
|
|
@ -55,7 +55,7 @@ export npm_config_target=1.2.3
|
|||
export npm_config_arch=x64
|
||||
export npm_config_target_arch=x64
|
||||
# Download headers for Electron.
|
||||
export npm_config_disturl=https://atom.io/download/electron
|
||||
export npm_config_disturl=https://electronjs.org/headers
|
||||
# Tell node-pre-gyp that we are building for Electron.
|
||||
export npm_config_runtime=electron
|
||||
# Tell node-pre-gyp to build module from source code.
|
||||
|
@ -72,7 +72,7 @@ use `node-gyp` directly to build for Electron:
|
|||
|
||||
```sh
|
||||
cd /path-to-module/
|
||||
HOME=~/.electron-gyp node-gyp rebuild --target=1.2.3 --arch=x64 --dist-url=https://atom.io/download/electron
|
||||
HOME=~/.electron-gyp node-gyp rebuild --target=1.2.3 --arch=x64 --dist-url=https://electronjs.org/headers
|
||||
```
|
||||
|
||||
* `HOME=~/.electron-gyp` changes where to find development headers.
|
||||
|
|
|
@ -53,4 +53,4 @@ void Initialize(v8::Handle<v8::Object> exports) {
|
|||
|
||||
|
||||
[chromium-gin-lib]: https://code.google.com/p/chromium/codesearch#chromium/src/gin/README.md&sq=package:chromium
|
||||
[electron]: http://electron.atom.io/
|
||||
[electron]: https://electronjs.org/
|
||||
|
|
|
@ -10,7 +10,7 @@ import tempfile
|
|||
from lib.config import s3_config
|
||||
from lib.util import download, rm_rf, s3put, safe_mkdir
|
||||
|
||||
DIST_URL = 'https://atom.io/download/electron/'
|
||||
DIST_URL = 'https://electronjs.org/headers/'
|
||||
|
||||
|
||||
def main():
|
||||
|
|
|
@ -2,7 +2,7 @@ var app = require('electron').app
|
|||
var fs = require('fs')
|
||||
var request = require('request')
|
||||
|
||||
var TARGET_URL = 'https://atom.io/download/electron/index.json'
|
||||
var TARGET_URL = 'https://electronjs.org/headers/index.json'
|
||||
|
||||
function getDate () {
|
||||
var today = new Date()
|
||||
|
|
Загрузка…
Ссылка в новой задаче