Author Topic: Plugin files stucture myPlugin.cbplugin  (Read 8160 times)

Offline omlk

  • Multiple posting newcomer
  • *
  • Posts: 110
Plugin files stucture myPlugin.cbplugin
« 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
  | - ...
« Last Edit: November 15, 2023, 03:21:28 pm by omlk »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2803
Re: Plugin files stucture myPlugin.cbplugin
« Reply #1 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
« Last Edit: November 15, 2023, 07:11:14 pm by Pecan »

Offline Wkerry

  • Multiple posting newcomer
  • *
  • Posts: 54
Re: Plugin files stucture myPlugin.cbplugin
« Reply #2 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?

Offline omlk

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: Plugin files stucture myPlugin.cbplugin
« Reply #3 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


 
 * codeblocks_plugin_wiki.PNG (62.95 kB, 1271x721 )
 
« Last Edit: November 16, 2023, 03:49:51 pm by omlk »

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1628
Re: Plugin files stucture myPlugin.cbplugin
« Reply #4 on: November 16, 2023, 03:51:19 pm »

Offline omlk

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: Plugin files stucture myPlugin.cbplugin
« Reply #5 on: November 16, 2023, 03:57:47 pm »
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?

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1628
Re: Plugin files stucture myPlugin.cbplugin
« Reply #6 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