|
@@ -391,14 +391,20 @@ class Packager:
|
|
|
|
|
|
|
|
self.multifile = Multifile()
|
|
self.multifile = Multifile()
|
|
|
|
|
|
|
|
- if self.p3dApplication:
|
|
|
|
|
- self.multifile.setHeaderPrefix('#! /usr/bin/env panda3d\n')
|
|
|
|
|
-
|
|
|
|
|
# Write the multifile to a temporary filename until we
|
|
# Write the multifile to a temporary filename until we
|
|
|
# know enough to determine the output filename.
|
|
# know enough to determine the output filename.
|
|
|
multifileFilename = Filename.temporary('', self.packageName + '.', '.mf')
|
|
multifileFilename = Filename.temporary('', self.packageName + '.', '.mf')
|
|
|
self.multifile.openReadWrite(multifileFilename)
|
|
self.multifile.openReadWrite(multifileFilename)
|
|
|
|
|
|
|
|
|
|
+ if self.p3dApplication:
|
|
|
|
|
+ # p3d files should be tagged to make them executable.
|
|
|
|
|
+ self.multifile.setHeaderPrefix('#! /usr/bin/env panda3d\n')
|
|
|
|
|
+ else:
|
|
|
|
|
+ # Package multifiles might be patched, and therefore
|
|
|
|
|
+ # don't want to record an internal timestamp, which
|
|
|
|
|
+ # would make patching less efficient.
|
|
|
|
|
+ self.multifile.setRecordTimestamp(False)
|
|
|
|
|
+
|
|
|
self.extracts = []
|
|
self.extracts = []
|
|
|
self.components = []
|
|
self.components = []
|
|
|
|
|
|