ci: add cross-platform release workflow with version injection
Build linux/darwin amd64 and arm64 artifacts on push, upload GitHub Release assets on v* tags, and expose version via agent-notify version. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -39,6 +39,8 @@ func run(cmd string, args []string) error {
|
||||
return cmdDoctor()
|
||||
case "logs":
|
||||
return cmdLogs(args)
|
||||
case "version", "-V":
|
||||
return cmdVersion()
|
||||
case "help", "-h", "--help":
|
||||
printUsage()
|
||||
return nil
|
||||
@@ -200,6 +202,7 @@ Commands:
|
||||
test cursor [--try-all]
|
||||
test claude [--apply]
|
||||
logs [--tail 30]
|
||||
version
|
||||
doctor
|
||||
`)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
var (
|
||||
version = "dev"
|
||||
commit = "none"
|
||||
buildDate = "unknown"
|
||||
)
|
||||
|
||||
func cmdVersion() error {
|
||||
fmt.Printf("agent-notify %s\n", version)
|
||||
fmt.Printf("commit: %s\n", commit)
|
||||
fmt.Printf("built: %s\n", buildDate)
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user