]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
First crack at version checking for OSX installer.
authorAndrew Lewman <andrew@torproject.org>
Tue, 20 Jun 2006 04:16:46 +0000 (04:16 +0000)
committerAndrew Lewman <andrew@torproject.org>
Tue, 20 Jun 2006 04:16:46 +0000 (04:16 +0000)
svn:r6665

contrib/osx/TorBundleInfo.plist.in
contrib/osx/package.sh

index 16cc83694eeac9674b74556c62b8848c74af0952..6708b81192663e51a95d0d2f68f4e0e212185a50 100644 (file)
        <string>@VERSION@</string>
        <key>IFPkgFlagComponentDirectory</key>
        <string>../.contained_packages</string>
+       <key>IFRequirementDicts</key>
+       <array>
+               <dict>
+                       <key>SpecType</key>
+                       <string>plist</string>
+                       <key>SpecArgument</key>
+                       <string>/System/Library/CoreServices/SystemVersion.plist</string>
+                       <key>SpecProperty</key>
+                       <string>ProductVersion</string>
+                       <key>TestOperator</key>
+                       <string>=</string>
+                       <key>TestObject</key>
+                       <string>OSVER</string>
+               </dict>
+       </array>
        <key>IFPkgFlagPackageList</key>
        <array>
                <dict>
index 989c8f320ede18cfa1206b4403d4026b7ae990f1..4715c7350dd9020c12b00b2b97ddf44df625db8c 100644 (file)
@@ -93,10 +93,10 @@ EOF
 DOC=$BUILD_DIR/tor_resources/documents
 mkdir $DOC
 mkdir $DOC/howto
-cp doc/website/stylesheet.css doc/website/tor-doc-osx.html.* $DOC/howto
-cp doc/website/tor-doc-server.html.* $DOC/howto
-cp doc/website/tor-hidden-service.html.* $DOC/howto
-cp doc/website/tor-switchproxy.html.* $DOC/howto
+#cp doc/website/stylesheet.css doc/website/tor-doc-osx.html.* $DOC/howto
+#cp doc/website/tor-doc-server.html.* $DOC/howto
+#cp doc/website/tor-hidden-service.html.* $DOC/howto
+#cp doc/website/tor-switchproxy.html.* $DOC/howto
 #mkdir $DOC/img
 #cp doc/img/screenshot-osx* $DOC/img
 cp AUTHORS $DOC/AUTHORS.txt
@@ -149,7 +149,7 @@ mkdir -p "$MPKG/Contents/Resources"
 echo -n "pmkrpkg1" > "$MPKG/Contents/PkgInfo"
 cp contrib/osx/ReadMe.rtf "$MPKG/Contents/Resources"
 #cp contrib/osx/License.rtf "$MPKG/Contents/Resources"
-cp contrib/osx/TorBundleInfo.plist "$MPKG/Contents/Info.plist"
+sed -E -e "s/OSVER/$OSVER/" contrib/osx/TorBundleInfo.plist > "$MPKG/Contents/Info.plist"
 cp contrib/osx/TorBundleWelcome.rtf "$MPKG/Contents/Resources/Welcome.rtf"
 cp contrib/osx/TorBundleDesc.plist "$MPKG/Contents/Resources/Description.plist"
 cp contrib/osx/tor_logo.gif "$MPKG/Contents/Resources/background.gif"