-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.bat
41 lines (29 loc) · 919 Bytes
/
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
@echo off
echo -------------------------
echo MicaElectron builder v1.0
echo -------------------------
echo.
ren data binding.gyp
echo -------------------------
echo Reset src folders
rmdir /s /q src
mkdir src
echo -------------------------
echo.
echo -------------------------
node-gyp rebuild >nul 2>&1 | echo Build for x64
echo move build\Release\micaElectron.node to src\micaElectron_x64.node
move build\Release\micaElectron.node src\micaElectron_x64.node >nul 2>&1
echo -------------------------
echo.
echo -------------------------
node-gyp rebuild --arch=ia32 >nul 2>&1 | echo Build for ia32
echo move build\Release\micaElectron.node to src\micaElectron_ia32.node
move build\Release\micaElectron.node src\micaElectron_ia32.node >nul 2>&1
echo -------------------------
echo.
echo -------------------------
echo Delete build folder
rmdir /s /q build
echo -------------------------
ren binding.gyp data