From 773467dee4e79e0dfd97c5ee98fc253dead3302c Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 13 May 2021 16:16:50 +0200 Subject: Refactor macOS bundle generation to avoid "quarantine" macOS Big Sur 11.3 introduced a new "security feature" such that app bundles created from existing bundle templates in downloaded files (tar distibutions, expanded) could no longer be executed without unsetting the "quarantine" attribute. This commit fixes this by creating all bundles from scratch. Known *workaround* for older tarballs and snapshots: $ xattr -d -r com.apple.quarantine xxx.app --- test/mac-resources/blocks.icns | Bin 0 -> 51049 bytes test/mac-resources/blocks.plist | 47 ++++++++++++++++++++++++++++++++++++++ test/mac-resources/checkers.icns | Bin 0 -> 61235 bytes test/mac-resources/checkers.plist | 47 ++++++++++++++++++++++++++++++++++++++ test/mac-resources/editor.plist | 43 ++++++++++++++++++++++++++++++++++ test/mac-resources/sudoku.icns | Bin 0 -> 34921 bytes test/mac-resources/sudoku.plist | 47 ++++++++++++++++++++++++++++++++++++++ 7 files changed, 184 insertions(+) create mode 100644 test/mac-resources/blocks.icns create mode 100644 test/mac-resources/blocks.plist create mode 100644 test/mac-resources/checkers.icns create mode 100644 test/mac-resources/checkers.plist create mode 100644 test/mac-resources/editor.plist create mode 100644 test/mac-resources/sudoku.icns create mode 100644 test/mac-resources/sudoku.plist (limited to 'test/mac-resources') diff --git a/test/mac-resources/blocks.icns b/test/mac-resources/blocks.icns new file mode 100644 index 000000000..7e7ba24eb Binary files /dev/null and b/test/mac-resources/blocks.icns differ diff --git a/test/mac-resources/blocks.plist b/test/mac-resources/blocks.plist new file mode 100644 index 000000000..bb256be62 --- /dev/null +++ b/test/mac-resources/blocks.plist @@ -0,0 +1,47 @@ + + + + CFBundleInfoDictionaryVersion + 6.0 + + CFBundleExecutable + blocks + + CFBundleIdentifier + org.fltk.blocks + + CFBundleVersion + 1.0 + + CFBundleDevelopmentRegion + English + + NSHumanReadableCopyright + Copyright 2006-2021 by Michael Sweet + + CFAppleHelpAnchor + help + + CFBundleName + blocks + + CFBundlePackageType + APPL + + CFBundleSignature + BLKS + + CFBundleIconFile + blocks.icns + + CFBundleShortVersionString + 1.0 + + CFBundleGetInfoString + 1.0, Copyright 2006-2021 by Michael Sweet + + NSHighResolutionCapable + + + + diff --git a/test/mac-resources/checkers.icns b/test/mac-resources/checkers.icns new file mode 100644 index 000000000..5bdec121c Binary files /dev/null and b/test/mac-resources/checkers.icns differ diff --git a/test/mac-resources/checkers.plist b/test/mac-resources/checkers.plist new file mode 100644 index 000000000..66ec8d1e9 --- /dev/null +++ b/test/mac-resources/checkers.plist @@ -0,0 +1,47 @@ + + + + CFBundleInfoDictionaryVersion + 6.0 + + CFBundleExecutable + checkers + + CFBundleIdentifier + org.fltk.checkers + + CFBundleVersion + 1.0 + + CFBundleDevelopmentRegion + English + + NSHumanReadableCopyright + Copyright 1997-2021 by Bill Spitzak and others + + CFAppleHelpAnchor + help + + CFBundleName + checkers + + CFBundlePackageType + APPL + + CFBundleSignature + FLCK + + CFBundleIconFile + checkers.icns + + CFBundleShortVersionString + 1.0 + + CFBundleGetInfoString + 1.0, Copyright 1997-2021 by Bill Spitzak and others + + NSHighResolutionCapable + + + + diff --git a/test/mac-resources/editor.plist b/test/mac-resources/editor.plist new file mode 100644 index 000000000..6324e5cf2 --- /dev/null +++ b/test/mac-resources/editor.plist @@ -0,0 +1,43 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleDocumentTypes + + + CFBundleTypeExtensions + + * + + CFBundleTypeName + AllFiles + CFBundleTypeRole + Editor + LSTypeIsPackage + + NSPersistentStoreTypeKey + XML + + + CFBundleExecutable + editor + CFBundleGetInfoString + Part of the FLTK library. Please visit www.fltk.org. + CFBundleIdentifier + org.fltk.editor + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + APPL + CFBundleSignature + FLTK + CFBundleVersion + 1.0 + NSHumanReadableCopyright + Copyright 1998-2021 by Bill Spitzak and others. + NSHighResolutionCapable + + + diff --git a/test/mac-resources/sudoku.icns b/test/mac-resources/sudoku.icns new file mode 100644 index 000000000..abbe75ef0 Binary files /dev/null and b/test/mac-resources/sudoku.icns differ diff --git a/test/mac-resources/sudoku.plist b/test/mac-resources/sudoku.plist new file mode 100644 index 000000000..058382811 --- /dev/null +++ b/test/mac-resources/sudoku.plist @@ -0,0 +1,47 @@ + + + + CFBundleInfoDictionaryVersion + 6.0 + + CFBundleExecutable + sudoku + + CFBundleIdentifier + org.fltk.sudoku + + CFBundleVersion + 1.0 + + CFBundleDevelopmentRegion + English + + NSHumanReadableCopyright + Copyright 2005-2021 by Michael Sweet + + CFAppleHelpAnchor + help + + CFBundleName + sudoku + + CFBundlePackageType + APPL + + CFBundleSignature + FLSU + + CFBundleIconFile + sudoku.icns + + CFBundleShortVersionString + 1.0 + + CFBundleGetInfoString + 1.0, Copyright 2005-2021 by Michael Sweet + + NSHighResolutionCapable + + + + -- cgit v1.2.3