mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-14 04:00:30 +00:00
Merge pull request #1255 from toad-dev/patch/illuaminate-support-arm-macs
Deliver x86_64 Illuaminate binaries to all Macs
This commit is contained in:
commit
9d394f44d3
@ -66,9 +66,11 @@ class IlluaminatePlugin : Plugin<Project> {
|
|||||||
|
|
||||||
val osArch = System.getProperty("os.arch").toLowerCase()
|
val osArch = System.getProperty("os.arch").toLowerCase()
|
||||||
val arch = when {
|
val arch = when {
|
||||||
|
// On macOS the x86_64 binary will work for both ARM and Intel Macs through Rosetta.
|
||||||
|
os == "macos" -> "x86_64"
|
||||||
osArch == "arm" || osArch.startsWith("aarch") -> error("Unsupported architecture '$osArch' for illuaminate")
|
osArch == "arm" || osArch.startsWith("aarch") -> error("Unsupported architecture '$osArch' for illuaminate")
|
||||||
osArch.contains("64") -> "x86_64"
|
osArch.contains("64") -> "x86_64"
|
||||||
else -> error("Unsupported architecture $osArch for illuaminate")
|
else -> error("Unsupported architecture '$osArch' for illuaminate")
|
||||||
}
|
}
|
||||||
|
|
||||||
return project.dependencies.create(
|
return project.dependencies.create(
|
||||||
|
Loading…
Reference in New Issue
Block a user