Skip to content

Commit

Permalink
Customise deeplink scheme (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhamp authored Sep 8, 2024
1 parent 87c8fa2 commit 8ca1a68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions resources/js/electron-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -120,8 +121,6 @@ if (isBuilding) {

}

const deepLinkProtocol = 'nativephp';

module.exports = {
appId: appId,
productName: appName,
Expand Down
1 change: 1 addition & 0 deletions src/Commands/BuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()),

Check failure on line 84 in src/Commands/BuildCommand.php

View workflow job for this annotation

GitHub Actions / phpstan

Call to an undefined static method Native\Electron\Facades\Updater::builderOptions().
'NATIVEPHP_DEEPLINK_SCHEME' => config('nativephp.deeplink_scheme'),
],
Updater::environmentVariables(),

Check failure on line 87 in src/Commands/BuildCommand.php

View workflow job for this annotation

GitHub Actions / phpstan

Call to an undefined static method Native\Electron\Facades\Updater::environmentVariables().
);
Expand Down

0 comments on commit 8ca1a68

Please sign in to comment.