forked from crystax/android-crew-staging
-
Notifications
You must be signed in to change notification settings - Fork 2
/
crew.cmd
48 lines (34 loc) · 901 Bytes
/
crew.cmd
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
42
43
44
45
46
47
48
@echo off
setlocal
set GEM_HOME=
set GEM_PATH=
set CREWFILEDIR=%~dp0
set CREWHOSTOS=windows
if not defined SSL_CERT_FILE (
set SSL_CERT_FILE=%CREWFILEDIR%etc\ca-certificates.crt
)
if not defined CREW_NDK_DIR (
set CREW_NDK_DIR=%CREWFILEDIR%..
)
set CREWHOSTCPU=-x86_64
if not exist %CREW_NDK_DIR%\prebuilt\windows%CREWHOSTCPU% (
set CREWHOSTCPU=
)
if not defined CREW_TOOLS_DIR (
set CREW_TOOLS_DIR=%CREW_NDK_DIR%\prebuilt\windows%CREWHOSTCPU%
)
rem set CREW
rem set GIT
set PATH=%CREW_TOOLS_DIR%\bin;%PATH%
%CREW_TOOLS_DIR%\bin\ruby.exe -W0 %CREWFILEDIR%crew.rb %*
if exist %CREWFILEDIR%\crew.new (
%CREWFILEDIR%\bin\update-crew-script.cmd %CREWFILEDIR%
)
if exist %CREW_NDK_DIR%\postpone (
echo Start postponed upgrade process
call %CREW_NDK_DIR%\postpone\upgrade.cmd
echo = Cleaning up
rd /q/s %CREW_NDK_DIR%\postpone
)
endlocal
exit /b %errorlevel%