diff --git a/patches/Mantle/.patches b/patches/Mantle/.patches deleted file mode 100644 index 35715fd569153..0000000000000 --- a/patches/Mantle/.patches +++ /dev/null @@ -1 +0,0 @@ -remove_mtlmanagedobjectadapter_h.patch diff --git a/patches/Mantle/remove_mtlmanagedobjectadapter_h.patch b/patches/Mantle/remove_mtlmanagedobjectadapter_h.patch deleted file mode 100644 index 70c6dded28220..0000000000000 --- a/patches/Mantle/remove_mtlmanagedobjectadapter_h.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Shelley Vohr -Date: Mon, 7 Dec 2020 17:34:08 -0800 -Subject: Remove MTLManagedObjectAdapter.h - -We are using an outdated version of Mantle which leverages NSConfinementConcurrencyType, -an enum which has been deprecated with no replacement as of macOS 10.11. -The actual solution to this problem is to upgrade Mantle, but for now -we just stop building the offending adapter. - -diff --git a/Mantle/Mantle.h b/Mantle/Mantle.h -index ebd74e7e435ef008ef29e94d406246c1f7b07a12..81abff872bd597ce6d21bb43be4d19ddc7253088 100644 ---- a/Mantle/Mantle.h -+++ b/Mantle/Mantle.h -@@ -15,7 +15,6 @@ FOUNDATION_EXPORT double MantleVersionNumber; - FOUNDATION_EXPORT const unsigned char MantleVersionString[]; - - #import --#import - #import - #import - #import diff --git a/patches/squirrel.mac/build_add_gn_config.patch b/patches/squirrel.mac/build_add_gn_config.patch index d2c9ef6b4d975..c7984631dc46d 100644 --- a/patches/squirrel.mac/build_add_gn_config.patch +++ b/patches/squirrel.mac/build_add_gn_config.patch @@ -23,10 +23,10 @@ index 89c499e451ecb48655cfd42b01ffa1da56998c2e..98f80aad43a87ed75ca1660ad6a178db +vendor diff --git a/BUILD.gn b/BUILD.gn new file mode 100644 -index 0000000000000000000000000000000000000000..68beb3d10580cdb747a78407c7f5bbb205825c4b +index 0000000000000000000000000000000000000000..a02e5f54d923513fd0676e91a99b8913bad6a57e --- /dev/null +++ b/BUILD.gn -@@ -0,0 +1,242 @@ +@@ -0,0 +1,250 @@ +assert(is_mac) + +import("//build/config/mac/rules.gni") @@ -48,12 +48,16 @@ index 0000000000000000000000000000000000000000..68beb3d10580cdb747a78407c7f5bbb2 + "Resources", + ] + info_plist = "vendor/Mantle/Mantle/Info.plist" -+ extra_substitutions = [ "CURRENT_PROJECT_VERSION=0.0.0" ] ++ extra_substitutions = [ ++ "CURRENT_PROJECT_VERSION=0.0.0", ++ "PRODUCT_BUNDLE_IDENTIFIER=com.electron.mantle", ++ ] + + configs -= [ + "//build/config/compiler:chromium_code", + "//build/config/gcc:symbol_visibility_hidden", + ] ++ + configs += [ "//build/config/compiler:no_chromium_code" ] + public_deps = [ ":mantle_headers" ] + deps = [] @@ -116,7 +120,7 @@ index 0000000000000000000000000000000000000000..68beb3d10580cdb747a78407c7f5bbb2 + info_plist = "vendor/ReactiveObjC/ReactiveObjC/Info.plist" + extra_substitutions = [ + "CURRENT_PROJECT_VERSION=0.0.0", -+ "PRODUCT_BUNDLE_IDENTIFIER=com.electron.reactive", ++ "PRODUCT_BUNDLE_IDENTIFIER=com.electron.reactiveobjc", + ] + defines = [ + "BUILDING_RAC_FRAMEWORK=1", @@ -131,7 +135,6 @@ index 0000000000000000000000000000000000000000..68beb3d10580cdb747a78407c7f5bbb2 + deps = [ + ":reactiveobjc_disposableprovider_dtrace", + ":reactiveobjc_headers", -+ ":reactiveobjc_headers", + ":reactiveobjc_signalprovider_dtrace", + ] + frameworks = [ @@ -150,7 +153,6 @@ index 0000000000000000000000000000000000000000..68beb3d10580cdb747a78407c7f5bbb2 + + cflags_objc = [ + "-fobjc-arc", -+ "-Wno-deprecated-declarations", + ] + + ldflags = [ "-Wl,-install_name,@rpath/$output_name.framework/$output_name" ] @@ -534,10 +536,10 @@ index 0000000000000000000000000000000000000000..a7aeeb7d3e187bd91ef12ed860d1e37e + sys.exit(e.returncode) diff --git a/filenames.gni b/filenames.gni new file mode 100644 -index 0000000000000000000000000000000000000000..3672153140b74fe948e7102b5e1ffad49341163d +index 0000000000000000000000000000000000000000..cee305c80588ffe2234bfadd5c211a9c301fe589 --- /dev/null +++ b/filenames.gni -@@ -0,0 +1,243 @@ +@@ -0,0 +1,249 @@ +squirrel_filenames = { + headers = [ + "Squirrel/NSBundle+SQRLVersionExtensions.h", diff --git a/patches/squirrel.mac/use_uttype_class_instead_of_deprecated_uttypeconformsto.patch b/patches/squirrel.mac/use_uttype_class_instead_of_deprecated_uttypeconformsto.patch index c1966fc3370b5..6fda441fe344b 100644 --- a/patches/squirrel.mac/use_uttype_class_instead_of_deprecated_uttypeconformsto.patch +++ b/patches/squirrel.mac/use_uttype_class_instead_of_deprecated_uttypeconformsto.patch @@ -6,10 +6,10 @@ Subject: Use UTType class instead of deprecated UTTypeConformsTo macOS 12 removed support for the deprecated UTTypeConformsTo function. Its replacement is the dedicated UTType class in the Uniform Type Identifiers framework. diff --git a/BUILD.gn b/BUILD.gn -index 68beb3d10580cdb747a78407c7f5bbb205825c4b..b9e871a0292eeda1f0e738329d0b510bdc3e34a0 100644 +index a02e5f54d923513fd0676e91a99b8913bad6a57e..6f32c4b203a0efa2ccd515e3754494deef5b39f0 100644 --- a/BUILD.gn +++ b/BUILD.gn -@@ -227,6 +227,7 @@ mac_framework_bundle("squirrel_framework") { +@@ -234,6 +234,7 @@ mac_framework_bundle("squirrel_framework") { "IOKit.framework", "Security.framework", "ServiceManagement.framework",