I'm simplifying making a .deb file with Automator. I currently have a shell script that does some simple actions -
- Ask the user for text input
- Do some directory parsing
- Execute a command with the text input as a variable
- run the dpkg-deb program and output to the desktop
That's all well and good, but .deb files must have a "control" text file with some fields filled out, and the file has to be in a specific path, with the
control file residing in a
DEBIAN subdirectory like so
What I would like to do, is create the control file, and drop it on the Automator workflow and have it run the script with the control file as an input parameter. I would need the script to "copy this file to
AppName/DEBIAN/ and create the
DEBIAN folder if it doesn't exist.
Where AppName == A specific line from the control file
Can anyone help?