Supports release assets & installers

This commit is contained in:
2025-01-11 13:58:27 +08:00
parent 847151afe8
commit bdcbb18592
7 changed files with 270 additions and 93 deletions

View File

@ -8,7 +8,7 @@
"name": "LittleSheep",
"email": "littlesheep.code@hotmail.com"
},
"version": "0.0.5",
"version": "0.0.8",
"tsup": {
"entry": [
"src/index.ts"

View File

@ -6,7 +6,8 @@ export interface MaRelease {
version: string
type: number
channel: string
assets: Record<string, any>
assets: Record<string, MaReleaseAsset>
installers: Record<string, MaReleaseInstaller>
product_id: number
meta: MaReleaseMeta
}
@ -22,3 +23,19 @@ export interface MaReleaseMeta {
attachments: string[]
release_id: number
}
export interface MaReleaseAsset {
uri: string
contentType: string
}
export interface MaReleaseInstallerPatch {
action: string
glob: string
}
export interface MaReleaseInstaller {
workdir?: string
script?: string
patches: MaReleaseInstallerPatch[]
}