balena-cli/bin/resin.cmd

13 lines
361 B
Batchfile
Raw Normal View History

2015-02-12 14:18:47 -04:00
@echo off
2015-02-12 15:20:09 -04:00
:: http://stackoverflow.com/questions/12322308/batch-file-to-check-64bit-or-32bit-os
2015-02-12 14:18:47 -04:00
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set ARCH=x86 || set ARCH=x64
set NODE_PATH="%~dp0\node\node-win32-%ARCH%.exe"
2015-02-12 14:18:47 -04:00
@IF NOT EXIST %NODE_PATH% (
set NODE_PATH="node.exe"
)
2015-02-26 11:46:57 -04:00
%NODE_PATH% "%~dp0\..\build\app.js" %*