mirror of
https://github.com/nextcloud/desktop.git
synced 2026-01-14 02:01:28 +00:00
fix(macOS): Added container migration manifest.
This moves the preferences of the app into its sandbox container as documented here: https://developer.apple.com/documentation/security/migrating-your-app-s-files-to-its-app-sandbox-container Signed-off-by: Iva Horn <iva.horn@nextcloud.com>
This commit is contained in:
@ -31,6 +31,7 @@ SPDX-License-Identifier = "GPL-2.0-or-later"
|
||||
|
||||
[[annotations]]
|
||||
path = [
|
||||
"admin/osx/container-migration.plist.cmake",
|
||||
"admin/osx/TransifexStringCatalogSanitizer/Package.swift",
|
||||
"admin/osx/TransifexStringCatalogSanitizer/Package.resolved",
|
||||
"admin/osx/TransifexStringCatalogSanitizer/README.md",
|
||||
|
||||
@ -21,6 +21,11 @@ else()
|
||||
set(DEBUG_ENTITLEMENTS "")
|
||||
endif()
|
||||
|
||||
# Sandbox migration description
|
||||
configure_file(container-migration.plist.cmake ${CMAKE_CURRENT_BINARY_DIR}/container-migration.plist @ONLY)
|
||||
install(FILES ${CMAKE_BINARY_DIR}/admin/osx/container-migration.plist
|
||||
DESTINATION ${OWNCLOUD_OSX_BUNDLE}/Contents/Resources)
|
||||
|
||||
configure_file(create_mac.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/create_mac.sh)
|
||||
configure_file(macosx.entitlements.cmake ${CMAKE_CURRENT_BINARY_DIR}/macosx.entitlements)
|
||||
configure_file(macosx.pkgproj.cmake ${CMAKE_CURRENT_BINARY_DIR}/macosx.pkgproj)
|
||||
|
||||
10
admin/osx/container-migration.plist.cmake
Normal file
10
admin/osx/container-migration.plist.cmake
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Move</key>
|
||||
<array>
|
||||
<string>${Library}/Preferences/@APPLICATION_NAME@</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
Reference in New Issue
Block a user