All publish does is (possibly clean the directory and) make a list of necessary files and zip them up You need a list of necessary file types, might need a bit of thinking I suppose -
pas, pp, lfm, inc, ico, lpi, lpr, res, ....
Pretty simple script, but a bash script would not help you, that is all I could contribute.
Bonus marks if it did not not need the previous zip removed, instead, date stamp the zip file. Make sure the date stamp is sort-able.
Davo