16f043d44e
* feat(ci): CircleCI migration to Github Actions (#2516) * Deprecated trigger-desktop-nightly repo from gitlab * Migrated Nightly builds URLs from CircleCI to S3 * Full CI/CD is handled by Github Actions --------- Co-authored-by: Tasos Boulis <tboulis@hotmail.com> Co-authored-by: Mattermost Build <build@mattermost.com> * fix nightly builds (#2590) * added missing patch version . fix patch action for windows (#2592) * feat(ci): Use workflow_dispatch option for nightly builds in order to trigger them on demand when needed (#2593) * add missing yq for windows (#2594) * Allow MAS build to be repeated more easily (#2595) * fix multiline strings output (#2596) * Add MM_WIN_INSTALLERS for nightly builds (#2599) * Adding extra dependencies to the release flow (#2601) --------- Co-authored-by: Antonis Stamatiou <stamatiou.antonis@gmail.com> Co-authored-by: Tasos Boulis <tboulis@hotmail.com> Co-authored-by: Mattermost Build <build@mattermost.com>
18 lines
704 B
Bash
Executable file
18 lines
704 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
STABLE_VERSION=$(./node_modules/.bin/semver $(jq -r .version package.json) -c)
|
|
BUILD_VERSION=$(jq -r .version package.json | sed "s/$STABLE_VERSION-.*\.//g")
|
|
|
|
if [ "$BUILD_VERSION" == "" ]; then
|
|
BUILD_VERSION=$STABLE_VERSION
|
|
fi
|
|
|
|
if [ "$GITHUB_RUN_ID" != "" ]; then
|
|
BUILD_VERSION="${GITHUB_RUN_ID}${GITHUB_RUN_ATTEMPT}"
|
|
fi
|
|
|
|
temp_file="$(mktemp -t electron-builder.json)"
|
|
jq -r --arg version "$STABLE_VERSION" '.mac.bundleShortVersion = $version' electron-builder.json > "${temp_file}" && mv "${temp_file}" electron-builder.json
|
|
jq -r --arg version "$BUILD_VERSION" '.mac.bundleVersion = $version' electron-builder.json > "${temp_file}" && mv "${temp_file}" electron-builder.json |