[MM-42538] Submit nightly builds to TestFlight for macOS (#2023)
* 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>
This commit is contained in:
@@ -27,6 +27,7 @@ function getAppFileName(context) {
|
||||
case 'win32':
|
||||
return 'Mattermost.exe';
|
||||
case 'darwin':
|
||||
case 'mas':
|
||||
return 'Mattermost.app';
|
||||
case 'linux':
|
||||
return context.packager.executableName;
|
||||
|
@@ -9,6 +9,7 @@ const config = require('../electron-builder.json');
|
||||
|
||||
exports.default = async function notarizing(context) {
|
||||
const {electronPlatformName, appOutDir} = context;
|
||||
|
||||
if (electronPlatformName !== 'darwin' || process.platform !== 'darwin') {
|
||||
return;
|
||||
}
|
||||
|
18
scripts/patch_mas_version.sh
Executable file
18
scripts/patch_mas_version.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/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
|
Reference in New Issue
Block a user