mirror of
https://github.com/kusti8/proton-native.git
synced 2026-05-15 22:02:24 -06:00
[GH-ISSUE #39] Bundle #22
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#22
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 @GordonCode25 on GitHub (Mar 2, 2018).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/39
I was with you until I got to your bundle section in the docs. This is the all import bit really.
"Currently, the easiest way is to simply download a node binary for your platform, copy it into your project root. Then create a shortcut/script to execute that.
Make sure you have babel transpile it, in case you use any new syntax not supported by your current version of node."
Ok downloaded node-v8.9.4-darwin-x64.tar.gz and copied to root. Do I unzip. Create what shortcut to where and then place shortcut where? Make sure you "babel transpile it", do what????
Hope you can make that clearer, I'm a react developer.
@albe-rosado commented on GitHub (Mar 2, 2018):
Hi @GordyGordy , as you know Javascript is an interpreted language that needs an engine(SpiderMonkey, V8,...) to run your script files. What he meant was that if you need something more "standalone"-ish, you can download the node binaries for your platform and make a *.sh (or *.bat in Windows?) file where you point the node binary to your project entry files ( index.js ) so could execute it like
./run.shfor example. Using babel you can bundle your app in a more compact and light files, same as you were to serve it in a website. You can also use nexe to do the packaging work for you. Hope it helps. Have a great weekend!@kusti8 commented on GitHub (Mar 3, 2018):
I've explained it more after that paragraph. That just serves to give an overview. So basically run
npm run build, then unzip it, follow the picture if on Windows or the script if on Linux/Mac and you should be done. I'll try and clear it up a bit though.@GordonCode25 commented on GitHub (Mar 3, 2018):
Thanks for getting back to me guys. Maybe I'm expecting the wrong thing. I extracted node into the root of my project and then ran build. I was expecting a .app file to be built or something, like electron. Think I must be misunderstanding this project. I'll keep watching to see how things progress.