Implement resin.cmd

This commit is contained in:
Juan Cruz Viotti 2015-02-12 14:18:47 -04:00
parent c87f976f6c
commit 8263c23390

11
bin/resin.cmd Executable file
View File

@ -0,0 +1,11 @@
@echo off
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set ARCH=x86 || set ARCH=x64
set NODE_PATH="%~dp0\bin\node\node-win32-%ARCH%.exe"
@IF NOT EXIST %NODE_PATH% (
set NODE_PATH="node.exe"
)
%NODE_PATH% "%~dp0\..\lib\resin.js" %*