Skip to content
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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

simonhamp
Copy link
Member

@simonhamp simonhamp commented Sep 7, 2024

@simonhamp simonhamp changed the title Feature/build with obfuscated bundle Build with obfuscated bundles Sep 7, 2024
gwleuverink added a commit to gwleuverink/nativephp-electron that referenced this pull request Jan 7, 2025
gwleuverink added a commit to gwleuverink/nativephp-electron that referenced this pull request Jan 7, 2025
gwleuverink added a commit to gwleuverink/nativephp-electron that referenced this pull request Jan 7, 2025
Comment on lines 5 to 7
use function Laravel\Prompts\intro;
use function Laravel\Prompts\note;

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)) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

existsSync is not imported

Comment on lines +116 to +121
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'), {})

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants