From a8fea1d64358793691418089552b6bb9ab32d189 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 18 Dec 2016 12:11:17 +0100 Subject: MacOSX: Make VeraCrypt default handler of .hc and .tc files on OSX and add custom icon to these files on Finder. --- src/Build/Resources/MacOSX/Info.plist.xml | 47 ++++++++++++++++++++++++++++++ src/Main/Main.make | 1 + src/Resources/Icons/VeraCrypt_Volume.icns | Bin 0 -> 336546 bytes 3 files changed, 48 insertions(+) create mode 100644 src/Resources/Icons/VeraCrypt_Volume.icns (limited to 'src') 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 @@ CFBundleIdentifier org.idrix.VeraCrypt + + UTExportedTypeDeclarations + + + UTTypeIdentifier + org.idrix.veracrypt.hc + + UTTypeDescription + VeraCrypt Container File + + UTTypeConformsTo + + public.data + + + UTTypeTagSpecification + + public.filename-extension + + hc + tc + + + public.mime-type + application/veracrypt + + + + + CFBundleDocumentTypes + + + CFBundleTypeIconFile + VeraCrypt_Volume.icns + CFBundleTypeName + VeraCrypt Container File + CFBundleTypeRole + Viewer + LSHandlerRank + Owner + LSItemContentTypes + + + org.idrix.veracrypt.hc + + + CFBundleDevelopmentRegion English 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 new file mode 100644 index 00000000..808243fe Binary files /dev/null and b/src/Resources/Icons/VeraCrypt_Volume.icns differ -- cgit v1.2.3