You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See my fork. My primary usage was to bundle another executable, rather than bundling the current executable and then immediately launching the bundle. This is because I want to distribute a rust program to mac users in the form of a .app bundle. The current API requires the end user to run an executable (instead of .app).
My fork above moves the src_exe variable in self_bundle() and build() to the function's parameters. The code that immediately launches the bundle is now from a method of FruitApp instead of Trampoline.
I think letting the user to pass in src_exe will make this library more flexible - it's up to them if they want to bundle the current executable or another executable. Please let me know your thoughts on this.
The text was updated successfully, but these errors were encountered:
See my fork. My primary usage was to bundle another executable, rather than bundling the current executable and then immediately launching the bundle. This is because I want to distribute a rust program to mac users in the form of a
.app
bundle. The current API requires the end user to run an executable (instead of.app
).My fork above moves the
src_exe
variable inself_bundle()
andbuild()
to the function's parameters. The code that immediately launches the bundle is now from a method ofFruitApp
instead ofTrampoline
.The code for the bundler program would be like:
When the bundler program is run, it will bundle the
myapp
executable into a.app
, which can be double clicked to launch.The main app needs to be modified like this so that the resource path can be accessed etc:
I think letting the user to pass in
src_exe
will make this library more flexible - it's up to them if they want to bundle the current executable or another executable. Please let me know your thoughts on this.The text was updated successfully, but these errors were encountered: