Release runner

This commit is contained in:
2025-01-11 20:41:30 +08:00
parent 9b4979af39
commit 5c24b4f547
2 changed files with 11 additions and 0 deletions

View File

@ -19,6 +19,7 @@ type ProductRelease struct {
Type ProductReleaseType `json:"type"`
Channel string `json:"channel"`
Assets datatypes.JSONType[map[string]ReleaseAsset] `json:"assets"`
Runners datatypes.JSONType[map[string]ReleaseRunner] `json:"runner"`
Installers datatypes.JSONType[map[string]ReleaseInstaller] `json:"installers"`
ProductID uint `json:"product_id"`
@ -50,3 +51,9 @@ type ReleaseInstallerPatch struct {
Action string `json:"action" validate:"required"`
Glob string `json:"glob" validate:"required"`
}
type ReleaseRunner struct {
Workdir string `json:"workdir"`
Script string `json:"script"`
Label string `json:"label"`
}