Portable and lightweight cross-platform desktop application development framework
OTHER License
Bot releases are visible (Hide)
Published by shalithasuranga over 3 years ago
Milestone v2.2.0 was closed with 3 issues.
--path=<path>
and --mode=<mode>
Get started: https://neutralino.js.org/docs
Published by shalithasuranga over 3 years ago
A patch version to replace c++ filesystem API with platform-specific code.
Get started: https://neutralino.js.org/docs
Published by shalithasuranga over 3 years ago
The v2.1.0 milestone was closed with 1 issue.
Get started: https://neutralino.js.org/docs
Published by shalithasuranga over 3 years ago
Implementation of v2 spec on Linux, Windows, and macOS.
Get started: https://neutralino.js.org/docs
Published by shalithasuranga over 3 years ago
Milestone v1.9.0 was closed with 8 issues.
Highlights
Now developers can have native message boxes in their Neutralinojs applications via the Neutralino.os.showMessageBox(Object options)
method. The options
object should contain the following properties.
string title
: Title of the message box.string content
: Message box's content.string type
: Type of the message box. Accepted values are INFO
, WARN
, ERROR
, and QUESTION
.Neutralinojs server will include the boolean yesClicked
property into the response only for the question-type message boxes.
Example:
const options = {title: "Hello", content: "This is an example", type: "INFO"};
Neutralino.os.showMessageBox(options, function() { }, function() { });
Please notice that the macOS version of Neutralino is not having the most features. We will try to bring it to the same level soon.
Published by shalithasuranga over 3 years ago
Milestone v1.8.0 was closed with 5 issues.
Highlights
res.neu
archive.--load-dir-res
pre-defined command line argumentres.neu
When you release your application with the neu release
command, all application resources will be bundled into the res. neu
file. Therefore, now your final application bundle has platform-specific binaries and one resource file. If you need to load resources from the app
directory, you can provide the --load-dir-res
command-line argument.
Please notice that the macOS version of Neutralino is not having the most features. We will try to bring it to the same level soon.
Published by shalithasuranga almost 4 years ago
Milestone v1.7.0 was closed with 7 issues.
Highlights
neu listen
command.Now you can access an array of command-line arguments of the binary via NL_ARGS
. --debug-mode
is an in-built option for every Neutralinojs application. For now, it enables live reloading for developers.
Now Neutralino.os.dialogOpen(options)
will accept an object as the parameter. See the following example.
Neutralino.os.dialogOpen({title: "My dialog", isDirectoryMode:true});
The neu listen
command will enable the live reload feature for developers. When the application is launched via either neu listen
command or --debug-mode
option, a modification on the app
directory will automatically reload your application. Make sure your port 8080
is free before trying this feature.
Please notice that the macOS version of Neutralino is not having the most features. We will try to bring it to the same level soon.
Published by shalithasuranga almost 4 years ago
Milestone v1.6.0 was closed with 5 issues.
Highlights
window.iconfile
property as an optional property.Each operating system has an option to display notifications. Neutralino.os.showNotification(properties, s, e)
will show a notification on the current operating system.
properties
accepts a JSON object with the options for displaying a notification.
{
"summary": "Title of the message",
"body": "Content of the message"
}
s
and e
are usual callbacks for a generic Neutralinojs API function.
window.maximize: <boolean>
in settings.json
If this option has true
, the main window will be maximized at the startup of the application. Otherwise, it will use the given height and width. The default value is false
.
Example:
{
"appname": "myapp",
"appport": "5006",
"mode": "window",
"url": "/",
"window": {
"title": "My app",
"width": "1000",
"height": "700",
"maximize": true
}
}
Please notice that the macOS version of Neutralino is not having the most features. We will try to bring it to the same level soon.
Published by shalithasuranga over 4 years ago
Milestone v1.5.0 was closed with 10 issues.
window.iconfile
feature was added to macOsNeutralino.filesystem.readFile
for handling non-existent files..mp3
file support was added to all platforms.url: <path>
in settings.json
url
setting value can be either /
or a custom URL. This will be the entry point of Neutralino application. If /
is provided, index.html
will be served otherwise custom URL content will be served. Default value is /
.
Example:
{
"appname": "myapp",
"appport": "5006",
"mode": "window",
"url": "/",
"window": {
"title": "My app",
"width": "1000",
"height": "700",
"iconfile": "neutralino.png"
}
}
Published by shalithasuranga over 4 years ago
Milestone v1.4.0 was closed with 11 issues.
window.title
option added. Older setting was used as a shared identifier for url path and title whereas now appname
is kind of app id (won't support spaces). Thus, window.title
refers to the Native window title which supports spaces etc.
More native window properties/configuration added.
window.alwaysontop [bool]
on all platforms
If true
window will appear always on top.
window.borderless [bool]
on all platforms
If true title bar will be hidden and allows developer to make their own title bar using CSS.
window.iconfile [string]
on Windows and Linux
Sets an image/icon for Native window and it will appear on the task bar of the operating system. Transparent .png
is recommended.
NL_CWD
global variable was added to all platforms. it has the current working directory.
Binary file support was added to all platforms. Eg: .png
like images will be served by the Neutralino file server.
Quick build script was added to the macos as well. (bash build.sh macos
to build and copy all the things to dist
)
Example settings.json
structure for this version
{
"appname" : "myapp",
"appport" : "5006",
"mode" : "window",
"window" : {
"title": "My app",
"width" : "1000",
"height" : "700",
"fullscreen" : false,
"alwaysontop": true,
"borderless": false,
"iconfile": "neutralino.png"
}
}
Published by shalithasuranga almost 5 years ago
Neutralino.debug.log()
for all platformsNeutralino.app.exit()
for all platformsEg:-
{
"appname" : "myapp",
"appport" : "5006",
"mode" : "window",
"window" : {
"width" : "1000",
"height" : "700",
"fullscreen" : true
}
}
Milestone v1.3.0
Published by shalithasuranga about 5 years ago
Published by shalithasuranga over 5 years ago
Neutralino.os.dialogOpen
and Neutralino.os.dialogSave
were addedNeutralino.filesystem.readDirectory
moduleSee Milestone #2
Published by shalithasuranga almost 6 years ago
This is a stable release of Neutralinojs
NL_VERSION
global variable addedwindow
- Runs on a native windowbrowser
- Debug using a web browsercloud
- Runs as a server in backgroundbrowser
modeneutralino.exe
was updated with an icon and publisher details (can be modified using a resource editing tool)Published by shalithasuranga about 6 years ago
Announcing Window mode - See wiki
desktop-window
mode will render njs app in a native window.{
"appname" : "myapp",
"appport" : "8080",
"mode" : "desktop-window",
"desktopwindow" : {
"width" : "1000",
"height" : "700"
}
}
desktop
, desktop-window
and cloud
Published by shalithasuranga about 6 years ago
NL_MODE
global constant - see docs
settings.json
- see docs
{
"globals": {
"AP" : "Njs",
"FOO" : "Bar"
}
}
Fixes #22 #46 #51 #61 #76 #77 #78
Thanks @99xt for openhack
Published by shalithasuranga about 6 years ago
Published by shalithasuranga about 6 years ago
Desktop mode
{
"appname" : "myapp",
"appport" : "8080",
"mode" : "desktop"
}
Cloud mode
{
"appname" : "myapp",
"appport" : "8080",
"mode" : "cloud",
"cloud" : {
"blacklist" : ["os.runCommand"]
}
}
Published by shalithasuranga about 6 years ago
Json based storage
Store
Neutralino.storage.putData({bucket : 'test', content : { item : 10 } },
() => {
console.log('saved to storage/test.json');
},
() => {
console.log('error');
}
);
Neutralino.storage.getData('test',
(content) => {
console.log(content);
},
() => {
console.log('error');
}
);
Published by shalithasuranga over 6 years ago