From def7c883a27da7768ac212e4dd6cf213ddc388bd Mon Sep 17 00:00:00 2001 From: Cosmo Myzrail Gorynych aka CoMiGo Date: Fri, 2 Aug 2024 18:44:15 +1200 Subject: [PATCH] Update api/updater.md with a note about required nativeAllowList strings (#331) * Update api/updater.md with a note about required nativeAllowList strings * Update updater.md --------- Co-authored-by: Shalitha Suranga --- docs/api/updater.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/api/updater.md b/docs/api/updater.md index 1b63b2fb..76a8906e 100644 --- a/docs/api/updater.md +++ b/docs/api/updater.md @@ -9,6 +9,11 @@ third-party update services, operating system level services, or other binaries/ Learn more about extensions with [this guide](../how-to/auto-updater). +:::note +For this API to work, you should add `"filesystem.writeBinaryFile"` to the [`nativeAllowList` field](../configuration/neutralino.config.json#nativeallowlist-string) of your `neutralino.config.json` file. +::: + + ## updater.checkForUpdates(url) Checks latest updates from the given URL. The URL should return a valid Neutralinojs update manifest with `Content-Type: application/json` header. Throws `NE_UP_CUPDMER` for invalid manifests and `NE_UP_CUPDERR`