mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-19 13:33:35 +08:00
fix(release): add Linux deb package metadata
Ensure Electron Builder has the project URL and maintainer metadata required by Linux deb targets, and lock the fields with release workflow coverage. Tested: bun test scripts/pr/release-workflow.test.ts Tested: bun run check:policy Tested: bun run check:native Tested: bun run verify Confidence: high Scope-risk: narrow
This commit is contained in:
parent
12c67f7137
commit
79d8468580
@ -2,6 +2,12 @@
|
|||||||
"name": "claude-code-desktop",
|
"name": "claude-code-desktop",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.3.2",
|
"version": "0.3.2",
|
||||||
|
"description": "Desktop coding agent workbench for Claude Code Haha.",
|
||||||
|
"homepage": "https://github.com/NanmiCoder/cc-haha",
|
||||||
|
"author": {
|
||||||
|
"name": "NanmiCoder",
|
||||||
|
"email": "relakkes@gmail.com"
|
||||||
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "electron-dist/main.cjs",
|
"main": "electron-dist/main.cjs",
|
||||||
"build": {
|
"build": {
|
||||||
@ -50,7 +56,8 @@
|
|||||||
"deb"
|
"deb"
|
||||||
],
|
],
|
||||||
"icon": "src-tauri/icons",
|
"icon": "src-tauri/icons",
|
||||||
"category": "Development"
|
"category": "Development",
|
||||||
|
"maintainer": "NanmiCoder <relakkes@gmail.com>"
|
||||||
},
|
},
|
||||||
"publish": [
|
"publish": [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -47,6 +47,28 @@ describe('release desktop workflow', () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
test('desktop package includes Linux deb metadata required by electron-builder', () => {
|
||||||
|
const desktopPackage = JSON.parse(readFileSync('desktop/package.json', 'utf8')) as {
|
||||||
|
description?: string
|
||||||
|
homepage?: string
|
||||||
|
author?: {
|
||||||
|
name?: string
|
||||||
|
email?: string
|
||||||
|
}
|
||||||
|
build?: {
|
||||||
|
linux?: {
|
||||||
|
maintainer?: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
expect(desktopPackage.description).toBeTruthy()
|
||||||
|
expect(desktopPackage.homepage).toBe('https://github.com/NanmiCoder/cc-haha')
|
||||||
|
expect(desktopPackage.author?.name).toBe('NanmiCoder')
|
||||||
|
expect(desktopPackage.author?.email).toBe('relakkes@gmail.com')
|
||||||
|
expect(desktopPackage.build?.linux?.maintainer).toBe('NanmiCoder <relakkes@gmail.com>')
|
||||||
|
})
|
||||||
|
|
||||||
test('release workflow requires macOS Gatekeeper launch approval before upload', () => {
|
test('release workflow requires macOS Gatekeeper launch approval before upload', () => {
|
||||||
const workflow = readReleaseWorkflow()
|
const workflow = readReleaseWorkflow()
|
||||||
const gatekeeperStep = workflow.match(
|
const gatekeeperStep = workflow.match(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user