Change manifest data via UXP_

Is it possible to update the manifest.json file via uxp from the uxp plugin itself? I have a workflow to manage my updates without the need to make users re-install the plugin each time, but I want to change the manifest file so they can see the “new” version when the open the uxp plugin, is it possible to do it?

I’m trying to do it but seems that the fs.getPluginFolder() is read-only and I cannot run file.write(data, {overwrite: true}) in there.

Is there a workaround? I know for security reasons it is meant to be this way.

Thanks!

Manifest basically defines your plugin and it wouldn’t make sense to allow it to be changed by the plugin itself. Imagine user installs your plugin with some permissions and then out of nowhere there are completely different ones. I would definitely report such plugin as phishing or something similar :thinking: