mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-18 10:32:53 +00:00
Jakub Sokołowski
85a3557f1e
Changes: - Adds `ci/Dockerfile` for creating `statusteam/nim-status-client-build:latest` used in builds - Adds `ci/Jenkinsfile.linux` and `ci/Jenkinsfile.macos` for respective platforms - Simplifies MacOS signing by adding `scripts/sign-macos-pkg.sh` script - Makes `Makefile` use `scripts/sign-macos-pkg.sh` to make the DMG - Makes `APPIMAGE` and `DMG` in `Makefile` modifiable by environment - Adds `--passL:"-headerpad_max_install_names"` to `NIM_PARAMS` to fix MacOS signing issues Signed-off-by: Jakub Sokołowski <jakub@status.im>
25 lines
631 B
Groovy
25 lines
631 B
Groovy
def parentOrCurrentBuild() {
|
|
def c = currentBuild.rawBuild.getCause(hudson.model.Cause$UpstreamCause)
|
|
if (c == null) { return currentBuild }
|
|
return c.getUpstreamRun()
|
|
}
|
|
|
|
def timestamp() {
|
|
/* we use parent if available to make timestmaps consistent */
|
|
def now = new Date(parentOrCurrentBuild().timeInMillis)
|
|
return now.format('yyMMdd-HHmmss', TimeZone.getTimeZone('UTC'))
|
|
}
|
|
|
|
def gitCommit() {
|
|
return env.GIT_COMMIT.take(6)
|
|
}
|
|
|
|
def pkgFilename(type, ext, arch=null) {
|
|
/* the grep removes the null arch */
|
|
return [
|
|
"StatusIm", timestamp(), gitCommit(), type, arch,
|
|
].grep().join('-') + ".${ext}"
|
|
}
|
|
|
|
return this
|