Skip to content

Commit

Permalink
Expose bundled haxelib through 'hxlib'
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed May 21, 2024
1 parent 308cd86 commit d44d8d9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions extra/hxlib
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

ROOT=$(dirname $(readlink -f $0))/..

BUILD_OS="linux64"
if [[ "$OSTYPE" == "darwin"* ]]; then
BUILD_OS="mac"
fi

VERSION="${BUILD_OS}_569e52e"
$ROOT/build/$VERSION/haxelib $@
7 changes: 7 additions & 0 deletions extra/hxlib.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@ECHO OFF

SET ROOT=%~dp0
SET ROOT=%ROOT%..
SET VERSION=windows64_569e52e

CALL %ROOT%\build\%VERSION%\haxelib.exe %*
1 change: 1 addition & 0 deletions install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ REM Install base tools
ECHO F | XCOPY /S /Q /Y /F "extra/haxe.bat" "bin/haxe.bat"
ECHO F | XCOPY /S /Q /Y /F "extra/haxelib.bat" "bin/haxelib.bat"
ECHO F | XCOPY /S /Q /Y /F "extra/hx.bat" "bin/hx.bat"
ECHO F | XCOPY /S /Q /Y /F "extra/hxlib.bat" "bin/hxlib.bat"

REM Setup included Haxe version
MKLINK /D "versions/5.0.0-alpha.1+%HAXE_VER%" "%ROOT%/build/windows64_%HAXE_VER%"
Expand Down
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ mkdir -p "$ROOT/bin"

# Install cli launcher
cp extra/hx bin/
cp extra/hxlib bin/

BUILD_OS="linux64"
if [[ "$OSTYPE" == "darwin"* ]]; then
Expand Down

0 comments on commit d44d8d9

Please sign in to comment.