Re: Using AND and OR in package requirements
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:in-reply-to:references :mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; bh=aCFrPscaQ1t0S61UauAL3D3ESjROLTx3raJKGOWP5oE=; b=UIDQckfMHJDl5eMoX9QvZWifHlxJxthmWNA+6rU3qnkeWkIFl1YJ7PnV0TAKjXdjWr osSaqAq27Ih1jXlHww7qu/XtIq/atSBj7xmkPwqzsmNXzXPkiuTRMAaIqSGYNAVFIk0z f7e4EGs4XOfa4SeY4pGqaslleY7MLulDXBAX0= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:content-type:message-id:cc :content-transfer-encoding:from:subject:date:to:x-mailer; b=EuVQOKhWa+iSbOAfyRZ7jjGEL8JQElUJo/bT2Vk9ZhT25z0jEVsplaSRzMHJ/vu8Mi DH+uDCwj2POqxip6iKPyqmJffxkNblGscd6wUlQHaQVe4xnRV/qVtkv2PjTgcadbi1o2 a4PMRb2OpVsNAS/uJErrf2tGfY0p303vzfCbw= On Jan 21, 2010, at 9:50 PM, Adam Mercer wrote: Hi I'm creating an installer for some software that requires either Snow Leopard or Intel Leopard, but will only run on a Snow Leopard system that has a Core 2 Duo processor, (its fine on Core Duo systems running Leopard). I'm trying to work out a way that I can specify this in the requirements section of PackageMaker.app but I can't find a way to build up this requirement. Is something like this possible with PackageMaker? If so how? If not any ideas how I can achieve this another way? This is possible but you need to write a custom JavaScript function. That being said, it could look like this: Written in Packages. _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... I'm not sure a requirement based on a CPU sub family is a good idea. So I switched it to 2 cores or more. function complexRequirement() { if ((system.compareVersions(system.version.ProductVersion, '10.6')
= 0)
{ // Snow Leopard if (system.sysctl('hw.ncpu')>=2) { return true; } } else if ((system.compareVersions(system.version.ProductVersion, '10.5') >= 0) { // Leopard // Leopard can run on PowerPC so we need to exclude them if (system.sysctl('hw.cputype')==7) { if (system.sysctl('hw.ncpu')>=2) { return true; } } } return false; } This email sent to site_archiver@lists.apple.com
participants (1)
-
Iceberg-Dev