Commits

Vinay Sajip committed a585f62 Draft

Updates to register .pyz/.pyzw.

  • Participants
  • Parent commits 65be9dc

Comments (0)

Files changed (5)

File Associator/main.c

 
 static REGISTRY_ENTRY registry_entries[] = {
     { L".py", NULL, L"Python.File" },
+    { L".pyz", NULL, L"Python.File" },
     { L".pyc", NULL, L"Python.CompiledFile" },
     { L".pyo", NULL, L"Python.CompiledFile" },
     { L".pyw", NULL, L"Python.NoConFile" },
+    { L".pyzw", NULL, L"Python.NoConFile" },
 
     { L"Python.CompiledFile", NULL, L"Compiled Python File" },
     { L"Python.CompiledFile\\DefaultIcon", NULL, L"pyc.ico" },

File buildmsi.cmd

-@echo off
-\python32\python builddoc.py
-set /P SIGNPWD=Password for signing:
-REM x86 ...
-REM \python32\python makemsi.py -o launchsys Platform=x86 Version=1.0.0.2 "Manufacturer=Vinay Sajip" ToSystem launcher
-\python32\python makemsi.py -o launchwin Platform=x86 Version=1.0.0.2 "Manufacturer=Vinay Sajip" ToWindows launcher
-\python32\python makemsi.py Platform=x86 Version=1.0.0.2 "Manufacturer=Vinay Sajip" launcher
-
-REM x64 ...
-REM \python32\python makemsi.py -o launchsys Platform=x64 Version=1.0.0.2 "Manufacturer=Vinay Sajip" ToSystem launcher
-\python32\python makemsi.py -o launchwin Platform=x64 Version=1.0.0.2 "Manufacturer=Vinay Sajip" ToWindows launcher
-\python32\python makemsi.py Platform=x64 Version=1.0.0.2 "Manufacturer=Vinay Sajip" launcher
-set SIGNPWD=

File buildmsi.cmd.old

+@echo off
+\python32\python builddoc.py
+set /P SIGNPWD=Password for signing:
+REM x86 ...
+REM \python32\python makemsi.py -o launchsys Platform=x86 Version=1.0.0.2 "Manufacturer=Vinay Sajip" ToSystem launcher
+\python32\python makemsi.py -o launchwin Platform=x86 Version=1.0.0.2 "Manufacturer=Vinay Sajip" ToWindows launcher
+\python32\python makemsi.py Platform=x86 Version=1.0.0.2 "Manufacturer=Vinay Sajip" launcher
+
+REM x64 ...
+REM \python32\python makemsi.py -o launchsys Platform=x64 Version=1.0.0.2 "Manufacturer=Vinay Sajip" ToSystem launcher
+\python32\python makemsi.py -o launchwin Platform=x64 Version=1.0.0.2 "Manufacturer=Vinay Sajip" ToWindows launcher
+\python32\python makemsi.py Platform=x64 Version=1.0.0.2 "Manufacturer=Vinay Sajip" launcher
+set SIGNPWD=
 import os
 import sys
 
-VERSION = 'Version=1.0.1.2'
+VERSION = 'Version=1.0.1.3'
 MANUFACTURER = 'Manufacturer=Vinay Sajip'
 X86 = 'Platform=x86'
 X64 = 'Platform=x64'

File launcher.wxs

             <Extension Id='py'>
               <Verb Id='open' Command='Open' TargetFile='py' Argument='"%1" %*'/>
             </Extension>
+            <Extension Id='pyz'>
+              <!-- No Verb needed here, as it's associated with ProgId
+                   and not the extension, and the same launcher
+                   is used. -->
+            </Extension>
           </ProgId>
           <ProgId Id='Python.NoConFile' Description='Python File (no console)'
                   Icon='py' IconIndex='1'>
             <Extension Id='pyw'>
               <Verb Id='open' Command='Open' TargetFile='pyw' Argument='"%1" %*'/>
             </Extension>
+            <Extension Id='pyzw'>
+              <!-- No Verb needed here, as it's associated with ProgId
+                   and not the extension, and the same launcher
+                   is used. -->
+            </Extension>
           </ProgId>
           <ProgId Id='Python.CompiledFile' Description='Compiled Python File'
                   Icon='py' IconIndex='2'>