This commit is contained in:
Tylous 2023-05-01 21:20:30 -04:00
parent b1d3b6e09d
commit 51033c6647
5 changed files with 3 additions and 9 deletions

2
.gitignore vendored
View File

@ -18,5 +18,3 @@ dist/
.goreleaser.yaml
.gitignore
dist/
dist/

BIN
Freeze Executable file

Binary file not shown.

View File

@ -22,9 +22,9 @@ func Version() {
Version := runtime.Version()
Version = strings.Replace(Version, "go1.", "", -1)
VerNumb, _ := strconv.ParseFloat(Version, 64)
if VerNumb >= 18.1 {
if VerNumb >= 19.1 {
} else {
log.Fatal("Error: The version of Go is to old, please update to version 1.18.1 or later")
log.Fatal("Error: The version of Go is to old, please update to version 1.19.1 or later")
}
}
@ -38,7 +38,7 @@ func CheckGarble() {
if _, err := os.Stat(cwd + "/.lib/garble"); err == nil {
} else {
fmt.Println("[!] Missing Garble... Downloading it now")
cmd = exec.Command(bin, "GOBIN="+cwd+"/.lib/", "go", "install", "mvdan.cc/garble@v0.7.2")
cmd = exec.Command(bin, "GOBIN="+cwd+"/.lib/", "go", "install", "mvdan.cc/garble@latest")
var out bytes.Buffer
var stderr bytes.Buffer
cmd.Stdout = &out

2
go.mod
View File

@ -1,5 +1,3 @@
module Freeze
go 1.19
require golang.org/x/sys v0.0.0-20220926163933-8cfa568d3c25 // indirect

2
go.sum
View File

@ -1,2 +0,0 @@
golang.org/x/sys v0.0.0-20220926163933-8cfa568d3c25 h1:nwzwVf0l2Y/lkov/+IYgMMbFyI+QypZDds9RxlSmsFQ=
golang.org/x/sys v0.0.0-20220926163933-8cfa568d3c25/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=