macos dist fixes

This commit is contained in:
crschnick 2024-07-22 03:08:45 +00:00
parent 97ff085e15
commit 227559a7df
2 changed files with 49 additions and 1 deletions

View file

@ -119,7 +119,7 @@ task prepareMacOSInfo(type: DefaultTask) {
doLast {
file("${project.layout.buildDirectory.get()}/macos_resources").mkdirs()
copy {
from replaceVariablesInFile("$projectDir/misc/mac/Info.plist",
from replaceVariablesInFile("$projectDir/jpackage/Info.plist",
Map.of('__NAME__',
rootProject.productName,
'__VERSION__',

48
dist/jpackage/Info.plist vendored Normal file
View file

@ -0,0 +1,48 @@
<?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>CFBundleAllowMixedLocalizations</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>xpiped</string>
<key>CFBundleIconFile</key>
<string>xpiped.icns</string>
<key>CFBundleIdentifier</key>
<string>__BUNDLE__</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>__NAME__</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>io.xpipe.URLScheme</string>
<key>CFBundleURLSchemes</key>
<array>
<string>xpipe</string>
<string>ssh</string>
</array>
</dict>
</array>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>LSMinimumSystemVersion</key>
<string>10.11</string>
<key>NSHighResolutionCapable</key>
<string>true</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright (C) 2024</string>
<key>CFBundleShortVersionString</key>
<string>__VERSION__</string>
<key>CFBundleVersion</key>
<string>__VERSION__</string>
</dict>
</plist>