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 (
|
|
|
|
cefKey = "cef"
|
|
|
|
energyKey = "energy"
|
|
|
|
download_version_config_url = "https://energy.yanghy.cn/autoconfig/edv.json"
|
|
|
|
download_extract_url = "https://energy.yanghy.cn/autoconfig/extract.json"
|
|
|
|
frameworkCache = "EnergyFrameworkDownloadCache"
|
2023-07-21 12:24:08 +08:00
|
|
|
ENERGY_HOME_KEY = "ENERGY_HOME"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
isWindows = runtime.GOOS == "windows" //support
|
|
|
|
isLinux = runtime.GOOS == "linux" //support
|
|
|
|
isDarwin = runtime.GOOS == "darwin" //support
|
2022-11-18 12:56:27 +08:00
|
|
|
)
|