mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 05:04:27 +08:00
updating netclient.exe for new gui
This commit is contained in:
parent
d6c597e2ee
commit
14b1f561b1
6 changed files with 20 additions and 17 deletions
|
@ -133,6 +133,7 @@ func Uninstall() error {
|
|||
}
|
||||
}
|
||||
}
|
||||
err = nil
|
||||
// clean up OS specific stuff
|
||||
if ncutils.IsWindows() {
|
||||
daemon.CleanupWindows()
|
||||
|
@ -159,19 +160,21 @@ func LeaveNetwork(network string, force bool) error {
|
|||
if node.IsServer != "yes" {
|
||||
token, err := Authenticate(cfg)
|
||||
if err != nil {
|
||||
return fmt.Errorf("unable to authenticate %w", err)
|
||||
}
|
||||
url := "https://" + cfg.Server.API + "/api/nodes/" + cfg.Network + "/" + cfg.Node.ID
|
||||
response, err := API("", http.MethodDelete, url, token)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error deleting node on server %w", err)
|
||||
}
|
||||
if response.StatusCode == http.StatusOK {
|
||||
logger.Log(0, "deleted node", cfg.Node.Name, " on network ", cfg.Network)
|
||||
logger.Log(0, "unable to authenticate: "+err.Error())
|
||||
} else {
|
||||
bodybytes, _ := io.ReadAll(response.Body)
|
||||
defer response.Body.Close()
|
||||
return fmt.Errorf("error deleting node on server %s %s", response.Status, string(bodybytes))
|
||||
url := "https://" + cfg.Server.API + "/api/nodes/" + cfg.Network + "/" + cfg.Node.ID
|
||||
response, err := API("", http.MethodDelete, url, token)
|
||||
if err != nil {
|
||||
logger.Log(0, "error deleting node on server: "+err.Error())
|
||||
} else {
|
||||
if response.StatusCode == http.StatusOK {
|
||||
logger.Log(0, "deleted node", cfg.Node.Name, " on network ", cfg.Network)
|
||||
} else {
|
||||
bodybytes, _ := io.ReadAll(response.Body)
|
||||
defer response.Body.Close()
|
||||
logger.Log(0, fmt.Sprintf("error deleting node on server %s %s", response.Status, string(bodybytes)))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
wgClient, wgErr := wgctrl.New()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//go:generate goversioninfo -icon=windowsdata/resource/netmaker.ico -manifest=netclient.exe.manifest.xml -64=true -o=netclient.syso
|
||||
//go:generate goversioninfo -icon=windowsdata/resource/netclient.ico -manifest=netclient.exe.manifest.xml -64=true -o=netclient.syso
|
||||
// -build gui
|
||||
|
||||
package main
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity
|
||||
version="0.13.1.0"
|
||||
version="0.14.0.0"
|
||||
processorArchitecture="*"
|
||||
name="netclient.exe"
|
||||
type="win32"
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
"FixedFileInfo": {
|
||||
"FileVersion": {
|
||||
"Major": 0,
|
||||
"Minor": 9,
|
||||
"Minor": 14,
|
||||
"Patch": 0,
|
||||
"Build": 0
|
||||
},
|
||||
"ProductVersion": {
|
||||
"Major": 0,
|
||||
"Minor": 9,
|
||||
"Minor": 14,
|
||||
"Patch": 0,
|
||||
"Build": 0
|
||||
},
|
||||
|
@ -29,7 +29,7 @@
|
|||
"OriginalFilename": "",
|
||||
"PrivateBuild": "",
|
||||
"ProductName": "Netclient",
|
||||
"ProductVersion": "v0.13.1.0",
|
||||
"ProductVersion": "v0.14.0.0",
|
||||
"SpecialBuild": ""
|
||||
},
|
||||
"VarFileInfo": {
|
||||
|
|
BIN
netclient/windowsdata/resource/netclient.ico
Normal file
BIN
netclient/windowsdata/resource/netclient.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 983 B |
Binary file not shown.
Before Width: | Height: | Size: 7.4 KiB |
Loading…
Add table
Reference in a new issue