Skip to content

Commit 8ca1a68

Browse files
authored
Customise deeplink scheme (#105)
1 parent 87c8fa2 commit 8ca1a68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/js/electron-builder.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const fileName = process.env.NATIVEPHP_APP_FILENAME;
1010
const appVersion = process.env.NATIVEPHP_APP_VERSION;
1111
const appUrl = process.env.APP_URL;
1212
const appAuthor = process.env.NATIVEPHP_APP_AUTHOR;
13+
const deepLinkProtocol = process.env.NATIVEPHP_DEEPLINK_SCHEME;
1314

1415
// Since we do not copy the php executable here, we only need these for building
1516
const isWindows = process.argv.includes('--win');
@@ -120,8 +121,6 @@ if (isBuilding) {
120121

121122
}
122123

123-
const deepLinkProtocol = 'nativephp';
124-
125124
module.exports = {
126125
appId: appId,
127126
productName: appName,

src/Commands/BuildCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ protected function getEnvironmentVariables(): array
8282
'NATIVEPHP_APP_FILENAME' => Str::slug(config('app.name')),
8383
'NATIVEPHP_APP_AUTHOR' => config('nativephp.author'),
8484
'NATIVEPHP_UPDATER_CONFIG' => json_encode(Updater::builderOptions()),
85+
'NATIVEPHP_DEEPLINK_SCHEME' => config('nativephp.deeplink_scheme'),
8586
],
8687
Updater::environmentVariables(),
8788
);

0 commit comments

Comments
 (0)