mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 12:57:05 +00:00
This commit is contained in:
@@ -15,9 +15,10 @@ var (
|
||||
assetsURL = "https://github.com/iris-contrib/iris-control-assets/archive/master.zip"
|
||||
assetsUnzipname = "iris-control-assets"
|
||||
assetsPath = ""
|
||||
workingDir = ""
|
||||
)
|
||||
|
||||
// init just sets the assetsPath
|
||||
// init just sets the assetsPath & current workingDir
|
||||
func init() {
|
||||
homepath := ""
|
||||
if runtime.GOOS == "windows" {
|
||||
@@ -26,6 +27,8 @@ func init() {
|
||||
homepath = os.Getenv("HOME")
|
||||
}
|
||||
assetsPath = homepath + utils.PathSeparator + ".iris" + utils.PathSeparator + "iris-control-assets" + utils.PathSeparator
|
||||
|
||||
workingDir, _ = os.Getwd()
|
||||
}
|
||||
|
||||
func installAssets() {
|
||||
|
||||
Reference in New Issue
Block a user