feat: initial commit for G-Launcher based on Firefly with Horoyoi enhancements
This commit is contained in:
commit
a99470a69f
155 files changed
+19061
No files matched your search
@@ -0,0 +1,39 @@
|
||||
package constant
|
||||
|
||||
const ProxyGitUrl = "https://git.kain.io.vn/api/v1/repos/Firefly-Shelter/FireflyGo_Proxy/releases"
|
||||
const ServerGitUrl = "https://git.kain.io.vn/api/v1/repos/Firefly-Shelter/FireflyGo_Local_Archive/releases"
|
||||
const LauncherGitUrl = "https://git.kain.io.vn/api/v1/repos/Firefly-Shelter/Firefly_Launcher/releases"
|
||||
const ServerStorageUrl = "./server"
|
||||
const ProxyStorageUrl = "./proxy"
|
||||
const ServerZipFile = "prebuild_win_x86.zip"
|
||||
const ProxyFile = "firefly-go-proxy.exe"
|
||||
const LauncherFile = "g-launcher.exe"
|
||||
const TempUrl = "./temp"
|
||||
|
||||
const 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)
|
||||
}
|
||||
Reference in new issue
Block a user