balena-cli/bin/resin.cmd

13 lines
361 B
Batchfile
Raw Normal View History

2015-02-12 18:18:47 +00:00
@echo off
2015-02-12 19:20:09 +00:00
:: http://stackoverflow.com/questions/12322308/batch-file-to-check-64bit-or-32bit-os
2015-02-12 18:18:47 +00: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 18:18:47 +00:00
@IF NOT EXIST %NODE_PATH% (
set NODE_PATH="node.exe"
)
2015-02-26 15:46:57 +00:00
%NODE_PATH% "%~dp0\..\build\app.js" %*