Skip to content

Commit

Permalink
Linux arm64: download releases through build.haxe.org
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Apr 24, 2024
1 parent 3198618 commit 6e8a2f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/HaxeNightlies.hx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class HaxeNightlies {
static var ref_check = ~/^[a-f0-9]{7,}$/i;

public static function resolve(ref:String):String {
if (ref_check.match(ref)) return getNightly(ref);
if (SemVer.isValid(ref)) return getNightly(ref, true);
if (ref_check.match(ref)) return getNightly(ref);
return ref;
}

Expand Down
5 changes: 2 additions & 3 deletions src/tools/Utils.hx
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ class Utils {
public static function getReleaseUrl(v:String):Array<String> {
return switch Sys.systemName() {
case "Linux" if (isArm64()):
// TODO
throw "Haxe releases don't include linux-arm64 binaries yet";
// ['https://github.com/HaxeFoundation/haxe/releases/download/$v/', 'haxe-$v-linux-arm64.tar.gz'];
final nightly = HaxeNightlies.resolve(v);
['https://build.haxe.org/builds/haxe/linux-arm64/' + Path.directory(nightly), Path.withoutDirectory(nightly) + '.tar.gz'];
case "Linux":
['https://github.com/HaxeFoundation/haxe/releases/download/$v/', 'haxe-$v-linux64.tar.gz'];
case "Mac":
Expand Down

0 comments on commit 6e8a2f3

Please sign in to comment.