Add mac info.plist for URI handler

This commit is contained in:
Aditya Kulkarni
2019-03-20 09:44:57 -07:00
parent ce6c9762ff
commit be0eaa2835
4 changed files with 43 additions and 2 deletions

1
.gitignore vendored
View File

@@ -34,5 +34,4 @@ workspace.code-workspace
*.xcsettings
.DS_Store
*.mak
*.plist
zcashd

40
res/Info.plist Normal file
View File

@@ -0,0 +1,40 @@
<?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>CFBundleExecutable</key>
<string>zecwallet</string>
<key>CFBundleGetInfoString</key>
<string>Created by Qt/QMake</string>
<key>CFBundleIconFile</key>
<string>logo.icns</string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.zecwallet</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>LSMinimumSystemVersion</key>
<string>10.11</string>
<key>NOTE</key>
<string>This file was generated by Qt/QMake.</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>zcash URI</string>
<key>CFBundleURLSchemes</key>
<array>
<string>zcash</string>
</array>
</dict>
</array>
<key>NSUIElement</key>
<true/>
</dict>
</plist>

View File

@@ -37,7 +37,7 @@ Write-Host "[Building Linux + Windows]"
Write-Host -NoNewline "Copying files.........."
ssh $server "rm -rf /tmp/zqwbuild"
ssh $server "mkdir /tmp/zqwbuild"
scp -r src/ res/ ./zec-qt-wallet.pro ./application.qrc ./LICENSE ./README.md ${server}:/tmp/zqwbuild/ | Out-Null
scp -r src/ singleapplication/ res/ ./zec-qt-wallet.pro ./application.qrc ./LICENSE ./README.md ${server}:/tmp/zqwbuild/ | Out-Null
ssh $server "dos2unix -q /tmp/zqwbuild/src/scripts/mkrelease.sh" | Out-Null
ssh $server "dos2unix -q /tmp/zqwbuild/src/version.h"
Write-Host "[OK]"

View File

@@ -107,6 +107,8 @@ TRANSLATIONS = res/zec_qt_wallet_es.ts \
include(singleapplication/singleapplication.pri)
DEFINES += QAPPLICATION_CLASS=QApplication
QMAKE_INFO_PLIST = res/Info.plist
win32: RC_ICONS = res/icon.ico
ICON = res/logo.icns