Comments (7)
+1 for this. Sucks that we can specify it for 2/3 platforms.
from nw-builder.
+1
from nw-builder.
+1
from nw-builder.
There aren't many maintainers on this project. I personally haven't a clue about this topic. Pull-requests are more than welcome 😄
from nw-builder.
@adam-lynch I would like to create a PR but unfortunately don't have time right now to get to know your code, as I'm also not as good in JavaScript yet. However, all you need to do is, to create a .desktop
file for Linux builds (I think this is comparable to the plist for OS X?) which needs to be placed in the root of the resulting build folder. With the .desktop
file, the resulting applications will also be treated by all Linux distros as applications, perhaps more than they do right now.
The .desktop file has a structure like this:
[Desktop Entry]
Type=Application # Indicates the type
Version=1.0 # The version of the desktop entry specification to which this file complies
Name=nw.jsApp # The name of the application
Comment=Some nw.js app I created # A comment which can/will be used as a tooltip
Exec=myApp # The executable of the application.
Icon=someIcon # The name of the icon that will be used to display this entry
Terminal=false # Describes whether this application needs to be run in a terminal or not
Categories=Education;Languages;nwjs; # Describes the categories in which this entry should be shown
You could introduce a new universal icon
property for the API with that, I would prefer linuxIcon
though as most Distros seem to support png
and svg
for their logo.
Thanks for creating this module, helps a lot. I hope you consider putting in this functionality; ask me when you need something.
from nw-builder.
+1
from nw-builder.
Resolved by #661
from nw-builder.
Related Issues (20)
- How should I specify the downloadUrl? HOT 5
- Packaging nwjs apps not working in Windows: [ERR_FS_CP_DIR_TO_NON_DIR] error HOT 12
- User-passed-in options in options.app are not respected HOT 2
- Hardcoded path to .exe doesn't work for rcedit HOT 2
- srcDir files are copied to incorrectly nested folder inside outDir HOT 6
- Window10 build error: Path is a directory: cp returned EISDIR HOT 5
- The files in package.nw folder with the latest version is incorrect. HOT 4
- Confusing debug message shown if `srcDir/package.json` doesn't include `nwbuild` property
- Cache never expires HOT 3
- Not handling missing version in `manifest.json` HOT 1
- Copying of files does not work HOT 4
- Windows builds fail with "resolve is not defined" HOT 1
- Error: package.json not found in srcDir file glob patterns. HOT 5
- File globbing is broken HOT 1
- Add Typescript support HOT 19
- FFMPEG: Connection Refused HOT 2
- Managed manifest
- Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/my-path/nw-app/node_modules/nw-builder/get/decompress.js' HOT 3
- Specify log level
- Glob Issue: cp EINVAL src and dest is same HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nw-builder.