feat: added windows install script to ui
Server Deploy / deploy (push) Successful in 1m20s

This commit is contained in:
2026-07-17 14:40:00 +01:00
parent fdbd591c73
commit 2b4611f7ac
3 changed files with 38 additions and 8 deletions
+9 -3
View File
@@ -124,10 +124,16 @@ func newServer(c *gin.Context) {
host, s.ServerID, token,
)
installCmdPS := fmt.Sprintf(
`irm "%s/install.ps1?server_id=%s&token=%s" | iex`,
host, s.ServerID, token,
)
c.JSON(http.StatusOK, gin.H{
"server_id": s.ServerID,
"pre_reg_token": token,
"install_command": installCmd,
"server_id": s.ServerID,
"pre_reg_token": token,
"install_command": installCmd,
"install_command_ps": installCmdPS,
})
}