mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
Avalonia's Window.Icon doesn't reach the macOS Dock, so the app needs a
proper .app bundle: an ILSpy.icns produced from the existing artwork, an
Info.plist with CFBundleIconFile=ILSpy and CFBundleIdentifier
net.sharpdevelop.ilspy, and a BuildMacAppBundle target that runs
AfterTargets="Publish" for any osx-* RuntimeIdentifier. The target lays
out the standard Contents/MacOS + Contents/Resources structure under
bin/<config>/<tfm>/<rid>/ILSpy.app/ and chmods the apphost executable
so macOS LaunchServices will accept it.
The Avalonia resource glob ('Assets/**') is told to skip the bundle
inputs since they're consumed by the OS loader rather than at runtime
via avares://. The lock files pick up RID-specific runtime asset entries
that NuGet adds when an osx RID is in the project's RuntimeIdentifiers.
pull/3755/head
3 changed files with 71 additions and 0 deletions
Binary file not shown.
@ -0,0 +1,32 @@ |
|||||||
|
<?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>CFBundleName</key> |
||||||
|
<string>ILSpy</string> |
||||||
|
<key>CFBundleDisplayName</key> |
||||||
|
<string>ILSpy</string> |
||||||
|
<key>CFBundleIdentifier</key> |
||||||
|
<string>net.sharpdevelop.ilspy</string> |
||||||
|
<key>CFBundleVersion</key> |
||||||
|
<string>10.1.0</string> |
||||||
|
<key>CFBundleShortVersionString</key> |
||||||
|
<string>10.1</string> |
||||||
|
<key>CFBundlePackageType</key> |
||||||
|
<string>APPL</string> |
||||||
|
<key>CFBundleSignature</key> |
||||||
|
<string>????</string> |
||||||
|
<key>CFBundleExecutable</key> |
||||||
|
<string>ILSpy</string> |
||||||
|
<key>CFBundleIconFile</key> |
||||||
|
<string>ILSpy</string> |
||||||
|
<key>LSMinimumSystemVersion</key> |
||||||
|
<string>11.0</string> |
||||||
|
<key>NSHighResolutionCapable</key> |
||||||
|
<true/> |
||||||
|
<key>NSPrincipalClass</key> |
||||||
|
<string>NSApplication</string> |
||||||
|
<key>NSHumanReadableCopyright</key> |
||||||
|
<string>Copyright (c) ic#code. Licensed under the MIT license.</string> |
||||||
|
</dict> |
||||||
|
</plist> |
||||||
Loading…
Reference in new issue