Reputation: 2071
I've got a packaged .ipa package as a basis for this task. This I'd like to select and then run the Automator service to do the work for me.
These are the steps the service needs to to:
Pretty big task and I'm not sure if that can be accomplished with Automator. Since I've never worked with it, I'm pretty much stuck already at point 3.
I can do all these steps manually, but I'd really have this automated.
As I said, steps 1 and 2 are done using "Rename Finder Items" and "Open Finder Items". Input value is the selected file in Finder. If necessary, this can be split into two parts or so if one service isn't going to be able to do this.
Any help would be highly appreciated!
Upvotes: 0
Views: 434
Reputation: 27623
You might just use a shell script like this:
for f; do
temp=/tmp/$(uuidgen)
mkdir $temp
cd $temp
unzip "$f"
cp /path/to/file Payload/*.app
codesign -s /path/to/certificate Payload/*.app
rm "$f"
zip -r "$f" Payload
rm -r $temp
done
Upvotes: 1