[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:
Devin Binnie
2022-03-28 11:06:00 -04:00
committed by GitHub
parent bc7f82fbf3
commit 0a7be91576
16 changed files with 359 additions and 12 deletions

View File

@@ -28,7 +28,7 @@ executors:
mac:
working_directory: ~/mattermost-desktop
macos:
xcode: "10.3.0"
xcode: "13.0.0"
aws:
working_directory: ~/mattermost-desktop
docker:
@@ -352,6 +352,34 @@ jobs:
paths:
- "./macos-release/"
mac_app_store_testflight:
executor: mac
steps:
- checkout
- run: mkdir -p ./build
- attach_workspace:
at: ./build
- run:
name: Update node to v16
command: brew upgrade node || true
- run:
name: Install yq
command: brew install yq
- run:
name: Installing npm dependencies
command: npm ci
- run:
name: Copy provisioning profile
command: echo $MAS_PROFILE | base64 -D > ./mas.provisionprofile
- run:
name: Patch version number for MAS
command: ./scripts/patch_mas_version.sh
- run: npm run package:mas
- run:
name: 'Upload to App Store Connect'
command: fastlane publish_test path:"$(find . -name \*.pkg -print -quit)"
store_artifacts:
executor: wine-chrome
steps:
@@ -596,6 +624,7 @@ workflows:
# release-XX.YY.ZZ
# release-XX.YY.ZZ-rc-something
- /^release-\d+(\.\d+){1,2}(-rc.*)?/
build-for-pr:
jobs:
- build-windows-pr:
@@ -620,6 +649,8 @@ workflows:
context: windows-codesign
- mac_installer:
context: codesign-certificates
- mac_app_store_testflight:
context: desktop-mac-app-store
- store_artifacts:
context: desktop_browserview
# for master/PR builds