Go to Katenary V3

This is the next-gen of Katenary
This commit is contained in:
2023-12-06 15:24:02 +01:00
parent c37bde487b
commit 475a025d9e
132 changed files with 6410 additions and 4621 deletions

View File

@@ -1,3 +1,4 @@
/* Update package is used to check if a new version of katenary is available.*/
package update
import (
@@ -76,6 +77,13 @@ func CheckLatestVersion() (string, []Asset, error) {
// DownloadLatestVersion will download the latest version of katenary.
func DownloadLatestVersion(assets []Asset) error {
defer func() {
if r := recover(); r != nil {
os.Rename(exe+".old", exe)
}
}()
// Download the latest version
fmt.Println("Downloading the latest version...")