[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

@@ -91,6 +91,7 @@ import {
updateSpellCheckerLocales,
wasUpdated,
initCookieManager,
migrateMacAppStore,
} from './utils';
export const mainProtocol = protocols?.[0]?.schemes?.[0];
@@ -118,6 +119,13 @@ export async function initialize() {
return;
}
// eslint-disable-next-line no-undef
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
if (__IS_MAC_APP_STORE__) {
migrateMacAppStore();
}
// initialization that should run once the app is ready
initializeInterCommunicationEventListeners();
initializeAfterAppReady();
@@ -198,10 +206,15 @@ function initializeBeforeAppReady() {
refreshTrayImages(Config.trayIconTheme);
// If there is already an instance, quit this one
const gotTheLock = app.requestSingleInstanceLock();
if (!gotTheLock) {
app.exit();
global.willAppQuit = true;
// eslint-disable-next-line no-undef
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
if (!__IS_MAC_APP_STORE__) {
const gotTheLock = app.requestSingleInstanceLock();
if (!gotTheLock) {
app.exit();
global.willAppQuit = true;
}
}
AllowProtocolDialog.init();