Files
G-Launcher/pkg/constant/constant.go
T

46 lines
1.5 KiB
Go

package constant
const ProxyGitUrl = "https://git.kain.io.vn/api/v1/repos/Firefly-Shelter/FireflyGo_Proxy/releases"
const ServerGitUrl = "https://gaytea.cod-algieba.ts.net/api/v1/repos/GaCySR/GaCy-GO/releases"
const LauncherGitUrl = "https://gaytea.cod-algieba.ts.net/api/v1/repos/GaCy/G-Launcher/releases"
const LauncherManifestURL = "https://gaytea.cod-algieba.ts.net/GaCy/G-Launcher/releases/download/latest/latest.json"
const LauncherDownloadURL = "https://gaytea.cod-algieba.ts.net/GaCy/G-Launcher/releases/download/latest/G-Launcher.exe"
const LauncherRepoURL = "https://gaytea.cod-algieba.ts.net/GaCy/G-Launcher.git"
const LauncherBranch = "Dev"
const LauncherBuildTempDir = "temp/updater_build"
const ServerStorageUrl = "./server"
const ProxyStorageUrl = "./proxy"
const ServerZipFile = "gacy 4.6.54.zip"
const ProxyFile = "firefly-go-proxy.exe"
const LauncherFile = "G-Launcher.exe"
const TempUrl = "./temp"
var CurrentLauncherVersion = "1.0.0"
type ToolFile string
const (
Tool7zaExe ToolFile = "bin/7za.exe"
Tool7zaDLL ToolFile = "bin/7za.dll"
Tool7zxaDLL ToolFile = "bin/7zxa.dll"
ToolHPatchzExe ToolFile = "bin/hpatchz.exe"
ToolZiftExe ToolFile = "bin/zift.exe"
)
var RequiredFiles = map[ToolFile]string{
Tool7zaExe: "assets/7za.exe",
Tool7zaDLL: "assets/7za.dll",
Tool7zxaDLL: "assets/7zxa.dll",
ToolHPatchzExe: "assets/hpatchz.exe",
ToolZiftExe: "assets/zift.exe",
}
func (t ToolFile) GetEmbedPath() string {
return RequiredFiles[t]
}
func (t ToolFile) String() string {
return string(t)
}