Added beta update support.

Started work on further appimage support
This commit is contained in:
Caleb
2018-06-04 17:34:15 -05:00
parent 3111705cae
commit be64aa083f
5 changed files with 127 additions and 17 deletions
+10 -1
View File
@@ -10,7 +10,7 @@ import (
)
const (
version = "2.1.2.1"
version = "2.1.4.0"
)
var (
@@ -22,6 +22,7 @@ var (
comEnbld bool
wineAvail bool
portableHide bool
betaUpdate bool
versionNewest = true
paDirs = true
)
@@ -79,6 +80,10 @@ func savePrefs() {
if err != nil {
return
}
err = enc.Encode(betaUpdate)
if err != nil {
return
}
}
func loadPrefs() {
@@ -103,6 +108,10 @@ func loadPrefs() {
if err != nil {
return
}
err = dec.Decode(&betaUpdate)
if err != nil {
return
}
}
func contains(arr []string, str string) bool {