Trying to force install plugin
-
Hi all,
Im currently trying to install the motion plugin on a 6HC + SBC. The current motion version is 3.5.1, where as RRF is 3.5.3 (and 3.6.0-B2 on a few machines)
I thought it would be possible to unzip the plugin, edit the plugin.json file and recompress the files however I am getting this error after compressing and trying to upload
This is without editing any of the files, just un-zip and then re-zip
Does anyone know of what type of compression method is required?
-
Question for @chrishamm
What type of zip compression are you trying to use?
-
@Phaedrux
That's the weird bit. I tried pretty much every compression method that 7zip offers. Only tried .zip architecture though, not any other format like .7z.I couldn't find any documentation for what type of compression DWC requires, so I am going in a bit blind.
-
Do you have plugin.json in the root?
-
https://github.com/Duet3D/DuetWebControl/wiki/Third-Party-Plugins
It looks like the zip is created during the build process for the plugin. So unzipping, modifying, and re-zipping it doesn't seem possible. You may need to modify the source and rebuild.
-
Do you have plugin.json in the root?
Yup still there
It looks like the zip is created during the build process for the plugin. So unzipping, modifying, and re-zipping it doesn't seem possible. You may need to modify the source and rebuild.
Ahh, that would explain it
-
The motion plugin simply invokes the motion software without any of the UI dependencies of other types of plugins. In this circumstance, it does not have to be rebuilt i.e. you should be able to unzip, edit plugin.json and rezip.
A couple of things to watch (just in case):
- Your editor should be set to use linux line endings (LF)
- The only line in plugin.json that you need to change should be this:
"sbcDsfVersion": "3.5",
e.g. to"sbcDsfVersion": ">3.5",
Whenever I do this sort of thing, I just use windows (11) compress to zip.
Try this zip (remove .txt from filename)My system is in being rebuilt at the moment so I cannot test.
-
@stuartofmt
Thanks for this, I will test it tomorrow when im back in the factory