-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.bat
53 lines (49 loc) · 1.53 KB
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
@rem setup
@rem git clone git:https://github.com/marcelklehr/nodist.git
@rem create ~/.node_pre_gyprc
@rem note, for 64 builds you may need to win7 sdk terminal
@rem https://github.com/TooTallNate/node-gyp/issues/112
@rem set PATH=c:\dev2\nodist\bin;%PATH%
@rem set PATH=node_modules\.bin;%PATH%
@rem set PATH=%PATH%;c:\Python27
@rem 32 bit
call set NODIST_X64=0
call nodist use stable
call node -e "console.log(process.version + ' ' + process.arch)"
call node-pre-gyp clean
call npm install --build-from-source
@rem npm test
call node-pre-gyp package
call xcopy build\stage stage /s /e
call node-pre-gyp clean
@rem 64 bit
@rem cannot open input file 'kernel32.lib' https://www.microsoft.com/en-us/download/details.aspx?id=4422
call set NODIST_X64=1
call nodist use stable
call node -e "console.log(process.version + ' ' + process.arch)"
call node-pre-gyp clean
call npm install --build-from-source
@rem npm test
call node-pre-gyp package
call xcopy build\stage stage /s /e
call node-pre-gyp clean
@ rem 32 bit v0.8x
call set NODIST_X64=0
call nodist use v0.8
call node -e "console.log(process.version + ' ' + process.arch)"
call node-pre-gyp clean
call npm install --build-from-source
@rem npm test
call node-pre-gyp package
call xcopy build\stage stage /s /e
call node-pre-gyp clean
@rem 64 bit v0.8.x
call set NODIST_X64=1
call nodist use v0.8
call node -e "console.log(process.version + ' ' + process.arch)"
call node-pre-gyp clean
call npm install --build-from-source
@rem npm test
call node-pre-gyp package
call xcopy build\stage stage /s /e
call node-pre-gyp clean