Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2017-11-21 23:24:42 +0300
committerGitHub <noreply@github.com>2017-11-21 23:24:42 +0300
commitd3c7faa7501c3f59f8a8cbe4f0b52eaf661c7137 (patch)
tree285e81b94c8a3578fbb02b3a7ca5f908a5f77c28 /packaging
parentef0f3a53f3d696ff8a760f840bf42ae34b1b5af4 (diff)
[ci] Add Jenkins pipeline script for building OSX and Windows packages (#6065)
* [ci] Add Jenkins pipeline script for building OSX and Windows packages This replaces the current Jenkins freestyle jobs. We no longer need the signing inside of the MacSDKRelease profile since we're now signing on a separate service and having the signing certificates locally is discouraged anyway. * [ci] Update embedded gtk-sharp in Windows msi to 2.12.45 This matches what we ship on www.mono-project.com
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/MacSDKRelease/profile.py58
-rwxr-xr-xpackaging/Windows/defs/gtksharp2
2 files changed, 2 insertions, 58 deletions
diff --git a/packaging/MacSDKRelease/profile.py b/packaging/MacSDKRelease/profile.py
index 2b0d99a3fde..d1e15ce747e 100755
--- a/packaging/MacSDKRelease/profile.py
+++ b/packaging/MacSDKRelease/profile.py
@@ -14,31 +14,11 @@ from bockbuild.util.util import *
class MonoXamarinPackageProfile(MonoReleaseProfile):
- description = 'The Mono Framework for MacOS (official release)'
+ description = 'The Mono Framework for macOS (official release)'
def setup (self):
MonoReleaseProfile.setup (self)
bockbuild.packages_to_build.extend(['mono-extensions'])
- if bockbuild.cmd_options.release_build:
- self.setup_codesign()
- else:
- info("'--release' option not set, will not attempt to sign package!")
-
- self.cache_host = 'http://xamarin-storage/bockbuild_cache/'
-
- def setup_codesign(self):
- self.identity = "Developer ID Installer: Xamarin Inc"
-
- output = backtick("security -v find-identity")
- if self.identity not in " ".join(output):
- error("Identity '%s' was not found. You can create an unsigned package by removing '--release' to your command line." % self.identity)
-
- password = os.getenv("CODESIGN_KEYCHAIN_PASSWORD")
- if password:
- print "Unlocking the keychain"
- run_shell("security unlock-keychain -p %s" % password)
- else:
- error("CODESIGN_KEYCHAIN_PASSWORD needs to be defined.")
def setup_release(self):
MonoReleaseProfile.setup_release(self)
@@ -50,40 +30,4 @@ class MonoXamarinPackageProfile(MonoReleaseProfile):
output = MonoReleaseProfile.run_pkgbuild(
self, working_dir, package_type)
- output_unsigned = os.path.join(os.path.dirname(
- output), os.path.basename(output).replace('.pkg', '.UNSIGNED.pkg'))
- shutil.move(output, output_unsigned)
-
- if not bockbuild.cmd_options.release_build:
- return output_unsigned
-
- productsign = "/usr/bin/productsign"
- productsign_cmd = ' '.join([productsign,
- "-s '%s'" % self.identity,
- "'%s'" % output_unsigned,
- "'%s'" % output])
- run_shell(productsign_cmd)
- os.remove(output_unsigned)
- self.verify_codesign(output)
-
- return output
-
- def verify_codesign(self, pkg):
- oldcwd = os.getcwd()
- try:
- name = os.path.basename(pkg)
- pkgdir = os.path.dirname(pkg)
- os.chdir(pkgdir)
- spctl = "/usr/sbin/spctl"
- spctl_cmd = ' '.join(
- [spctl, "-vvv", "--assess", "--type install", name, "2>&1"])
- output = backtick(spctl_cmd)
-
- if "accepted" in " ".join(output):
- warn("%s IS SIGNED" % pkg)
- else:
- error("%s IS NOT SIGNED:" % pkg)
- finally:
- os.chdir(oldcwd)
-
MonoXamarinPackageProfile() \ No newline at end of file
diff --git a/packaging/Windows/defs/gtksharp b/packaging/Windows/defs/gtksharp
index 8633d74547d..9c72725769b 100755
--- a/packaging/Windows/defs/gtksharp
+++ b/packaging/Windows/defs/gtksharp
@@ -1,6 +1,6 @@
#!/bin/bash -xe
-REPO="https://dl.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.44.msi"
+REPO="https://dl.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.45.msi"
REPODIR=$(dirname $(realpath $0))/../repos/gtksharp
error()