-
-
Notifications
You must be signed in to change notification settings - Fork 206
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
Running php artisan nativephp:publish
results in packages that are slightly larger than they should be because both MyApp.app/Contents/Resources/app.asar.unpacked
and MyApp.app/Contents/Resources/app.asar
contain the resources directory.
Additionally it would be nice to be able to hook into the build process to perform further project specific tweaks to improve package size, i.e. removing unused locales.
How to reproduce the bug
- Run
php artisan native:publish
- Check the contents of
MyApp.app/Contents/Resources/app.asar.unpacked
and you'll see theresources
directory that contains the app icons and the Laravel project folder in its entirety. - Check the contents of
MyApp.app/Contents/Resources/app.asar
(you can use theasar
utility for this,npm install -g asar, and then
asar extract dist/mac-arm64/MyApp.app/Contents/Resources/app.asar dist/mac-arm64/MyApp.app/Contents/Resources/asar-unpacked-manual` and you'll see that the resources directory is also present here.
Package Version
1.0.0
PHP Version
8.2.0
Laravel Version
10.15.0
Which operating systems does with happen with?
macOS
Notes
No response
bqhuyy
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working