Skip to content

Add copyright information to build configuration #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions resources/js/electron-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const isBuilding = process.env.NATIVEPHP_BUILDING;
const appAuthor = process.env.NATIVEPHP_APP_AUTHOR;
const fileName = process.env.NATIVEPHP_APP_FILENAME;
const appVersion = process.env.NATIVEPHP_APP_VERSION;
const appCopyright = process.env.NATIVEPHP_APP_COPYRIGHT;
const deepLinkProtocol = process.env.NATIVEPHP_DEEPLINK_SCHEME;

// Since we do not copy the php executable here, we only need these for building
Expand Down Expand Up @@ -46,6 +47,7 @@ if (isBuilding) {
export default {
appId: appId,
productName: appName,
copyright: appCopyright,
directories: {
buildResources: 'build',
output: isBuilding ? join(process.env.APP_PATH, 'dist') : undefined,
Expand Down
1 change: 1 addition & 0 deletions src/Commands/BuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ protected function getEnvironmentVariables(): array
'NATIVEPHP_APP_NAME' => config('app.name'),
'NATIVEPHP_APP_ID' => config('nativephp.app_id'),
'NATIVEPHP_APP_VERSION' => config('nativephp.version'),
'NATIVEPHP_APP_COPYRIGHT' => config('nativephp.copyright'),
'NATIVEPHP_APP_FILENAME' => Str::slug(config('app.name')),
'NATIVEPHP_APP_AUTHOR' => config('nativephp.author'),
'NATIVEPHP_UPDATER_CONFIG' => json_encode(Updater::builderOptions()),
Expand Down
Loading