mirror of
https://github.com/kusti8/proton-native.git
synced 2026-05-15 14:15:50 -06:00
[GH-ISSUE #283] How to package application #195
Labels
No labels
bug
documentation
enhancement
libui issue
pull-request
question
wait for libui implementation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/proton-native#195
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @actuallyabhi on GitHub (Apr 27, 2020).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/283
How to package application
Like creteing a .deb or .tar.gz file so user can install this .how to do this ?
@IngwiePhoenix commented on GitHub (May 4, 2020):
Since this depends on Node, I assume that you'd have to package this with a NodeJS executable. Luckily, Node is statically compiled - just dropping a NodeJS binary to the output of your webpack command should do.
On windows, a super basic C program where
WinMain(...)just calls and runs the NodeJS executable and passes it the entry point of the webpack output should do. On MacOS, ModifyInfo.plistand make sure the executable name matches the name of a basic shell script withinyour.app/Contents/MacOSand that said script is given the executable flag (chmod +x file). Said script may do something like this:On linux, something like the above script should do - just modify it for your app structure.
Now - this is just the basic idea of how it could be done. The output of WebPack + a NodeJS binary should do. If you intend to deploy through package managers, you can leave out the NodeJS binary and instead call for it as a dependency.
@actuallyabhi commented on GitHub (May 4, 2020):
Thanks a lot Brother You made a lot things clear :)