vfox 2026.5.9

Interface to vfox plugins
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
local util = require("util")

--- Returns pre-installed information, such as version number, download address, etc.
--- @param ctx {version: string}  (User-input version)
--- @return table Version information
function PLUGIN:PreInstall(ctx)
	local version = ctx.version

	return {
		version = version,
		url = util.getDownloadUrl(version),
	}
end