Skip to content

Commit d44d8d9

Browse files
committed
Expose bundled haxelib through 'hxlib'
1 parent 308cd86 commit d44d8d9

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

extra/hxlib

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
ROOT=$(dirname $(readlink -f $0))/..
4+
5+
BUILD_OS="linux64"
6+
if [[ "$OSTYPE" == "darwin"* ]]; then
7+
BUILD_OS="mac"
8+
fi
9+
10+
VERSION="${BUILD_OS}_569e52e"
11+
$ROOT/build/$VERSION/haxelib $@

extra/hxlib.bat

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@ECHO OFF
2+
3+
SET ROOT=%~dp0
4+
SET ROOT=%ROOT%..
5+
SET VERSION=windows64_569e52e
6+
7+
CALL %ROOT%\build\%VERSION%\haxelib.exe %*

install.bat

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ REM Install base tools
1212
ECHO F | XCOPY /S /Q /Y /F "extra/haxe.bat" "bin/haxe.bat"
1313
ECHO F | XCOPY /S /Q /Y /F "extra/haxelib.bat" "bin/haxelib.bat"
1414
ECHO F | XCOPY /S /Q /Y /F "extra/hx.bat" "bin/hx.bat"
15+
ECHO F | XCOPY /S /Q /Y /F "extra/hxlib.bat" "bin/hxlib.bat"
1516

1617
REM Setup included Haxe version
1718
MKLINK /D "versions/5.0.0-alpha.1+%HAXE_VER%" "%ROOT%/build/windows64_%HAXE_VER%"

install.sh

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ mkdir -p "$ROOT/bin"
99

1010
# Install cli launcher
1111
cp extra/hx bin/
12+
cp extra/hxlib bin/
1213

1314
BUILD_OS="linux64"
1415
if [[ "$OSTYPE" == "darwin"* ]]; then

0 commit comments

Comments
 (0)