Learn about the tools available to developers for managing your add-on
addons
table, your custom work will often have other steps or things that need to be done to ensure it’s setup properly. Nova provides several points for add-on authors to hook in to and setup their add-on correctly.
addons
table in the database for tracking the add-on. Instead of trying to hook into the database events, Nova provides a way to build all of the necessary logic and steps that you may need to ensure your add-on is working as intended.
To create an install script for your add-on, you can define an install()
method in the Addon.php
file at the root of your add-on. If that method exists, it will be called when a game master uses QuickInstall to install your add-on.
From inside the install()
method, you can do whatever work you need to do in order to install and setup your add-on. Most often, this will include running database migrations to ensure the database is in the correct state, but there may be other things you need to do in addition to that.
update()
method in the Addon.php
file at the root of your add-on.
From inside the update()
method, you can do whatever work you need to do in order to update your add-on to the latest version. Most often, this will include running database migrations to ensure the database is in the correct state, but there may be other things you need to do in addition to that.
uninstall()
method in the Addon.php
file at the root of your add-on.
From inside the uninstall()
method, you can do whatever work you need to do in order to remove your add-on from the site. Most often, this will include rolling back database migrations to ensure the database is in the correct state, but there may be other things you need to do in addition to that.
id
should be the unique identifier that the Nova Add-on Exchange assigns to your add-on. Additionally, you can choose to download a QuickInstall file from the admin panel with all of the information filled in for you.
id
should be the owner and repository that you want to use.
On the Nova side, we will pull the name of the repository and the release tag name to populate the information used for checking for new versions.
When you are ready to release a new version, all you need to do is publish a new release on the repository and Nova will see that new version and notify any users who have the add-on installed.