'ditto' troubles
'ditto' troubles
- Subject: 'ditto' troubles
- From: Steve Cronin <email@hidden>
- Date: Tue, 23 Feb 2010 14:11:39 -0600
Folks;
This is a Mac application.
I have a helper app that I want to transport inside of a larger app (Mother)
At the user's discretion I want to deploy the helper app
The helper app CAN be called by AppleScript.
In order to help with Mother's file size and inadvertent calling of Helper (when not yet deployed)
I want to do is compress the app inside of the mother application.
When the user asks for it I will decompress Helper and deploy into the local file system.
I have all of this working including a build step that compresses the appropriate release version of Helper
(/usr/bin/ditto -c -k --sequesterRsrc --keepParent)
At the time the user requests I initiate an NSTask and deploy:
NSTask *unzipTask=[[NSTask alloc] init];
[unzipTask setLaunchPath:@"/usr/bin/ditto"];
[unzipTask setArguments:[NSArray arrayWithObjects:@"-x",@"-k",sourcePath,targetPath,nil]];
The problem is that the deployed Helper file has the 'X' icon and displays the "application is damaged.." message.
If I take the Helper.zip file from the 'contents' and manually double click it then the decompression works fineā¦.
I'm so close and just I can't see what's stopping this deployment.
Is there a ditto flag I need to set that I'm not seeing?
Any thoughts appreciated!
Steve_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden