Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I find it ? #2

Open
Shine6Z opened this issue May 12, 2020 · 3 comments
Open

How can I find it ? #2

Shine6Z opened this issue May 12, 2020 · 3 comments

Comments

@Shine6Z
Copy link

Shine6Z commented May 12, 2020

https://github.com/Ultimaker/Uranium/blob/master/create_plugin.py

@Ghostkeeper
Copy link
Contributor

Sorry, that documentation is outdated. To create a plug-in package to publish, upload it as a "plug-in package" to contribute.ultimaker.com.

@Shine6Z
Copy link
Author

Shine6Z commented May 22, 2020

But I'd like to see a complete example of the plugin code.
Can I find it here?

@Ghostkeeper
Copy link
Contributor

Ghostkeeper commented May 25, 2020

No, as it's not the way to create plug-ins any more we're not supporting that.

I secretly ported it to CMake though to be able to release my plug-ins on Github as well. For an example, I recommend you take a look at the Settings Guide releases, which are .curapackage files: https://github.com/Ghostkeeper/SettingsGuide/releases
You can also upload them to contribute.ultimaker.com and then before submitting it downloading a .curapackage for a certain SDK version again. You can then inspect the file.

You're probably best off just mimicking the structure of those .curapackage files. They are just .zip files with a bit of metadata and then the actual plug-in under files/plugins.

My CMake script that generates that file is here:

https://github.com/Ghostkeeper/SettingsGuide/blob/8c55f0ea7f32c7e21bfe4bbe87d0f296cb1f9c24/CMakeLists.txt#L128-L161

Essentially that just takes a fixed _rels and [Content_Types].xml file, generates the correct package.json with the version number and such, and then copies in all of the files that need to be packaged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants