I’m maintaining a Flatpak that installs a binary, so it simply downloads the x86_64
binary and has flathub.json
specify "only-arches": ["x86_64"]
. Recently upstream started making arm64
binaries I want to distribute on Flatpak as well, but I don’t know how. Any general documentation/guidance on how to do this? I know I can set env vars depending on the arch, like
build-options": {
"arch": {
"aarch64": {
"env" : {
"RUNTIME": "linux-arm64"
}
},
"x86_64": {
"env" : {
"RUNTIME": "linux-x64"
}
}
}
}
But I don’t know how to only download one of the binary sources depending on that. Or should I download both sources anyways? Not sure, that’s why I’m here