error('Prefix %s exists, and may interfere with the staged build. Please remove and try again.' % self.prefix)
self.calculate_updateid()
+
+ self.mono_package.custom_version_str = self.FULL_VERSION
trace(self.package_info('MDK'))
self.dont_optimize = ['pixman']
def run_pkgbuild(self, working_dir, package_type):
print 'Running pkgbuild & productbuild...',
info = self.package_info(package_type)
- output = os.path.join(self.resource_path, info["filename"])
+ output = os.path.join(self.directory, info["filename"])
identifier = "com.xamarin.mono-" + info["type"] + ".pkg"
resources_dir = os.path.join(working_dir, "resources")
distribution_xml = os.path.join(resources_dir, "distribution.xml")
working_dir, "PKGROOT", self.prefix[1:], "updateinfo")
with open(updateinfo, "w") as updateinfo:
updateinfo.write(guid + ' ' + self.updateid + "\n")
+ version_file = os.path.join(
+ working_dir, "PKGROOT", self.prefix[1:], "VERSION")
+ with open(version_file, "w") as version_file:
+ version_file.write(self.FULL_VERSION + "\n")
def package_info(self, pkg_type):
arch = self.bockbuild.cmd_options.arch