mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Enable Hardened Runtime
This commit is contained in:
parent
806df9ae1e
commit
82b092c545
6 changed files with 33 additions and 112 deletions
|
|
@ -32,10 +32,7 @@ final class MediaChecker: Sendable {
|
|||
|
||||
func checkDeprecationStatus() async throws -> Bool {
|
||||
guard let scriptURL = Bundle.main.url(forResource: "mediaremote-adapter", withExtension: "pl"),
|
||||
let nowPlayingTestClientPath = Bundle.main.url(forResource: "MediaRemoteAdapterTestClient", withExtension: nil)?.path,
|
||||
//let frameworkPath = Bundle.main.privateFrameworksPath?.appending("/MediaRemoteAdapter.framework")
|
||||
//let frameworkPath = Optional("/System/Library/PrivateFrameworks/MediaRemoteAdapter.framework")
|
||||
let frameworkPath =
|
||||
let frameworkPath =
|
||||
Bundle.main.resourceURL?
|
||||
.appendingPathComponent("MediaRemoteAdapter.framework")
|
||||
.path
|
||||
|
|
@ -43,6 +40,11 @@ final class MediaChecker: Sendable {
|
|||
throw MediaCheckerError.missingResources
|
||||
}
|
||||
|
||||
let nowPlayingTestClientPath =
|
||||
Bundle.main.bundleURL
|
||||
.appendingPathComponent("Contents/Helpers/MediaRemoteAdapterTestClient")
|
||||
.path
|
||||
|
||||
let process = Process()
|
||||
process.executableURL = URL(fileURLWithPath: "/usr/bin/perl")
|
||||
process.arguments = [scriptURL.path, frameworkPath, nowPlayingTestClientPath, "test"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue