The interactive file manager requires Javascript. Please enable it or use sftp or scp.
You may still browse the files here.
| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| Neutralinojs v5.5.0 released! source code.tar.gz | 2024-11-28 | 1.7 MB | |
| Neutralinojs v5.5.0 released! source code.zip | 2024-11-28 | 2.5 MB | |
| README.md | 2024-11-28 | 3.4 kB | |
| Totals: 3 Items | 4.2 MB | 0 | |
What's new
Client library and globals injection
Neutralinojs apps usually load globals and the client library using HTTP requests via the static server. This mechanism implements a generic way to enable the native API on all supported Neutralinojs app modes. However, this strategy prevents
enabling the Neutralinojs native API if the primary web app is loaded through another server (local or remote). Now, app developers can inject globals and
the client library script into external web services using window.injectGlobals and window.injectClientLibrary configuration options on the window mode.
These options are available as CLI options as well (--window-inject-globals and --window-inject-client-library), so developers can use these options via the window.create(url, options) function. This code injection feature currently works with HTTP URLs only (can be used with local and remote HTTP web servers).
Preload script support
The framework already lets developers set pre-defined global variables for each web page by using custom globals from the app configuration and activating the window.injectGlobals option. However, custom globals are static values, so app developers can't define dynamic values or run a custom JavaScript source using globals and window.injectGlobals features. This framework version implements the window.injectScript configuration option to inject and run custom JavaScript source file before running the primary webapp's JavaScript sources.
For example, the following setup loads an initialization script from the preload.js file:
:::json
"window": {
"injectScript": "/resources/js/preload.js"
}
Developers can use native API calls within initialization scripts if window.injectClientLibrary is set to true. This option also can be set via --window-inject-script and window.create(url, options).
Configuration
- Implement the
dataLocationconfig option to let users set data directory for framework data storage purposes, such as saving window state, storing extracted resources, etc. Ifapp(default) is used, the framework will store app data within the app directory and ifsystemis used, the framework will use a platform-specific data directory path (i.e.,/home/username/.local/share/<appId>on GNU/Linux systems) to store app data. App developers can obtain the current data directory string from theNL_DATAPATHglobal variable. - Implement the
storageLocationconfig option to let developers use system data directory for the Neutralinojs storage. If this option is 'app' (default), the framework store storage files within the app directory. Ifsystemis used, the framework will use the platform-specific standard data directory. In bothappandsystemmodes, the framework will use the.storagesub-directory for storage files.
Improvements/bugfixes
- Search and load WebKitGtk functions dynamically from the available webkit2gtk library:
libwebkit2gtk-4.0-37orlibwebkit2gtk-4.1-0. - Fix the auto-reload issue during app development.
Update the config file option cli.binaryVersion with 5.5.0 and enter neu update to fetch this version.
Get started: https://neutralino.js.org/docs
This release was auto-generated by ReleaseZri :rocket: