diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-12-18 12:11:17 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-12-26 00:00:04 +0100 |
commit | a8fea1d64358793691418089552b6bb9ab32d189 (patch) | |
tree | 41abedc95b66d9bcda5c4ee8ef61e34535121e8a | |
parent | 3d978c31a7fd37d633ca2baf749b2e9f187a0b8f (diff) | |
download | VeraCrypt-a8fea1d64358793691418089552b6bb9ab32d189.tar.gz VeraCrypt-a8fea1d64358793691418089552b6bb9ab32d189.zip |
MacOSX: Make VeraCrypt default handler of .hc and .tc files on OSX and add custom icon to these files on Finder.
-rw-r--r-- | src/Build/Resources/MacOSX/Info.plist.xml | 47 | ||||
-rw-r--r-- | src/Main/Main.make | 1 | ||||
-rw-r--r-- | src/Resources/Icons/VeraCrypt_Volume.icns | bin | 0 -> 336546 bytes |
3 files changed, 48 insertions, 0 deletions
diff --git a/src/Build/Resources/MacOSX/Info.plist.xml b/src/Build/Resources/MacOSX/Info.plist.xml index 15430f6d..c62d2d7f 100644 --- a/src/Build/Resources/MacOSX/Info.plist.xml +++ b/src/Build/Resources/MacOSX/Info.plist.xml @@ -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> diff --git a/src/Main/Main.make b/src/Main/Main.make index 92865ef3..db04eee3 100644 --- a/src/Main/Main.make +++ b/src/Main/Main.make @@ -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 diff --git a/src/Resources/Icons/VeraCrypt_Volume.icns b/src/Resources/Icons/VeraCrypt_Volume.icns Binary files differnew file mode 100644 index 00000000..808243fe --- /dev/null +++ b/src/Resources/Icons/VeraCrypt_Volume.icns |