Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: omlk on November 15, 2023, 03:18:09 pm

Title: Plugin files stucture myPlugin.cbplugin
Post by: omlk on November 15, 2023, 03:18:09 pm
Please tell me which files and in which structure they should be created so that a plugin with the *.cbplugin extension can be installed through the code::blocks.
Example:

Code
myPlugin_v1.0.0.cbplugin
  | - manifest.xml
  | - my_plugin.dll
  | - myPlugin_v1.0.0.zip
  | - ...
Title: Re: Plugin files stucture myPlugin.cbplugin
Post by: Pecan on November 15, 2023, 06:55:11 pm
Please tell me which files and in which structure they should be created so that a plugin with the *.cbplugin extension can be installed through the code::blocks.
Example:

Code
myPlugin_v1.0.0.cbplugin
  | - manifest.xml
  | - my_plugin.dll
  | - myPlugin_v1.0.0.zip
  | - ...

The *.cbplugin needs a .zip file containing the manifest.
Along with the .zip file, *.cbplugin needs the .dll file.
So it looks like:
*.cbPlugin
|- myPlugin.zip
     |- myManifest.xml
|- myPlugin.dll

.cbplugin is actually a .zip file renamed to cbplugin.
You can also include resources within the internal myPlugin.zip file along with the .xml manifest file.
Like images that can be loaded by the .dll
Title: Re: Plugin files stucture myPlugin.cbplugin
Post by: Wkerry on November 16, 2023, 09:56:12 am
It's there info in the wiki?
Did omil look in the wiki or is omil lazy?
Title: Re: Plugin files stucture myPlugin.cbplugin
Post by: omlk on November 16, 2023, 03:42:32 pm
It's there info in the wiki?
Did omil look in the wiki or is omil lazy?
Of course, I accidentally came across the wiki, but I don't know about you, but everything is so confusing and there is a lot of text, that I think it could all be shown on one screenshot with arrows, what comes from where and where.  ;) 
 Creating a simple "Hello World" plugin (https://wiki.codeblocks.org/index.php/Creating_a_simple_%22Hello_World%22_plugin)


 (https://forums.codeblocks.org/index.php?action=dlattach;topic=25590.0;attach=11779;image) (https://forums.codeblocks.org/index.php?action=dlattach;topic=25590.0;attach=11778;image)
 (https://forums.codeblocks.org/Themes/default/images/icons/clip.gif) codeblocks_plugin_wiki.PNG (https://forums.codeblocks.org/index.php?action=dlattach;topic=25590.0;attach=11778) (62.95 kB, 1271x721 )
 
Title: Re: Plugin files stucture myPlugin.cbplugin
Post by: Miguel Gimenez on November 16, 2023, 03:51:19 pm
Managing Plug-in Resources (https://wiki.codeblocks.org/index.php/Managing_Plug-in_Resources)
Title: Re: Plugin files stucture myPlugin.cbplugin
Post by: omlk on November 16, 2023, 03:57:47 pm
Managing Plug-in Resources (https://wiki.codeblocks.org/index.php/Managing_Plug-in_Resources)
Which version of the widgets would you recommend 2.8.x or 3.3.x?
 And is all this information on the wiki up to date?
Title: Re: Plugin files stucture myPlugin.cbplugin
Post by: Miguel Gimenez on November 16, 2023, 04:10:23 pm
Quote
Which version of the widgets would you recommend 2.8.x or 3.3.x?
3.2.3. 2.8.x is not supported anymore.
Quote
Is all this information on the wiki up to date?
Mostly