Unzipping Mac executable files with revZip - revisited
Terry Judd
tsj at unimelb.edu.au
Wed Jul 27 23:46:22 EDT 2011
About 3 weeks ago I posted about an issue I had with certain Mac files (those that are recognised by the MacOS as 'unix executable files') losing their executable status when they are unpacked using revZip. A couple of solutions were offered and I'm currently using 'chmod +x [filepath]' to 'reset' these files.
However, I still have a problem in that I'm creating a cross-platform installer/updater that will be writing out (from a zip archive) both Win and Mac apps/externals/etc at the same time - our software is delivered on a USB memory stick and includes cross-platform versions of a number of educational apps.
If the user installs/updates on a Mac then the chmod solution works perfectly. If however they are installing/updating under Windows then there doesn't seem to be any way for me to 'reset' any Mac executable files that have been updated so that they will function correctly the next time the user uses the software on a Mac (most of our users have PCs but most of our computer labs have Macs). Or is there a way that I'm unaware of (a Win equivalent of chmod)?
The only idea I have at the moment is to temporarily store a list of files that need to be reset when the user does their install/update on a PC and then use this (and clear it afterwards) to do some housekeeping the next time they start up the software on a Mac. Any other (better) suggestions out there?
Regards,
Terry...
More information about the use-livecode
mailing list