Skip to content

Commit 6e8a2f3

Browse files
committed
Linux arm64: download releases through build.haxe.org
1 parent 3198618 commit 6e8a2f3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/HaxeNightlies.hx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class HaxeNightlies {
99
static var ref_check = ~/^[a-f0-9]{7,}$/i;
1010

1111
public static function resolve(ref:String):String {
12-
if (ref_check.match(ref)) return getNightly(ref);
1312
if (SemVer.isValid(ref)) return getNightly(ref, true);
13+
if (ref_check.match(ref)) return getNightly(ref);
1414
return ref;
1515
}
1616

src/tools/Utils.hx

+2-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@ class Utils {
5151
public static function getReleaseUrl(v:String):Array<String> {
5252
return switch Sys.systemName() {
5353
case "Linux" if (isArm64()):
54-
// TODO
55-
throw "Haxe releases don't include linux-arm64 binaries yet";
56-
// ['https://github.com/HaxeFoundation/haxe/releases/download/$v/', 'haxe-$v-linux-arm64.tar.gz'];
54+
final nightly = HaxeNightlies.resolve(v);
55+
['https://build.haxe.org/builds/haxe/linux-arm64/' + Path.directory(nightly), Path.withoutDirectory(nightly) + '.tar.gz'];
5756
case "Linux":
5857
['https://github.com/HaxeFoundation/haxe/releases/download/$v/', 'haxe-$v-linux64.tar.gz'];
5958
case "Mac":

0 commit comments

Comments
 (0)