-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.bat
More file actions
25 lines (19 loc) · 742 Bytes
/
install.bat
File metadata and controls
25 lines (19 loc) · 742 Bytes
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
@ECHO OFF
SET ROOT=%~dp0
REM TODO: from res/.current
SET HAXE_VER=5e4e368
MKDIR "releases"
MKDIR "versions"
MKDIR "bin"
REM Install base tools
ECHO F | XCOPY /S /Q /Y /F "res/haxe.bat" "bin/haxe.bat"
ECHO F | XCOPY /S /Q /Y /F "res/haxelib.bat" "bin/haxelib.bat"
ECHO F | XCOPY /S /Q /Y /F "res/hx.bat" "bin/hx.bat"
ECHO F | XCOPY /S /Q /Y /F "res/hxlib.bat" "bin/hxlib.bat"
REM Setup included Haxe version
MKLINK /D "versions/5.0.0-alpha.1+%HAXE_VER%" "%ROOT%/res/windows64_%HAXE_VER%"
MKLINK /D "current" "%ROOT%/res/windows64_%HAXE_VER%"
REM Prebuild cli
%ROOT%/res/windows64_%HAXE_VER%/haxe.exe --cwd %ROOT% build.hxml --hxb res/hx.hxb
ECHO "Please add %ROOT%/bin to your PATH"
ECHO "Please set HAXE_STD_PATH to %ROOT%/current/std"