lonnc / golang-nw Goto Github PK
View Code? Open in Web Editor NEWCall a golang web application from node-webkit to get a native looking application.
License: The Unlicense
Call a golang web application from node-webkit to get a native looking application.
License: The Unlicense
Hi,
Very nice projet I will use for my tool named "idok" (made in go). I was making this with node-webkit but I will be hable to use your project.
Just a question, using the builder I saw that node-webkit that golang-nw dowloads is 0.9. But node-webkit evolved to 0.10 a long time ago... Any reason to not use the latest versions ?
Hello,
I'm new to golang and this project. I've compiled with go 1.3 and the given build script in this repository. Starting the example app takes about 10 seconds to show the initial frame and another 5 seconds to show "Hello golang". Memory usage is about twice as high compared to other nw applications.
Did I do something wrong, is there a bug or is golang-nw in just slow?
Regards,
Dennis
On linux, I can read env "PWD" to get program's directory. But on windows, there is no "PWD" env, is there some thing just like node-webkit's process.execPath?
Looks like this can be fixed by improvements to the client script.js
though I'm not super sure. Also I think there might be something broken on the later versions of nwjs.
Here's some of the related issues:
Hi, I'm just trying to build a sample app but golang-nw fails trying to download:
https://s3.amazonaws.com/node-webkit/v0.8.4/node-webkit-v0.8.4-win-x64.zip
AFAIK, there is no node-webkit for win-x64 can I still build with x64 Go apps?
x-MacBook-Pro:example apple$ golang-nw-pkg --app=$GOBIN/example --name="My Application" --bin="myapp" --toolbar=false
Building: myapp.nw
Downloading: http://dl.node-webkit.org/v0.11.6/node-webkit-v0.11.6-osx-x64.zip
Packaging: myapp
x-MacBook-Pro:example apple$ ls
main.go myapp.nw node-webkit-v0.11.6-osx-x64.zip
i get a .nw for my output.
I guess i have to pass it into the nw-builder now ??
also the download path for the newer stuff is different in that the file names have changed.
For example the latest stable build is here:
http://dl.nwjs.io/v0.16.1/
If you compare it to the current one your setup for:
http://dl.nwjs.io/v0.11.3/
The files names are different.
v0.10.0 of node-webkit changed icudt.dll to icudtl.dat
A simple change in pkg/pkg.go fixed this.
Due to the removal of libudev0
and its associated library libudev.so.0
, node-webkit isn’t able to run on newer distributions such as:
Ubuntu 13.04+
Fedora 18+
Arch
Gentoo
Derivatives of the above
…and possibly others. Until node-webkit is updated to depend on the currently shipped version libudev.so.1
, the following solutions should provide a stopgap measure for packaging your applications.
For more details see:
https://github.com/rogerwang/node-webkit/wiki/The-solution-of-lacking-libudev.so.0
OSX
go 1.6.3
I made a simple example app the same as yours
i installed it
i try then to run it and it blows up with:
panic: missing environment variable 'GOLANG-NW'
Is there a need for a special env variable to be present ?
Hi,
How can i change window width and height?
thanks
Hi @lonnc ,
I'm trying to compile the example app but when I run the compiled I always get
missing environment variable 'GOLANG-NW'
this is probably my mistake , because I haven't seen a similiar issue here.
steps to reproduce:
are those steps ok ?
regards
unable to change the version of the webkit to use. now-webkit has been renamed to NW.js
Download link for the latest version is http://dl.nwjs.io/v0.12.0/nwjs-v0.12.0-win-ia32.zip
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.