build

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: MIT Imports: 14 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 {
	Project          *project.Project
	JarTemplate      JarTemplate
	MinecraftVersion minecraft.Version
	OutputFile       string
}

func (*BuildAction) Run

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

type FileJarTemplate added in v0.4.7

type FileJarTemplate struct {
	Filename string
}

func (*FileJarTemplate) Jar added in v0.4.7

func (t *FileJarTemplate) Jar() (io.ReadCloser, error)

type GitHubJarTemplate added in v0.4.7

type GitHubJarTemplate struct {
	OperatingSystem  string
	MinecraftVersion minecraft.Version
}

func (*GitHubJarTemplate) Jar added in v0.4.7

func (t *GitHubJarTemplate) Jar() (io.ReadCloser, error)

type JarTemplate

type JarTemplate interface {
	Jar() (io.ReadCloser, error)
}

type PluginYml

type PluginYml struct {
	MinecraftVersion minecraft.Version
	PackageJSON      *project.PackageJSON
}

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