build

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 15 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 JarAction added in v0.5.5

type JarAction struct {
	Project          *project.Project
	JarTemplate      JarTemplate
	MinecraftVersion minecraft.Version
	BundleFile       string
	OutputFile       string
}

func (*JarAction) Run added in v0.5.5

func (a *JarAction) Run(ctx context.Context) 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