manager

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GitCDN = "https://github.com/nulastudio/HostFXRPatcher"

GitCDN git仓库镜像(默认为github)

View Source
var GitTree = "master"

GitTree git仓库分支(默认为master),支持任意有效分支名、任意长度commit hash(最高40位,为了保证commit hash唯一性,请尽可能提供更长的commit hash,否则将可能无法被识别)

Logger 日志记录器

Functions

func CheckRunConfigJSON

func CheckRunConfigJSON()

CheckRunConfigJSON 检查本地runtimeConfig,自动下载最新(强制性)

func CopyArtifactTo

func CopyArtifactTo(version string, rid string, des string) bool

CopyArtifactTo 复制补丁到指定文件夹

func DelCDN added in v1.2.1

func DelCDN() bool

DelCDN 删除默认CDN

func DeleteArtifact

func DeleteArtifact(version string, rid string) bool

DeleteArtifact 删除指定版本、RID的补丁

func DownloadArtifact

func DownloadArtifact(version string, rid string) bool

DownloadArtifact 下载指定版本、RID的补丁

func DownloadFile

func DownloadFile(url string, des string) bool

DownloadFile 下载文件

func EnsureLocalPath added in v1.2.3

func EnsureLocalPath() bool

EnsureLocalPath 确保本地目录存在

func FindCompatibleRID

func FindCompatibleRID(rid string) string

FindCompatibleRID 匹配线上所支持的RID

func FindDepsJSON

func FindDepsJSON(dir string) []string

FindDepsJSON 寻找指定目录下的*deps.json

func FindRuntimeConfigJSON

func FindRuntimeConfigJSON(dir string) []string

FindRuntimeConfigJSON 寻找指定目录下的*runtimeconfig*.json

func FixDeps

func FixDeps(deps string) ([]string, string, string)

FixDeps 修改deps.json

func FixRuntimeConfig

func FixRuntimeConfig(runtimeConfigFile string, libsDir string) bool

FixRuntimeConfig 添加additionalProbingPaths

func GetCDN added in v1.2.1

func GetCDN() string

GetCDN 获取默认CDN

func GetHostFXRNameByRID

func GetHostFXRNameByRID(rid string) string

GetHostFXRNameByRID 根据RID取hostfxr文件名

func GetLocalArtifactsVersion

func GetLocalArtifactsVersion(version string, rid string) string

GetLocalArtifactsVersion 获取本地补丁版本

func GetOnlineArtifactsVersion

func GetOnlineArtifactsVersion(version string, rid string) string

GetOnlineArtifactsVersion 获取线上补丁版本

func IsLocalArtifactExists

func IsLocalArtifactExists(version string, rid string) bool

IsLocalArtifactExists 判断本地是否存在某个版本的补丁

func SetCDN added in v1.2.1

func SetCDN(cdn string) bool

SetCDN 设置默认CDN

func UpdateArtifact

func UpdateArtifact(version string, rid string) bool

UpdateArtifact 更新指定版本、RID的补丁

func WriteLocalArtifactsVersion

func WriteLocalArtifactsVersion(fxrVersion string, rid string, version string) bool

WriteLocalArtifactsVersion 更新本地补丁版本

Types

This section is empty.

Jump to

Keyboard shortcuts

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