mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 15:33:12 +09:00
Support the ARM64 Linux headless build of Factorio
Factorio publishes a linux-arm64 headless build from 2.1.18. On ARM64 Linux the host now downloads that build, refuses versions older than 2.1.18 that are not already installed, and finds the binary in bin/arm64 or bin/x64, whichever is present. The host builds the download URL from the version instead of using headlessUrl from the controller, so the version list on the wire stays the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
35f9609865
commit
5aaea1f213
7 files changed
+167
-15
No files matched your search
+14
-1
@@ -1,10 +1,23 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { readFile } from "node:fs/promises";
|
||||
|
||||
import { fetchFactorioVersions } from "@clusterio/lib";
|
||||
import { factorioHeadlessUrl, fetchFactorioVersions } from "@clusterio/lib";
|
||||
import { slowTest, externalTest } from "../../common.js";
|
||||
|
||||
describe("FactorioVersions", function() {
|
||||
describe("factorioHeadlessUrl", function() {
|
||||
it("should return the linux64 build by default", function() {
|
||||
assert.equal(
|
||||
factorioHeadlessUrl("2.1.24"), "https://www.factorio.com/get-download/2.1.24/headless/linux64"
|
||||
);
|
||||
});
|
||||
it("should return the linux-arm64 build for arm64", function() {
|
||||
assert.equal(
|
||||
factorioHeadlessUrl("2.1.24", "arm64"),
|
||||
"https://www.factorio.com/get-download/2.1.24/headless/linux-arm64",
|
||||
);
|
||||
});
|
||||
});
|
||||
describe("fetchFactorioVersions", function() {
|
||||
const originalFetch = global.fetch;
|
||||
|
||||
|
||||
Reference in new issue
Block a user