Skip to content

Commit

Permalink
fix codesigning
Browse files Browse the repository at this point in the history
  • Loading branch information
foxt committed Nov 13, 2024
1 parent 52281ee commit 0b1936d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 17 deletions.
8 changes: 6 additions & 2 deletions sk.Players.Mac.AppleMusic/AppleMusicPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,16 @@ private void PullElapsedTime(object? sender, ElapsedEventArgs e)
objc_msgSend_uint(app.Handle, new Selector("propertyWithCode:").Handle, 1884319603)
)!;
}
this.Position = (int)(NSNumber)this.prop.Get;
//Debugger.Break();
Console.WriteLine(this.prop);
var value = this.prop.Get;

this.Position = (int)(NSNumber)value;


Console.WriteLine(this.Position);
} catch(Exception err) {
Console.WriteLine(err.Message);
Console.WriteLine("Couldn't PullElapsedTime!!! " + err.ToString());
this.app = null;
this.prop = null;
}
Expand Down
25 changes: 13 additions & 12 deletions sk.UI.Mac/Entitlements.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.automation.apple-events</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<!--<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)dev.foxt.sk.mac</string>
</array>-->
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.automation.apple-events</key>
<true/>
<key>com.apple.security.temporary-exception.apple-events</key>
<array>
<string>com.apple.Music</string>
<string>com.apple.iTunes</string>
</array>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>
8 changes: 5 additions & 3 deletions sk.UI.Mac/Info.plist
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?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>
Expand All @@ -7,9 +7,9 @@
<key>CFBundleIdentifier</key>
<string>dev.foxt.sk.mac</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.0.3</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>1.0.3</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleInfoDictionaryVersion</key>
Expand All @@ -30,5 +30,7 @@
<true/>
<key>CFBundleIconFile</key>
<string>AppIcon.icns</string>
<key>NSAppleEventsUsageDescription</key>
<string>sk needs to access your music player to get information about the currently playing track</string>
</dict>
</plist>

0 comments on commit 0b1936d

Please sign in to comment.