Add processor and OS X version requirements to install process.
authorIan Silvester <iansilvester@fastmail.fm>
Thu, 21 Jan 2016 20:48:18 +0000 (20:48 +0000)
committerIan Silvester <iansilvester@fastmail.fm>
Thu, 21 Jan 2016 20:48:18 +0000 (20:48 +0000)
OS X 10.6+ PCRE.pkgproj

index adc609d..37de5cc 100755 (executable)
@@ -25,7 +25,7 @@
                                                                                        <key>GID</key>
                                                                                        <integer>80</integer>
                                                                                        <key>PATH</key>
-                                                                                       <string>pkg content/Applications/Privoxy/readme.rtfd</string>
+                                                                                       <string>pkg content/Applications/Privoxy/readme.pdf</string>
                                                                                        <key>PATH_TYPE</key>
                                                                                        <integer>1</integer>
                                                                                        <key>PERMISSIONS</key>
                                <key>PREINSTALL_PATH</key>
                                <dict>
                                        <key>PATH</key>
-                                       <string>/Users/yan/code/Privoxy/OSXPackageBuilder/pkg resources/single-binary scripts/preinstall</string>
+                                       <string>pkg resources/single-binary scripts/preinstall</string>
                                        <key>PATH_TYPE</key>
-                                       <integer>0</integer>
+                                       <integer>1</integer>
                                </dict>
                                <key>RESOURCES</key>
                                <array/>
@@ -3192,7 +3192,7 @@ This release includes a bundled copy of PCRE 8.21.</string>
                                                <key>VALUE</key>
                                                <dict>
                                                        <key>PATH</key>
-                                                       <string>/Users/yan/code/Privoxy/OSXPackageBuilder/pkg resources/interface texts/ReadMe.txt</string>
+                                                       <string>/Users/yan/code/Privoxy/OSXPackageBuilder/pkg resources/interface texts/ReadMe64.txt</string>
                                                        <key>PATH_TYPE</key>
                                                        <integer>0</integer>
                                                </dict>
@@ -3232,7 +3232,74 @@ This release includes a bundled copy of PCRE 8.21.</string>
                <key>PROJECT_REQUIREMENTS</key>
                <dict>
                        <key>LIST</key>
-                       <array/>
+                       <array>
+                               <dict>
+                                       <key>BEHAVIOR</key>
+                                       <integer>3</integer>
+                                       <key>DICTIONARY</key>
+                                       <dict>
+                                               <key>IC_REQUIREMENT_CPU_ARCHITECTURE_FAMILY</key>
+                                               <integer>2</integer>
+                                               <key>IC_REQUIREMENT_CPU_INTEL_ARCHITECTURE_TYPE</key>
+                                               <integer>2</integer>
+                                               <key>IC_REQUIREMENT_CPU_MINIMUM_CPU_CORES_COUNT</key>
+                                               <integer>1</integer>
+                                               <key>IC_REQUIREMENT_CPU_MINIMUM_FREQUENCY</key>
+                                               <integer>866666</integer>
+                                               <key>IC_REQUIREMENT_CPU_POWERPC_ARCHITECTURE_TYPE</key>
+                                               <integer>0</integer>
+                                       </dict>
+                                       <key>IC_REQUIREMENT_CHECK_TYPE</key>
+                                       <integer>0</integer>
+                                       <key>IDENTIFIER</key>
+                                       <string>fr.whitebox.Packages.requirement.cpu</string>
+                                       <key>MESSAGE</key>
+                                       <array>
+                                               <dict>
+                                                       <key>LANGUAGE</key>
+                                                       <string>English</string>
+                                                       <key>SECONDARY_VALUE</key>
+                                                       <string></string>
+                                                       <key>VALUE</key>
+                                                       <string>This version of Privoxy can only be installed on a Mac with a 64 bit Intel processor</string>
+                                               </dict>
+                                       </array>
+                                       <key>NAME</key>
+                                       <string>Processor</string>
+                                       <key>STATE</key>
+                                       <true/>
+                               </dict>
+                               <dict>
+                                       <key>BEHAVIOR</key>
+                                       <integer>3</integer>
+                                       <key>DICTIONARY</key>
+                                       <dict>
+                                               <key>IC_REQUIREMENT_OS_DISK_TYPE</key>
+                                               <integer>0</integer>
+                                               <key>IC_REQUIREMENT_OS_DISTRIBUTION_TYPE</key>
+                                               <integer>0</integer>
+                                               <key>IC_REQUIREMENT_OS_MINIMUM_VERSION</key>
+                                               <integer>100600</integer>
+                                       </dict>
+                                       <key>IC_REQUIREMENT_CHECK_TYPE</key>
+                                       <integer>1</integer>
+                                       <key>IDENTIFIER</key>
+                                       <string>fr.whitebox.Packages.requirement.os</string>
+                                       <key>MESSAGE</key>
+                                       <array>
+                                               <dict>
+                                                       <key>LANGUAGE</key>
+                                                       <string>English</string>
+                                                       <key>VALUE</key>
+                                                       <string>This version of Privoxy can only be installed on OS X10.6 or higher.</string>
+                                               </dict>
+                                       </array>
+                                       <key>NAME</key>
+                                       <string>Operating System</string>
+                                       <key>STATE</key>
+                                       <true/>
+                               </dict>
+                       </array>
                        <key>POSTINSTALL_PATH</key>
                        <dict/>
                        <key>PREINSTALL_PATH</key>