MacOSX: Make VeraCrypt default handler of .hc and .tc files on OSX and add custom icon to these files on Finder.

This commit is contained in:
Mounir IDRASSI 2016-12-18 12:11:17 +01:00
parent 3d978c31a7
commit a8fea1d643
No known key found for this signature in database
GPG Key ID: DD0C382D5FCFB8FC
3 changed files with 48 additions and 0 deletions

View File

@ -7,6 +7,53 @@
<key>CFBundleIdentifier</key>
<string>org.idrix.VeraCrypt</string>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeIdentifier</key>
<string>org.idrix.veracrypt.hc</string>
<key>UTTypeDescription</key>
<string>VeraCrypt Container File</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>hc</string>
<string>tc</string>
</array>
<key>public.mime-type</key>
<string>application/veracrypt</string>
</dict>
</dict>
</array>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFile</key>
<string>VeraCrypt_Volume.icns</string>
<key>CFBundleTypeName</key>
<string>VeraCrypt Container File</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<!-- my app supports files with my custom extension (see UTExportedTypeDeclarations) -->
<string>org.idrix.veracrypt.hc</string>
</array>
</dict>
</array>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>

View File

@ -173,6 +173,7 @@ endif
endif
cp $(PWD)/Resources/Icons/VeraCrypt.icns $(APPNAME).app/Contents/Resources
cp $(PWD)/Resources/Icons/VeraCrypt_Volume.icns $(APPNAME).app/Contents/Resources
cp "$(PWD)/Release/Setup Files/VeraCrypt User Guide.pdf" $(APPNAME).app/Contents/Resources
echo -n APPLTRUE >$(APPNAME).app/Contents/PkgInfo

Binary file not shown.