Added a -c (--copyfile) option with argument src:dst which copies file src

into dst in the bundle. The Python API already had this functionality
This commit is contained in:
Jack Jansen 2003-02-24 16:27:08 +00:00
parent b671c0c418
commit 00cbf07ca7
2 changed files with 12 additions and 3 deletions

View file

@ -301,7 +301,10 @@ def process_common_macho(template, progress, code, rsrcname, destname, is_update
if rsrcname:
builder.resources.append(rsrcname)
for o in others:
builder.resources.append(o)
if type(o) == str:
builder.resources.append(o)
else:
builder.files.append(o)
if plistname:
import plistlib
builder.plist = plistlib.Plist.fromFile(plistname)