Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.

Adding OneVersion Support

Jay Reardon edited this page Jun 12, 2015 · 1 revision

Adding OneVersion support to your add-on is very simple. Just follow these simple steps:

  1. Add code to you add-on which tracks a major, minor, and patch level version numbers.

      local Major, Minor, Patch, Suffix = 1, 0, 0, 0
      local YOURADDON_CURRENT_VERSION = string.format("%d.%d.%d", Major, Minor, Patch)
  2. In the code that loads your add-on, fire the generic OneVersion_ReportAddonInfo event, like so:

      Event_FireGenericEvent("OneVersion_ReportAddonInfo", "YourAddonName", Major, Minor, Patch)

Typically this event is fired at the end of the OnDocLoaded or OnInterfaceMenuListHasLoaded events.

OneVersion also supports reporting with version suffixes (i.e. 1.0.0a) and libraries. Check out Using Version Suffixes for more information reporting version suffixes and Reporting Library Versions for advanced information.

That's it! Your add-on now supports OneVersion. If you do decide to add support for OneVersion, please send me a PM so I can add you to the growing list of supported add-ons. A link back to OneVersion from your own add-on would be appreciated too!

Clone this wiki locally