-b, --builddir=DIR the build directory; defaults to "build"
-n, --name=NAME application name
-r, --resource=FILE extra file or folder to be copied to Resources
- -f, --copyfile=SRC:DST extra file or folder to be copied into the bundle
+ -f, --file=SRC:DST extra file or folder to be copied into the bundle;
+ DST must be a path relative to the bundle root
-e, --executable=FILE the executable to be used
-m, --mainprogram=FILE the Python main program
-a, --argv add a wrapper main program to create sys.argv
builder = AppBuilder(verbosity=1)
shortopts = "b:n:r:f:e:m:c:p:lx:i:hvqa"
- longopts = ("builddir=", "name=", "resource=", "copyfile=", "executable=",
+ longopts = ("builddir=", "name=", "resource=", "file=", "executable=",
"mainprogram=", "creator=", "nib=", "plist=", "link",
"link-exec", "help", "verbose", "quiet", "argv", "standalone",
"exclude=", "include=", "package=", "strip", "iconfile=")
builder.name = arg
elif opt in ('-r', '--resource'):
builder.resources.append(arg)
- elif opt in ('-f', '--copyfile'):
+ elif opt in ('-f', '--file'):
srcdst = arg.split(':')
if len(srcdst) != 2:
- usage()
+ usage("-f or --file argument must be an absolute path and "
+ "a relative path, separated by a colon")
builder.files.append(srcdst)
elif opt in ('-e', '--executable'):
builder.executable = arg