ci(kimi-desktop): strip Developer ID prefix from CSC_NAME (#1235)

* ci(kimi-desktop): strip Developer ID prefix from CSC_NAME

electron-builder rejects the 'Developer ID Application: ' prefix in CSC_NAME;
the keychain setup exports the full certificate name, so strip the prefix
before passing it to electron-builder.

* ci(kimi-desktop): add homepage and maintainer for linux .deb

electron-builder's .deb target requires a project homepage and a package
maintainer; set both so the Linux build succeeds.
This commit is contained in:
qer 2026-06-30 22:19:35 +08:00 committed by GitHub
parent 020992c286
commit e207f52f55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 1 deletions

View file

@ -118,6 +118,16 @@ jobs:
certificate-p12: ${{ secrets.APPLE_CERTIFICATE_P12 }}
certificate-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
- name: Prepare CSC_NAME for electron-builder (macOS)
if: runner.os == 'macOS' && inputs.sign-macos
shell: bash
run: |
# electron-builder rejects the "Developer ID Application: " prefix in
# CSC_NAME; strip it so the certificate matches by team name + ID.
name="${APPLE_SIGNING_IDENTITY}"
name="${name#Developer ID Application: }"
echo "CSC_NAME=$name" >> "$GITHUB_ENV"
- name: Prepare notarization API key (macOS)
if: runner.os == 'macOS' && inputs.sign-macos
shell: bash
@ -137,7 +147,6 @@ jobs:
# API key; otherwise it builds unsigned.
CSC_IDENTITY_AUTO_DISCOVERY: ${{ (runner.os == 'macOS' && inputs.sign-macos) && 'true' || 'false' }}
CSC_KEYCHAIN: ${{ env.APPLE_KEYCHAIN_PATH }}
CSC_NAME: ${{ env.APPLE_SIGNING_IDENTITY }}
KIMI_DESKTOP_NOTARIZE: ${{ (runner.os == 'macOS' && inputs.sign-macos) && 'true' || 'false' }}
APPLE_API_KEY_ID: ${{ secrets.APPLE_NOTARIZATION_KEY_ID }}
APPLE_API_ISSUER: ${{ secrets.APPLE_NOTARIZATION_ISSUER_ID }}

View file

@ -63,5 +63,6 @@ module.exports = {
category: 'Development',
target: ['AppImage', 'deb'],
artifactName: 'KCD-Internal-${version}-${arch}.${ext}',
maintainer: 'Moonshot AI',
},
};

View file

@ -5,6 +5,7 @@
"license": "MIT",
"description": "Kimi Code desktop client — an Electron shell around the Kimi web UI.",
"author": "Moonshot AI",
"homepage": "https://github.com/MoonshotAI/kimi-code",
"type": "module",
"main": "out/main.cjs",
"scripts": {