houstonClient도 버전 관리

This commit is contained in:
2023-06-29 11:00:26 +09:00
parent cf46888b6a
commit 5429d3d90f
4 changed files with 40 additions and 8 deletions

View File

@ -264,6 +264,12 @@ func (hc *houstonClient) prepareUpdateSelf(req *shared.DeployRequest) (srcdir st
return "", "", err
}
// houston version 파일
err = os.WriteFile(path.Join(fname, "@version"), []byte(req.Version), 0444)
if err != nil {
return "", "", err
}
selfname, _ := os.Executable()
srcreplacer := path.Join(path.Dir(fname), "replacer") + path.Ext(selfname)
replacer = "./" + filepath.ToSlash("replacer"+path.Ext(selfname))