-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Build with obfuscated bundles #106
base: main
Are you sure you want to change the base?
Conversation
Node doesn't like the name to contain spaces, so we need to get rid of them
# Conflicts: # resources/js/electron-plugin/src/server/php.ts
Co-authored-by: Simon Hamp <[email protected]>
Co-authored-by: Simon Hamp <[email protected]>
Co-authored-by: Simon Hamp <[email protected]>
src/Traits/SetsAppName.php
Outdated
use function Laravel\Prompts\intro; | ||
use function Laravel\Prompts\note; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are not used
removeSync(tmpDir); | ||
let bundle = join(process.env.APP_PATH, 'build', '__nativephp_app_bundle'); | ||
|
||
if (existsSync(bundle)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
existsSync
is not imported
writeJsonSync(join(appPath, 'storage', 'framework', 'cache', '_native.json'), {}) | ||
writeJsonSync(join(appPath, 'storage', 'framework', 'sessions', '_native.json'), {}) | ||
writeJsonSync(join(appPath, 'storage', 'framework', 'testing', '_native.json'), {}) | ||
writeJsonSync(join(appPath, 'storage', 'framework', 'views', '_native.json'), {}) | ||
writeJsonSync(join(appPath, 'storage', 'app', 'public', '_native.json'), {}) | ||
writeJsonSync(join(appPath, 'storage', 'logs', '_native.json'), {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to use outputJsonSync
to create any missing directory in path or add additionall call ensureDirSync
, but I prefer outputJsonSync
The other half of NativePHP/electron-plugin#36
Fixes NativePHP/laravel#343
Fixes NativePHP/laravel#388