diff --git a/example/manifest/ppic.toml b/example/manifest/ppic.toml index 691caf5..f41ad6d 100644 --- a/example/manifest/ppic.toml +++ b/example/manifest/ppic.toml @@ -34,7 +34,7 @@ clsid = "{B5291320-FE7C-4069-BF87-A0AC327FCD20}" # # This key is optional. If you don't fill this key, # Windows will use your executable embedded Win32 resources for friendly name. -name = "default" +name = "self" # The icon of this program. # @@ -42,7 +42,7 @@ name = "default" # # This key is optional. If you don't fill this key, # Windows will use the first icon embedded in your executable as icon. -icon = "others" +icon = "self" # The default behavior of your program. # @@ -69,31 +69,41 @@ behavior = "generic" # # Due to the same use of back-slash in path part, # you can utilize TOML "literal strings" syntax to write this value easier. -default = '@C:\path\to\ppic.exe,-1001' +# self = '@C:\path\to\ppic.exe,-1001' # The value of this key also can be a plain string like this commente statement, # if you don't want to touch Win32 resources and your program do not have any I18N requirements. -# default = "Pineapple Picture" +self = "Pineapple Pictures" # And more string resources... -jpg = '@C:\path\to\ppic.exe,-1011' -jfif = '@C:\path\to\ppic.exe,-1050' -gif = '@C:\path\to\ppic.exe,-1012' -bmp = '@C:\path\to\ppic.exe,-1013' -png = '@C:\path\to\ppic.exe,-1014' -ico = '@C:\path\to\ppic.exe,-1015' -jpeg = '@C:\path\to\ppic.exe,-1016' -tif = '@C:\path\to\ppic.exe,-1017' -tiff = '@C:\path\to\ppic.exe,-1018' -webp = '@C:\path\to\ppic.exe,-1019' -avif = '@C:\path\to\ppic.exe,-1020' -svg = '@C:\path\to\ppic.exe,-1021' -kra = '@C:\path\to\ppic.exe,-1022' -xcf = '@C:\path\to\ppic.exe,-1023' -qoi = '@C:\path\to\ppic.exe,-1024' -apng = '@C:\path\to\ppic.exe,-1025' -exr = '@C:\path\to\ppic.exe,-1026' -tga = '@C:\path\to\ppic.exe,-1027' +jpeg = 'JPEG Image' +gif = 'GIF Animation Image' +png = 'PNG Image' +svg = 'Scalable Vector Graphics' +webp = 'WebP Image' +avif = 'AV1 Image File' +ico = 'Windows Icon Image' +icns = 'Apple Icon Image' +psd = 'Photoshop Document' +kra = 'Krita Document' +xcf = 'GIMP Document' +tga = 'TARGA Image' +tif = 'Tagged Image File Format' +bmp = 'Bitmap' +wbmp = 'Wireless Bitmap' +dds = 'DirectDraw Surface' +hdr = 'High Dynamic Range Image' +iff = 'Interchange File Format' +pic = 'Softimage Picture' +pcx = 'PiCture eXchange PC Paintbrush Image' +qoi = 'Quite OK Image' +ras = 'Sun Raster Image' +ora = 'OpenRaster Image' +ani = 'Animated Cursor' +pfm = 'Portable Float Map' +rgb = 'Silicon Graphics Image' +pxr = 'Pixar Raster Image' +sct = 'Scitex Continuous Tone' # ======== Icon Resources ======== @@ -113,18 +123,17 @@ tga = '@C:\path\to\ppic.exe,-1027' # # Due to the same use of back-slash in path part, # you can utilize TOML "literal strings" syntax to write this value easier. -png = 'C:\path\to\ppic.exe,-1' +self = 'C:\path\to\ppic.exe,0' # The value of this key also can be the absolute path to existing icon file like this commente statement. -# png = 'C:\path\to\ppic\icons\png.ico' +generic = 'C:\path\to\ppic\icons\generic.ico' # Add more icon resources... -svg = 'C:\path\to\ppic.exe,-2' -gif = 'C:\path\to\ppic.exe,-3' -jpg = 'C:\path\to\ppic.exe,-4' -webp = 'C:\path\to\ppic.exe,-5' -avif = 'C:\path\to\ppic.exe,-6' -others = 'C:\path\to\ppic.exe,-61' +gif = 'C:\path\to\ppic\icons\gif.ico' +jpeg = 'C:\path\to\ppic\icons\jpeg.ico' +png = 'C:\path\to\ppic\icons\png.ico' +psd = 'C:\path\to\ppic\icons\psd.ico' +svg = 'C:\path\to\ppic\icons\svg.ico' # ======== Behaviors Collection ======== @@ -162,76 +171,191 @@ generic = '"C:\path\to\ppic.exe" "%1"' [exts.jpg] # First, we specify its name shown in Windows Explorer. # The value of this field is the token declared above in "strs" list. -name = "jpg" +name = "jpeg" # Then, speficy its associated icon. # The value of this field is the token declared above in "icons" list. -icon = "jpg" +icon = "jpeg" # At last, specify the behavior of this extension define decide how we open this file. # The value of this field is the token declared above in "behaviors" list. behavior = "generic" # And more file extensions... -[exts.jfif] -name = "jfif" -icon = "jpg" +[exts.jpeg] +name = "jpeg" +icon = "jpeg" behavior = "generic" +[exts.jfif] +name = "jpeg" +icon = "jpeg" +behavior = "generic" + [exts.gif] name = "gif" icon = "gif" behavior = "generic" -[exts.bmp] -name = "bmp" -icon = "others" -behavior = "generic" + [exts.png] name = "png" icon = "png" behavior = "generic" -[exts.ico] -name = "ico" -icon = "others" -behavior = "generic" -[exts.jpeg] -name = "jpeg" -icon = "jpg" -behavior = "generic" -[exts.tif] -name = "tif" -icon = "others" -behavior = "generic" -[exts.tiff] -name = "tiff" -icon = "others" -behavior = "generic" -[exts.webp] -name = "webp" -icon = "webp" -behavior = "generic" + [exts.svg] name = "svg" icon = "svg" behavior = "generic" -[exts.kra] -name = "kra" -icon = "others" -behavior = "generic" -[exts.xcf] -name = "xcf" -icon = "others" + +[exts.webp] +name = "webp" +icon = "generic" behavior = "generic" + [exts.avif] name = "avif" -icon = "avif" +icon = "generic" behavior = "generic" + +[exts.ico] +name = "ico" +icon = "generic" +behavior = "generic" + +[exts.icns] +name = "icns" +icon = "generic" +behavior = "generic" + +[exts.psd] +name = "psd" +icon = "psd" +behavior = "generic" +[exts.psb] +name = "psd" +icon = "psd" +behavior = "generic" +[exts.pdd] +name = "psd" +icon = "psd" +behavior = "generic" +[exts.psdt] +name = "psd" +icon = "psd" +behavior = "generic" + +[exts.kra] +name = "kra" +icon = "generic" +behavior = "generic" + +[exts.xcf] +name = "xcf" +icon = "generic" +behavior = "generic" + +[exts.tga] +name = "tga" +icon = "generic" +behavior = "generic" + +[exts.tif] +name = "tif" +icon = "generic" +behavior = "generic" +[exts.tiff] +name = "tif" +icon = "generic" +behavior = "generic" + +[exts.bmp] +name = "bmp" +icon = "generic" +behavior = "generic" + +[exts.wbmp] +name = "wbmp" +icon = "generic" +behavior = "generic" + +[exts.dds] +name = "dds" +icon = "generic" +behavior = "generic" + +[exts.hdr] +name = "hdr" +icon = "generic" +behavior = "generic" + +[exts.iff] +name = "iff" +icon = "generic" +behavior = "generic" + +[exts.pic] +name = "pic" +icon = "generic" +behavior = "generic" + +[exts.pcx] +name = "pcx" +icon = "generic" +behavior = "generic" + [exts.qoi] name = "qoi" -icon = "others" +icon = "generic" behavior = "generic" -[exts.apng] -name = "apng" -icon = "png" + +[exts.ras] +name = "ras" +icon = "generic" behavior = "generic" -[exts.exr] -name = "exr" -icon = "others" +[exts.sun] +name = "ras" +icon = "generic" +behavior = "generic" + +[exts.ora] +name = "ora" +icon = "generic" +behavior = "generic" + +[exts.ani] +name = "ani" +icon = "generic" +behavior = "generic" + +[exts.pfm] +name = "pfm" +icon = "generic" +behavior = "generic" +[exts.phm] +name = "pfm" +icon = "generic" +behavior = "generic" + +[exts.rgb] +name = "rgb" +icon = "generic" +behavior = "generic" +[exts.rgba] +name = "rgb" +icon = "generic" +behavior = "generic" +[exts.bw] +name = "rgb" +icon = "generic" +behavior = "generic" +[exts.sgi] +name = "rgb" +icon = "generic" +behavior = "generic" + +[exts.pxr] +name = "pxr" +icon = "generic" +behavior = "generic" + +[exts.sct] +name = "sct" +icon = "generic" behavior = "generic"