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']
self.verify_binaries()
working = self.setup_working_dir()
- uninstall_script = os.path.join(working, "uninstallMono.sh")
# make the MDK
self.apply_blacklist(working, 'mdk_blacklist.sh')
self.make_updateinfo(working, self.MDK_GUID)
mdk_pkg = self.run_pkgbuild(working, "MDK")
title(mdk_pkg)
- # self.make_dmg(mdk_dmg, title, mdk_pkg, uninstall_script)
shutil.rmtree(working)
# creates and returns the path to a working directory containing:
# PKGROOT/ - this root will be bundled into the .pkg and extracted at /
- # uninstallMono.sh - copied onto the DMG
# Info{_sdk}.plist - used by packagemaker to make the installer
# resources/ - other resources used by packagemaker for the installer
def setup_working_dir(self):
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