2018-02-11 14:54:45 +01:00
|
|
|
@echo off
|
|
|
|
|
2018-11-25 00:22:50 +01:00
|
|
|
set "ELECTRON=%4"
|
|
|
|
set "PLATFORM=%1"
|
|
|
|
set "ARCH=%2"
|
|
|
|
set "VER=%3"
|
2018-03-21 00:29:00 +01:00
|
|
|
set "VENDOR_PATH=.\node_modules\node-sass\vendor"
|
|
|
|
set "BUILD_PATH=.\node_modules\node-sass\build\Release\binding.node"
|
2018-02-11 14:54:45 +01:00
|
|
|
|
|
|
|
echo Building %PLATFORM%-%ARCH% bindings
|
2018-03-21 00:29:00 +01:00
|
|
|
call ./node_modules/.bin/electron-rebuild -v=%ELECTRON% -a=%ARCH% -m ./node_modules/node-sass
|
2018-02-11 14:54:45 +01:00
|
|
|
|
|
|
|
if exist %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER%\binding.node (
|
|
|
|
echo Deleting old %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER%\binding.node
|
|
|
|
del /S /Q %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER%\*
|
|
|
|
)
|
|
|
|
|
|
|
|
if not exist %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER% (
|
|
|
|
echo Dir %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER% does not exist, creating.
|
2018-03-21 00:29:00 +01:00
|
|
|
mkdir %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER%
|
2018-02-11 14:54:45 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
if not exist %BUILD_PATH% (
|
|
|
|
echo %BUILD_PATH% Does not exist
|
|
|
|
) else (
|
|
|
|
echo Copying %BUILD_PATH% to %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER%
|
|
|
|
copy %BUILD_PATH% %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER%
|
|
|
|
)
|