feat: GitHub 发布生成皮肤站完整更新包
Axolotl desktop CI / guardrails (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled
Starlight release / Release preflight (push) Has been cancelled
Prepare pnpm cache / prepare (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Starlight release / Build (Windows x64) (push) Has been cancelled
Starlight release / Build (Linux arm64) (push) Has been cancelled
Starlight release / Build (Linux x64) (push) Has been cancelled
Starlight release / Build (macOS universal) (push) Has been cancelled
Starlight release / Verify and publish (push) Has been cancelled
Sync LobeHub models / sync (push) Has been cancelled
Axolotl desktop CI / guardrails (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled
Starlight release / Release preflight (push) Has been cancelled
Prepare pnpm cache / prepare (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Starlight release / Build (Windows x64) (push) Has been cancelled
Starlight release / Build (Linux arm64) (push) Has been cancelled
Starlight release / Build (Linux x64) (push) Has been cancelled
Starlight release / Build (macOS universal) (push) Has been cancelled
Starlight release / Verify and publish (push) Has been cancelled
Sync LobeHub models / sync (push) Has been cancelled
This commit is contained in:
1 parent
ce0f41c973
commit
efbf998ebb
4 files changed
+59
-2
No files matched your search
@@ -21,6 +21,10 @@ function updaterTargets(filename) {
|
||||
return null
|
||||
}
|
||||
|
||||
function isSkinSiteUpdateBundle(filename) {
|
||||
return filename.endsWith('_skin-site-update.zip')
|
||||
}
|
||||
|
||||
function describe(filename) {
|
||||
const targets = updaterTargets(filename)
|
||||
if (targets) {
|
||||
@@ -69,7 +73,7 @@ function digest(asset) {
|
||||
}
|
||||
|
||||
const assets = release.assets
|
||||
.filter((asset) => asset.name !== 'latest.json')
|
||||
.filter((asset) => asset.name !== 'latest.json' && !isSkinSiteUpdateBundle(asset.name))
|
||||
.map((asset) => ({
|
||||
filename: asset.name,
|
||||
size: asset.size,
|
||||
|
||||
@@ -37,6 +37,7 @@ const files = [
|
||||
'Axolotl_Launcher_1.9.5-beta.1_x64_nsis-setup.exe',
|
||||
'Axolotl_Launcher_1.9.5-beta.1_x64_nsis-setup.exe.sig',
|
||||
'Axolotl_Launcher_1.9.5-beta.1_x64_portable.zip',
|
||||
'Starlight_Launcher_1.9.5-beta.1_skin-site-update.zip',
|
||||
]
|
||||
|
||||
try {
|
||||
@@ -59,7 +60,11 @@ try {
|
||||
assert.equal(result.status, 0, result.stderr)
|
||||
const catalog = JSON.parse(fs.readFileSync(output, 'utf8'))
|
||||
assert.equal(catalog.version, '1.9.5-beta.1')
|
||||
assert.equal(catalog.files.length, files.length)
|
||||
assert.equal(catalog.files.length, files.length - 1)
|
||||
assert.equal(
|
||||
catalog.files.some((artifact) => artifact.filename.endsWith('_skin-site-update.zip')),
|
||||
false,
|
||||
)
|
||||
assert.deepEqual(
|
||||
catalog.artifacts.find((artifact) => artifact.filename.endsWith('_amd64.AppImage.tar.gz'))
|
||||
.targetPlatforms,
|
||||
|
||||
Reference in new issue
Block a user