Skip to content

Commit 2b2ce83

Browse files
committed
adds support for QODE_MIRROR
1 parent 89ccb29 commit 2b2ce83

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

qode/npm/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,22 @@ or
2424
npm install @nodegui/qode
2525
```
2626

27+
### Dowload mirrors
28+
29+
By default qode is downloaded using the github releases at
30+
31+
```js
32+
`https://github.com/nodegui/qodejs/releases/download/v${libVersion}-qode/${gitTagVersion}-${platform}-${arch}.tar.gz`
33+
```
34+
35+
if you need to specify an alternative download path you can set the environment variable `QODE_MIRROR` like so and run npm install
36+
37+
```
38+
QODE_MIRROR=https://github.com/nodegui/qodejs/releases/download/v1.2-qode/1.2-linux-x64.tar.gz npm install @nodegui/qodejs
39+
```
40+
41+
If it doesnt download make sure to clear the cached qode at https://github.com/nodegui/qodejs/blob/89ccb29fe3c9d66426311a95369c47820bca4de5/qode/npm/src/config.js#L29
42+
2743
# Version Table:
2844

2945
| Qode | Node | Qt |

qode/npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nodegui/qode",
3-
"version": "16.4.0",
3+
"version": "16.4.1",
44
"description": "Qode is a lightly modified fork of Node.js that allows injecting a third party event loop alongside Node's event loop. It is designed to be used together with `@nodegui/nodegui`",
55
"main": "index.js",
66
"files": [

qode/npm/src/config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ const gitTagVersion = `v${libVersion}-qode`;
2020

2121
const qodePath = path.resolve(extractDir, executableNames[platform]);
2222
const downloadArchiveName = `${gitTagVersion}-${platform}-${arch}.tar.gz`;
23-
const downloadLink = `https://github.com/nodegui/qodejs/releases/download/${gitTagVersion}/${downloadArchiveName}`;
23+
const downloadLink =
24+
process.env.QODE_MIRROR ||
25+
`https://github.com/nodegui/qodejs/releases/download/${gitTagVersion}/${downloadArchiveName}`;
2426

2527
module.exports = {
2628
downloadLink,

0 commit comments

Comments
 (0)