diff --git a/build/notarize.js b/build/notarize.js deleted file mode 100644 index 187a919..0000000 --- a/build/notarize.js +++ /dev/null @@ -1,23 +0,0 @@ -const { notarize } = require('@electron/notarize'); - -exports.default = async function notarizing(context) { - const { electronPlatformName, appOutDir } = context; - if (electronPlatformName !== 'darwin') { - return; - } - - const appName = context.packager.appInfo.productFilename; - - if (process.env.APPLE_ID && process.env.APPLE_ID_PASS) { - return await notarize({ - appBundleId: 'com.sidequestvr.app', - appPath: `${appOutDir}/${appName}.app`, - appleId: process.env.APPLE_ID, - appleIdPassword: process.env.APPLE_ID_PASS, - teamId: process.env.APPLE_ID_TEAM, - ascProvider: process.env.APPLE_ID_TEAM - }); - } else { - console.warn('NOTICE: Did not notarize application due to missing environment variables.'); - } -}; diff --git a/desktop-app/src/app/electron.service.ts b/desktop-app/src/app/electron.service.ts index 1e7a240..54fbd61 100644 --- a/desktop-app/src/app/electron.service.ts +++ b/desktop-app/src/app/electron.service.ts @@ -121,6 +121,9 @@ export class ElectronService { } }); this.appService.electron.ipcRenderer.on('open-url', async (event, data) => { + if (data.indexOf("sidequest://app/") === 0 && data.indexOf("#") === -1) { + data = data.substring(0,16) + "#" + data.substring(16); + } if (data) { let url = data.split('#'); switch (url[0]) {