Closed nicklaw5 closed 8 years ago
I noticed file modes were reset in util.ZipDirectory
, and now in nwjs-builder
1.11.3, nw
should be executable after extracting on Linux.
For .desktop
files, they are designed to be used with Desktop Environments like GNOME and KDE. As it's customizable and environment-related (there might be further requests like "adding an option to modify .desktop
's category" or "placing .desktop
at specified path"), I don't want to add this as a feature of nwjs-builder
itself.
As I have no idea where you will extract the files, a postinstall script executed by package managers like npm
, dpkg
and rpm
should be a better solution. nwjs-builder
can't really do much about this.
ok thanks, ill look into those package managers.
For both the 32 and 64 Linux builds, there is no
.desktop
file that is necessary to launch the application.You can read the specs for a .desktop file here
Below is the example I have used in my application
Filename:
launcher.desktop
I found the
Exec
command which works great, but not sure how to populate theIcon
path since it needs to be the absolute path to the project. However, once the files are extracted we wont know where this path is. Perhaps you can come up with a solution.Also note that the
.desktop
file needs to have execution permissions, but I don't this can be done when packing the zip. At least from from my own testing I wasn't able save the file permission after zipping the directory.