From bfd8155ddcc8e7b12744768b136bf6c243fb75ad Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sat, 3 Sep 2022 20:06:33 +0200 Subject: [PATCH] templates: Prefer per-user installations on MacOSX With OBS Studio 28.0 comes another restriction: Per-User Plugins. This is currently only enforced on ARM64, but may soon be enforced on all architectures. Adjusting the Packages installer to generate the correct files is relatively easy. Unfortunately the MacOS Package Installer has some problems figuring out if it should show the user the correct step or not, and may even ignore our settings entirely. This bug has been first reported in 2010, and has since then been re-reported in 2016, 2017, 2018, 2019, and 2020 where it was finally turned into a community wiki on StackOverflow. --- templates/macos/installer.pkgproj.in | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/templates/macos/installer.pkgproj.in b/templates/macos/installer.pkgproj.in index 2b7f77a5..06ccd25e 100644 --- a/templates/macos/installer.pkgproj.in +++ b/templates/macos/installer.pkgproj.in @@ -773,6 +773,15 @@ PROJECT_SETTINGS + ADVANCED_OPTIONS + + installer-script.domains:enable_anywhere + 1 + installer-script.domains:enable_currentUserHome + 1 + installer-script.domains:enable_localSystem + 0 + BUILD_FORMAT 0 BUILD_PATH