0a7be91576
* Initial MAS build, working on TestFlight * Migration of old configs to MAS * Ignore fastlane files * Add mac app store build to nightly build * Revert Me - For testing in PR * Don't need to install fastlane * BIG D * Fix patch updater script to allow for no yml * Nevermind, do this instead * Update xcode * Let's try a fake version that works * Revert version and rename for test flight * Use Xcode 13.0.0 * Use CircleCI build number when available * Revert testing changes * Remove notarize for MAS * Change vars to MACOS instead of IOS * Revert electron-builder to v22 * Revert package-lock.json Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
18 lines
685 B
Bash
Executable file
18 lines
685 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 [ "$CIRCLE_BUILD_NUM" != "" ]; then
|
|
BUILD_VERSION=$CIRCLE_BUILD_NUM
|
|
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 |