GitHub package.json - SignatureBeef/Terraria-s-Dedicated-Server-Mod GitHub Wiki

GitHub Automatic Update package.json

If your plugin resides in a GitHub repository you can use their release system and have TDSM automatically update from a ZIP file. This ZIP must contain a package.json in order for TDSM to know where to place the files.

This JSON file contains the following properties:

Instructions
  • Array of instructions
PluginsToLoad
  • Array of plugin paths

The Instruction structure is as follows:

DirectorySeperator
  • A non required string, by default ''
  • This is used to separate relative paths in the file names
PackageFileName
  • The path of the file within the ZIP
DestinationFileName
  • The target path relative to the TDSM exe

Package.json example

{
	Instructions: [
		{ PackageFileName: "Plugins\\tdsm.core.dll" },
		{ PackageFileName: "Plugins\\tdsm.core.pdb" }
	],
	PluginsToLoad: [
		"Plugins\\tdsm.core.dll"
	]
}