fix(flatpak): honor the launcher version choices (#208)

This commit is contained in:
Dylan M. Taylor authored and GitHub committed 2026-11-11 19:06:20 -05:00
1 parent d9dbe3b482
commit b73facdc7b
3 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ fn flatpak_update_permissions() {
let args = manifests.map(finish_args);
assert_eq!(args[0], args[1], "source and release permissions must agree");
for permissions in args {
for required in ["--share=network", "--talk-name=org.freedesktop.Flatpak"] {
for required in ["--share=network", "--talk-name=org.freedesktop.Flatpak", "--filesystem=xdg-data/ArtCraft/versions:ro"] {
assert!(permissions.contains(&required), "missing update permission: {required}");
}
}
@@ -17,6 +17,8 @@ runtime-version: '26.08'
sdk: org.freedesktop.Sdk
command: materialcraft
finish-args:
# Honor the launcher's pinned and nightly version choices before offering updates.
- --filesystem=xdg-data/ArtCraft/versions:ro
# Release checks and downloads use HTTPS.
- --share=network
# The shared updater inspects and updates this installation via flatpak-spawn --host.
@@ -18,6 +18,8 @@ sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
command: materialcraft
finish-args:
# Honor the launcher's pinned and nightly version choices before offering updates.
- --filesystem=xdg-data/ArtCraft/versions:ro
# Release checks and downloads use HTTPS.
- --share=network
# The shared updater inspects and updates this installation via flatpak-spawn --host.