2022-12-07 15:50:59 +08:00
|
|
|
//----------------------------------------
|
|
|
|
//
|
|
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
|
|
//
|
2023-02-19 23:21:47 +08:00
|
|
|
// Licensed under Apache License Version 2.0, January 2004
|
|
|
|
//
|
|
|
|
// https://www.apache.org/licenses/LICENSE-2.0
|
2022-12-07 15:50:59 +08:00
|
|
|
//
|
|
|
|
//----------------------------------------
|
|
|
|
|
2023-01-29 14:24:11 +08:00
|
|
|
package internal
|
2022-11-18 12:56:27 +08:00
|
|
|
|
2023-07-21 12:24:08 +08:00
|
|
|
import "runtime"
|
|
|
|
|
2022-11-18 12:56:27 +08:00
|
|
|
const (
|
2023-08-21 10:59:59 +08:00
|
|
|
domain = "https://energy.yanghy.cn"
|
2023-08-17 12:14:59 +08:00
|
|
|
DownloadVersionURL = domain + "/api/cmd/edv"
|
|
|
|
DownloadInstallURL = domain + "/api/cmd/install"
|
|
|
|
DownloadExtractURL = domain + "/api/cmd/extract"
|
|
|
|
CheckUpgradeURL = domain + "/api/cmd/upgrade"
|
|
|
|
CheckCreateURL = domain + "/api/cmd/create"
|
|
|
|
)
|
|
|
|
const (
|
|
|
|
cefKey = "cef"
|
2023-08-20 15:19:48 +08:00
|
|
|
liblclKey = "liblcl"
|
2023-08-17 12:14:59 +08:00
|
|
|
frameworkCache = "EnergyFrameworkDownloadCache"
|
|
|
|
EnergyHomeKey = "ENERGY_HOME"
|
2023-07-21 12:24:08 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
isWindows = runtime.GOOS == "windows" //support
|
|
|
|
isLinux = runtime.GOOS == "linux" //support
|
|
|
|
isDarwin = runtime.GOOS == "darwin" //support
|
2022-11-18 12:56:27 +08:00
|
|
|
)
|
2023-08-20 15:19:48 +08:00
|
|
|
|
|
|
|
const (
|
|
|
|
CefEmpty = ""
|
|
|
|
CefWin7 = "windows7" // CEF 109.1.18
|
|
|
|
Cef109 = "cef-109" // CEF 109.1.18
|
|
|
|
CefGtk2 = "gtk2" // CEF 106.1.1
|
|
|
|
Cef106 = "cef-106" // CEF 106.1.1
|
|
|
|
CefFlash = "flash" // CEF 87.1.14
|
|
|
|
Cef87 = "cef-87" // CEF 87.1.14
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
Windows64 = "Windows64"
|
|
|
|
Windows32 = "Windows32"
|
|
|
|
WindowsARM64 = "WindowsARM64"
|
2023-08-21 10:30:34 +08:00
|
|
|
MacOSX64 = "MacOSX64"
|
2023-08-20 15:19:48 +08:00
|
|
|
MacOSARM64 = "MacOSARM64"
|
|
|
|
Linux64 = "Linux64"
|
|
|
|
Linux64GTK2 = "Linux64GTK2"
|
|
|
|
Linux64GTK3 = "Linux64GTK3"
|
|
|
|
LinuxARM64 = "LinuxARM64"
|
|
|
|
LinuxARM64GTK2 = "LinuxARM64GTK2"
|
|
|
|
LinuxARM64GTK3 = "LinuxARM64GTK3"
|
|
|
|
)
|