pack

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deploy added in v0.9.2

func Deploy(path string, version string, outputDirectory string, excludes string, apiProxyAddr string) error

Deploy 远程发布

func Install

func Install(path string, version string, outputDirectory string, excludes string) error

Install 本地安装

func Package

func Package(path string, version string, outputDirectory string, excludes string) error

Package 打包

Types

type PackageInfo added in v0.9.2

type PackageInfo struct {
	InfoFilePath    string
	ModFilePath     string
	ZipFilePath     string
	ZipHashFilePath string

	SourceDir string // 源文件目录
	TargetDir string // 打包输出目录
	Excludes  string // 排除目录,多个目录使用逗号分割

	CacheInfoFilePath    string
	CacheModFilePath     string
	CacheZipFilePath     string
	CacheZipHashFilePath string

	ModObj  *modfile.File // module对象信息
	ModName string        // module信息
	Version string        // 版本号

	APIProxyAddr string // 私服上传地址
}

PackageInfo 包信息

func NewPackageInfo added in v0.9.2

func NewPackageInfo() *PackageInfo

NewPackageInfo 创建包信息对象

Jump to

Keyboard shortcuts

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