Skip to content

Commit

Permalink
use neko 2.4rc and universal bundle on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidan63 committed Jul 12, 2024
1 parent 6f1b7e2 commit 2106137
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ abstract class Asset {
}
}

// * NOTE https://github.com/HaxeFoundation/neko/releases/download/v2-3-0/neko-2.3.0-linux64.tar.gz
// * NOTE https://github.com/HaxeFoundation/neko/releases/download/v2-3-0/neko-2.3.0-osx64.tar.gz
// * NOTE https://github.com/HaxeFoundation/neko/releases/download/v2-3-0/neko-2.3.0-win64.zip
// * NOTE https://github.com/HaxeFoundation/neko/releases/download/v2-4-0-rc-1/neko-2.3.0-rc.1-linux64.tar.gz
// * NOTE https://github.com/HaxeFoundation/neko/releases/download/v2-4-0-rc-1/neko-2.4.0-rc.1-osx-universal.tar.gz
// * NOTE https://github.com/HaxeFoundation/neko/releases/download/v2-4-0-rc-1/neko-2.3.0-rc.1-win64.zip
export class NekoAsset extends Asset {
static resolveFromHaxeVersion(version: string) {
const nekoVer = version.startsWith('3.') ? '2.1.0' : '2.3.0'; // Haxe 3 only supports neko 2.1
const nekoVer = version.startsWith('3.') ? '2.1.0' : '2.4.0-rc.1'; // Haxe 3 only supports neko 2.1
return new NekoAsset(nekoVer);
}

Expand All @@ -126,6 +126,10 @@ export class NekoAsset extends Asset {
return this.env.platform;
}

if (this.env.platform === 'osx' && this.version.startsWith('2.4')) {
return 'osx-universal';
}

return `${this.env.platform}${this.env.arch}`;
}

Expand Down

0 comments on commit 2106137

Please sign in to comment.