From 8ca1a683fd56e52b036a7fd2e2943341b1f70990 Mon Sep 17 00:00:00 2001 From: Simon Hamp Date: Sun, 8 Sep 2024 19:16:45 +0100 Subject: [PATCH] Customise deeplink scheme (#105) --- resources/js/electron-builder.js | 3 +-- src/Commands/BuildCommand.php | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/electron-builder.js b/resources/js/electron-builder.js index 72d174a0..7c19f3ec 100644 --- a/resources/js/electron-builder.js +++ b/resources/js/electron-builder.js @@ -10,6 +10,7 @@ const fileName = process.env.NATIVEPHP_APP_FILENAME; const appVersion = process.env.NATIVEPHP_APP_VERSION; const appUrl = process.env.APP_URL; const appAuthor = process.env.NATIVEPHP_APP_AUTHOR; +const deepLinkProtocol = process.env.NATIVEPHP_DEEPLINK_SCHEME; // Since we do not copy the php executable here, we only need these for building const isWindows = process.argv.includes('--win'); @@ -120,8 +121,6 @@ if (isBuilding) { } -const deepLinkProtocol = 'nativephp'; - module.exports = { appId: appId, productName: appName, diff --git a/src/Commands/BuildCommand.php b/src/Commands/BuildCommand.php index 4adce24a..eae86531 100644 --- a/src/Commands/BuildCommand.php +++ b/src/Commands/BuildCommand.php @@ -82,6 +82,7 @@ protected function getEnvironmentVariables(): array 'NATIVEPHP_APP_FILENAME' => Str::slug(config('app.name')), 'NATIVEPHP_APP_AUTHOR' => config('nativephp.author'), 'NATIVEPHP_UPDATER_CONFIG' => json_encode(Updater::builderOptions()), + 'NATIVEPHP_DEEPLINK_SCHEME' => config('nativephp.deeplink_scheme'), ], Updater::environmentVariables(), );