From 45eead196cace3647b9d4fe338ec1474a32fb690 Mon Sep 17 00:00:00 2001 From: Shalitha Suranga Date: Thu, 19 Sep 2024 17:45:23 +0530 Subject: [PATCH] Update CHANGELOG.md --- CHANGELOG.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c089e8f..c22eac7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,47 @@ rename `Unreleased` topic with the new version tag. Finally, create a new `Unrel ## Unreleased +### Host projects support +Developers can launch Neutralinojs from any programming language using child process APIs (i.e., `subprocess` in Python) and communicate with the framework process using the extension API. The new `hostProject` configuration object extends the official CLI to help developers easily create, run, and build these host projects. For example, the following host project configuration instructs the CLI to run a Node.js host project: + +```json +"hostProject": { + "projectPath": "/node-src", + "buildPath": "/node-src/dist/", + "initCommand": "npm install", + "devCommand": "npm start", + "buildCommand": "npm run build" +} +``` + +Community projects implement bindings and templates to create host projects using Node.js, Python, Go, etc. For example, the [`node-neutralino`](https://www.npmjs.com/package/node-neutralino) NPM package lets you launch Neutralinojs via Node.js environments and execute native APIs via the `NeutralinoApp` class: + +```js +import NeutralinoApp from 'node-neutralino'; + +const app = new NeutralinoApp({ + url: '/', + windowOptions: { + enableInspector: false, + } +}); + +app.init(); +app.window.setTitle('Node.js'); +``` + +### Executable icon and metadata on Windows +Now, the `neu build` command automatically updates the executable file icon and metadata based on the following configuration options: + +- `author`: gets written into executable's metadata. +- `description`: gets written into executable's metadata. +- `copyright`: gets written into executable's metadata. Defaults to current date + generic "all rights reserved". +- `applicationName`: gets written into executable's metadata. Defaults to `cli.binaryName`. +- `applicationIcon`: a relative path to an icon in `.png` format. Defaults to `modes.window.icon`. If it is not set, uses Neutralinojs logo. + +### Bugfixes/improvements +Use the `zip-lib` package to handle ZIP files for better performance and simplicity in the source code. + ## v11.2.2 ### Bugfixes/improvements