Changeset View
Changeset View
Standalone View
Standalone View
bin/Packager/PackagerBase.py
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Line(s) | 74 | if not manifestLocation: | |||
---|---|---|---|---|---|
75 | manifestLocation = destDir | 75 | manifestLocation = destDir | ||
76 | manifestLocation = os.path.join(manifestLocation, "manifest.json") | 76 | manifestLocation = os.path.join(manifestLocation, "manifest.json") | ||
77 | archiveFile = os.path.join(destDir, archiveName) | 77 | archiveFile = os.path.join(destDir, archiveName) | ||
78 | 78 | | |||
79 | name = archiveName if not os.path.isabs(archiveName) else os.path.relpath(archiveName, destDir) | 79 | name = archiveName if not os.path.isabs(archiveName) else os.path.relpath(archiveName, destDir) | ||
80 | 80 | | |||
81 | manifest = CraftManifest.load(manifestLocation, urls=manifestUrls) | 81 | manifest = CraftManifest.load(manifestLocation, urls=manifestUrls) | ||
82 | entry = manifest.get(str(self)) | 82 | entry = manifest.get(str(self)) | ||
83 | entry.addFile(name, CraftHash.digestFile(archiveFile, CraftHash.HashAlgorithm.SHA256), version=self.version) | 83 | entry.addFile(name, CraftHash.digestFile(archiveFile, CraftHash.HashAlgorithm.SHA256), version=self.version, config=self.subinfo.options.dynamic) | ||
84 | 84 | | |||
85 | manifest.dump(manifestLocation) | 85 | manifest.dump(manifestLocation) | ||
86 | No newline at end of file | 86 | No newline at end of file |