Skip to content

Commit 57a6d3e

Browse files
committed
adapt build to new electron version
1 parent fceead8 commit 57a6d3e

File tree

7 files changed

+754
-143
lines changed

7 files changed

+754
-143
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ os:
1010

1111
env:
1212
matrix:
13-
- TRAVIS_NODE_VERSION="6"
13+
# - TRAVIS_NODE_VERSION="6"
1414
#- TRAVIS_NODE_VERSION="6" ARCH="x86"
15-
- TRAVIS_NODE_VERSION="7"
15+
# - TRAVIS_NODE_VERSION="7"
1616
#- TRAVIS_NODE_VERSION="7" ARCH="x86"
1717
#- TRAVIS_ELECTRON_VERSION="1.4.14" TRAVIS_NODE_VERSION="6"
1818
- TRAVIS_NODE_VERSION="8"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ clean:
1111
node-pre-gyp clean
1212

1313
packet:
14-
npm install mocha
14+
npm install mocha@7
1515
npm install assert
1616
npm install should
1717
npm install node-pre-gyp

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ $npm install node-occ
6262
# installing nodejs and gyp utility to build extensions
6363
sudo apt-get install nodejs npm
6464
sudo npm install node-pre-gyp -g
65-
sudo npm install mocha -g
65+
sudo npm install mocha@7 -g
6666

6767
#installing cmake
6868
sudo apt-get install cmake cmake-curses-gui g++ build-essential libtbb2

appveyor.yml

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,20 @@ environment:
2121
VisualStudioVersion: "12"
2222
matrix:
2323

24-
# - nodejs_version: 6
25-
# platform: x86
26-
27-
- nodejs_version: 6
28-
platform: x64
29-
30-
# - nodejs_version: 7
31-
# platform: x86
32-
33-
- nodejs_version: 7
24+
- electron_version: "7.3.2"
25+
nodejs_version: 12
3426
platform: x64
27+
28+
# - electron_version: "8.5.0" // not working yet =< GetBackingStore missing
29+
# nodejs_version: 12
30+
# platform: x64
3531

32+
# - electron_version: "9.2.0"
33+
# nodejs_version: 12
34+
# platform: x64
35+
3636
- nodejs_version: 8
3737
platform: x64
38-
39-
- nodejs_version: 9
40-
platform: x64
4138

4239
- nodejs_version: 10
4340
platform: x64
@@ -64,17 +61,7 @@ environment:
6461
# nodejs_version: 6
6562
# platform: x64
6663

67-
- electron_version: "7.3.2"
68-
nodejs_version: 12
69-
platform: x64
70-
71-
- electron_version: "8.5.0"
72-
nodejs_version: 12
73-
platform: x64
7464

75-
- electron_version: "9.2.0"
76-
nodejs_version: 12
77-
platform: x64
7865

7966
# clone directory
8067
clone_folder: c:\projects\node-occ

build.bat

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,21 +72,23 @@ df
7272

7373

7474
IF NOT DEFINED electron_version (
75-
SET electron_version=1.4.14
75+
SET electron_version=9.2.0
7676
)
7777

7878
SET npm_config_target=%electron_version%
79-
SET npm_config_disturl=https://atom.io/download/atom-shell
79+
SET npm_config_arch=%PLATFORM%
80+
SET npm_config_target_arch=%PLATFORM%
81+
SET npm_config_disturl=https://electronjs.org/headers
8082
SET npm_config_runtime=electron
81-
83+
SET npm_config_build_from_source=true
8284
ECHO Install electron and electron-mocha
8385
ECHO " PLATFORM =" %PLATFORM%
8486
ECHO " npm_config_arch =" %npm_config_arch%
8587
ECHO " npm_config_target =" %npm_config_target%
8688
ECHO " npm_config_runtime =" %npm_config_runtime%
87-
89+
SET HOME=%APPDATA%/.electron-gyp
8890
CALL npm install electron@%electron_version% -g
89-
CALL npm install electron-mocha
91+
CALL npm install electron-mocha@%electron_version%
9092
CALL npm install --build-from-source --msvc_version=%VSVER% --target_arch=%npm_config_arch%
9193
if NOT '%ERRORLEVEL%'=='0' goto handle_npm_install_error
9294

0 commit comments

Comments
 (0)