diff --git a/go-client/Makefile b/go-client/Makefile index bc86b66..856cc66 100644 --- a/go-client/Makefile +++ b/go-client/Makefile @@ -14,6 +14,7 @@ build-client: GOARCH=amd64 GOOS=darwin $(CLIENTBUILD) -ldflags "$(LDFLAGS)" -o $(BUILDDIR)/darwin/client $(SSHCSRCFILE) GOARCH=amd64 GOOS=windows $(CLIENTBUILD) -ldflags "$(LDFLAGS) -H windowsgui" -o $(BUILDDIR)/windows/JumpServerClient.exe $(CLIENTSRCFILE) + GOARCH=386 GOOS=windows $(CLIENTBUILD) -ldflags "$(LDFLAGS) -H windowsgui" -o $(BUILDDIR)/windows/JumpServerClient32.exe $(CLIENTSRCFILE) GOARCH=amd64 GOOS=linux $(CLIENTBUILD) -ldflags "$(LDFLAGS)" -o $(BUILDDIR)/linux-amd64/JumpServerClient $(CLIENTSRCFILE) GOARCH=amd64 GOOS=linux $(CLIENTBUILD) -ldflags "$(LDFLAGS)" -o $(BUILDDIR)/linux-amd64/client $(SSHCSRCFILE) diff --git a/go-client/config.json b/go-client/config.json index 72afe0c..36ff568 100644 --- a/go-client/config.json +++ b/go-client/config.json @@ -142,6 +142,25 @@ "is_internal": false, "is_default": false, "is_set": false + }, + { + "name": "xftp", + "display_name": "Xftp", + "protocol": [ + "sftp" + ], + "comment": { + "zh": "Xftp是一个功能强大的SFTP、FTP 文件传输软件。", + "en": "Xftp is a powerful SFTP and FTP file transfer software." + }, + "download_url": "https://www.xshell.com/zh/xftp-download/", + "type": "linux", + "path": "", + "arg_format": "-newwin {protocol}://{username}:{value}@{host}:{port}", + "match_first": [], + "is_internal": false, + "is_default": false, + "is_set": false } ], "databases": [ @@ -224,6 +243,25 @@ "is_internal": false, "is_default": false, "is_set": false + }, + { + "name": "another_redis", + "display_name": "Another Redis Desktop Manager", + "protocol": [ + "redis" + ], + "comment": { + "zh": "更快、更好、更稳定的Redis桌面(GUI)管理客户端。", + "en": "A faster, better and more stable redis desktop manager." + }, + "download_url": "https://github.com/qishibo/AnotherRedisDesktopManager", + "type": "databases", + "path": "", + "arg_format": "--host {host} --port {port} --auth {username}@{value}", + "match_first": [], + "is_internal": false, + "is_default": false, + "is_set": false } ] }, @@ -386,6 +424,25 @@ "is_internal": false, "is_default": false, "is_set": false + }, + { + "name": "another_redis", + "display_name": "Another Redis Desktop Manager", + "protocol": [ + "redis" + ], + "comment": { + "zh": "更快、更好、更稳定的Redis桌面(GUI)管理客户端。", + "en": "A faster, better and more stable redis desktop manager." + }, + "download_url": "https://github.com/qishibo/AnotherRedisDesktopManager", + "type": "databases", + "path": "/Applications/Another Redis Desktop Manager.app/Contents/MacOS/Another Redis Desktop Manager", + "arg_format": "--host {host} --port {port} --auth {username}@{value}", + "match_first": [], + "is_internal": false, + "is_default": false, + "is_set": false } ] }, diff --git a/go-client/pkg/awaken/awaken_windows.go b/go-client/pkg/awaken/awaken_windows.go index b1582e9..4cbcb46 100755 --- a/go-client/pkg/awaken/awaken_windows.go +++ b/go-client/pkg/awaken/awaken_windows.go @@ -107,31 +107,33 @@ func handleDB(r *Rouse, cfg *config.AppConfig) *exec.Cmd { connectMap["protocol"] = "mssql_jdbc_ms_new" } if r.Protocol == "redis" { - var conList []map[string]string - ss := make(map[string]string) - ss["host"] = r.Host - ss["port"] = strconv.Itoa(r.Port) - ss["name"] = r.getName() - ss["auth"] = r.Token.ID + "@" + r.Value - ss["ssh_agent_path"] = "" - ss["ssh_password"] = "" - ss["ssh_private_key_path"] = "" - ss["timeout_connect"] = "60000" - ss["timeout_execute"] = "60000" - conList = append(conList, ss) + if appItem.Name == "resp" { + var conList []map[string]string + ss := make(map[string]string) + ss["host"] = r.Host + ss["port"] = strconv.Itoa(r.Port) + ss["name"] = r.getName() + ss["auth"] = r.Token.ID + "@" + r.Value + ss["ssh_agent_path"] = "" + ss["ssh_password"] = "" + ss["ssh_private_key_path"] = "" + ss["timeout_connect"] = "60000" + ss["timeout_execute"] = "60000" + conList = append(conList, ss) - bjson, _ := json.Marshal(conList) - currentPath := filepath.Dir(os.Args[0]) - rdmPath := filepath.Join(currentPath, ".rdm") - EnsureDirExist(rdmPath) - filePath := filepath.Join(rdmPath, "connections.json") - global.LOG.Error(filePath) - err := ioutil.WriteFile(filePath, bjson, os.ModePerm) - if err != nil { - global.LOG.Error(err.Error()) - return nil + bjson, _ := json.Marshal(conList) + currentPath := filepath.Dir(os.Args[0]) + rdmPath := filepath.Join(currentPath, ".rdm") + EnsureDirExist(rdmPath) + filePath := filepath.Join(rdmPath, "connections.json") + global.LOG.Error(filePath) + err := ioutil.WriteFile(filePath, bjson, os.ModePerm) + if err != nil { + global.LOG.Error(err.Error()) + return nil + } + connectMap["config_file"] = currentPath } - connectMap["config_file"] = currentPath } commands := getCommandFromArgs(connectMap, appItem.ArgFormat) if strings.Contains(commands, "*") { diff --git a/interface/build/win/installer.nsh b/interface/build/win/installer.nsh index 9cc3a55..f4d45fd 100644 --- a/interface/build/win/installer.nsh +++ b/interface/build/win/installer.nsh @@ -7,8 +7,11 @@ WriteRegStr HKCR "jms" "URL Protocol" "" WriteRegStr HKCR "jms\shell" "" "" WriteRegStr HKCR "jms\shell\open" "" "" - WriteRegStr HKCR "jms\shell\open\command" "" '"$INSTDIR\resources\bin\windows\JumpServerClient.exe" "%1"' - + ${If} ${RunningX64} + WriteRegStr HKCR "jms\shell\open\command" "" '"$INSTDIR\resources\bin\windows\JumpServerClient.exe" "%1"' + ${else} + WriteRegStr HKCR "jms\shell\open\command" "" '"$INSTDIR\resources\bin\windows\JumpServerClient32.exe" "%1"' + ${EndIf} AccessControl::GrantOnFile \ "$INSTDIR\resources\bin" "(BU)" "GenericWrite + GenericRead" Pop $R0 diff --git a/interface/package.json b/interface/package.json index d200613..f7fe2a2 100644 --- a/interface/package.json +++ b/interface/package.json @@ -1,7 +1,7 @@ { "name": "jumpserver-client", "author": "Fit2Cloud Technology Co., Ltd.; ", - "version": "v2.1.1", + "version": "v2.1.3", "homepage": "https://jumpserver.org", "private": true, "scripts": { diff --git a/interface/src/renderer/assets/another_redis.png b/interface/src/renderer/assets/another_redis.png new file mode 100644 index 0000000..021c412 Binary files /dev/null and b/interface/src/renderer/assets/another_redis.png differ diff --git a/interface/src/renderer/assets/xftp.png b/interface/src/renderer/assets/xftp.png new file mode 100644 index 0000000..da11a5e Binary files /dev/null and b/interface/src/renderer/assets/xftp.png differ diff --git a/interface/src/renderer/pages/About.vue b/interface/src/renderer/pages/About.vue index 5840eb9..1640b8e 100644 --- a/interface/src/renderer/pages/About.vue +++ b/interface/src/renderer/pages/About.vue @@ -2,8 +2,8 @@

{{ $t('Common.JumpServerClient') }}

-

{{ $t('AboutUs.Version') }}:v2.1.1

-

{{ $t('AboutUs.Copyright') }}:FIT2CLOUD 飞致云 © 2014-2023 {{ $t('AboutUs.AllRightsReserved')}}

+

{{ $t('AboutUs.Version') }}:v2.1.3

+

{{ $t('AboutUs.Copyright') }}:FIT2CLOUD 飞致云 © 2014-2024 {{ $t('AboutUs.AllRightsReserved')}}

{{ $t('AboutUs.OfficialWebsite') }} {{ $t('AboutUs.OnlineDocumentation') }} {{ $t('AboutUs.KnowledgeBase') }} diff --git a/interface/vue.config.js b/interface/vue.config.js index 4d611a2..4d6809f 100644 --- a/interface/vue.config.js +++ b/interface/vue.config.js @@ -70,12 +70,14 @@ module.exports = { target: [{ target: 'nsis', arch: [ - 'x64' + 'x64', + 'ia32' ] },{ target: 'msiWrapped', arch: [ - 'x64' + 'x64', + 'ia32' ] }] },