Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Packaging a 3rd party plugin as #machine specific for 3.3

    Scheduled Pinned Locked Moved
    Plugins for DWC and DSF
    2
    3
    280
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • raymondstoneundefined
      raymondstone
      last edited by

      I'm a bit stuck here.

      I can run a plugin (CNC probing) in dev mode easily but when I build the project to get the files for the package they install fine but will not run since while machine specific they are trying to start as built in plugins.

      So I removed the 'dev' entries from plugins/index.js which is fine, but they when I build the UI the new plugin is not picked up and built as part of it so no files to put into the plugin package.

      Could someone help with whatever file it is that I am missing that would allow a machine specific plugin to be built while not treating it as a built in one?

      1 Reply Last reply Reply Quote 0
      • raymondstoneundefined
        raymondstone
        last edited by

        With the lack of replies on this post here are some findings that do not seem to be well documented at the moment

        1 If saving to machine settings you MUST use a real board or it will not work properly
        2 If you use a real board to install the dev plugins you MUST uninstall them afterwards before switing to the real UI
        3 you replace your dev entries in index.js with one in manifest.js (at the end) like this

        export default [
        new PluginManifest({
        id: 'CNCProbe',
        name: 'CNCProbe',
        author: 'CNCProbe',
        version: '0.6.20',
        loadDwcResources: () => import(
        /* webpackChunkName: "CNCProbe" */
        './CNCProbe/index.js'
        )
        }),
        ]

        4 when you have your plugin files they go in a folder dwc/js/
        5 The names in the plugin.json are case sensitive

        1 Reply Last reply Reply Quote 0
        • Phaedruxundefined
          Phaedrux Moderator
          last edited by

          @chrishamm will have to take a look at your question when he gets a chance.

          Z-Bot CoreXY Build | Thingiverse Profile

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA