build

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const JAR_MAIN_CLASS = "io.customrealms.MainPlugin"

Variables

This section is empty.

Functions

func WriteJarFile

func WriteJarFile(
	writer io.Writer,
	templateJarData []byte,
	pluginSourceCode io.Reader,
	pluginYml *PluginYml,
) error

Types

type BuildAction

type BuildAction struct {
	ProjectDir       string
	JarTemplate      *JarTemplate
	MinecraftVersion string
	OutputFile       string
}

func (*BuildAction) Run

func (a *BuildAction) Run(ctx context.Context) error

type JarTemplate

type JarTemplate struct {
	OperatingSystem  string
	MinecraftVersion string
}

func (*JarTemplate) Download

func (jt *JarTemplate) Download(writer io.Writer) error

type PackageJSON

type PackageJSON struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type PluginYml

type PluginYml struct {
	Name       string
	ApiVersion string
	Version    string
	Main       string
}

func (*PluginYml) String

func (y *PluginYml) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL