Win release artifacts now live in their own Azure Blob container
(heicodeblob/win/) — Manager download page and Tauri auto-updater both
point at win/updater/win-latest.json. Mac stays on the existing custom
sha256-verified mac-latest.json until the Mac CI/CD pipeline migrates
to Tauri minisign format.
Also fixes the in-app balance pill: /v1/dashboard/billing/{subscription,usage}
on the Manager accepts the `sk-` channel token, /api/user/self does not.
Switched the proxy in heicode-auth to use the billing endpoints so the
BalanceBar actually renders real remaining/used quota.
- cc-haha/desktop/src-tauri/tauri.conf.json: updater endpoint → win container
- cc-haha/src/server/api/heicode-auth.ts: balance via /v1/dashboard/billing
- cc-haha/desktop version bump 0.2.4 → 0.2.5 (next Win release)
- cc-haha/.gitignore: exclude installer artifacts (msi, dmg, sig, …)
- heicode/controller/desktop_download.go: dual-feed (Win Tauri + Mac custom)
81 lines
2.1 KiB
JSON
81 lines
2.1 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/nicegui/nicegui/main/nicegui/static/tauri-schema-v2.json",
|
|
"productName": "HeiCode",
|
|
"version": "0.2.5",
|
|
"identifier": "com.heicode.desktop",
|
|
"build": {
|
|
"frontendDist": "../dist",
|
|
"devUrl": "http://localhost:1420",
|
|
"beforeDevCommand": "bun run build:sidecars && bun run dev",
|
|
"beforeBuildCommand": ""
|
|
},
|
|
"app": {
|
|
"windows": [
|
|
{
|
|
"title": "Heicode",
|
|
"width": 1440,
|
|
"height": 960,
|
|
"minWidth": 960,
|
|
"minHeight": 640,
|
|
"decorations": false,
|
|
"transparent": false,
|
|
"acceptFirstMouse": true,
|
|
"titleBarStyle": "Overlay",
|
|
"hiddenTitle": true
|
|
}
|
|
],
|
|
"security": {
|
|
"dangerousDisableAssetCspModification": ["style-src"],
|
|
"csp": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: asset: https://asset.localhost; font-src 'self' data:; connect-src 'self' ws://127.0.0.1:* http://127.0.0.1:* ws://localhost:* http://localhost:*; media-src 'self' blob:"
|
|
}
|
|
},
|
|
"plugins": {
|
|
"updater": {
|
|
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEI3Q0FBOUQ2MTgwRkM4NjQKUldSa3lBOFkxcW5LdDhLUFZnNUlEdmllY0ZudjFhb2VXTUpSWmpkUmM1cjdoNDFwRW1MZTN5Yi8K",
|
|
"endpoints": [
|
|
"https://heicodeblob.blob.core.windows.net/win/updater/win-latest.json"
|
|
],
|
|
"windows": {
|
|
"installMode": "passive"
|
|
}
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": "all",
|
|
"createUpdaterArtifacts": true,
|
|
"windows": {
|
|
"nsis": {
|
|
"installerHooks": "windows-installer-hooks.nsh"
|
|
}
|
|
},
|
|
"externalBin": [
|
|
"binaries/heicode-sidecar"
|
|
],
|
|
"resources": [],
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/icon.icns",
|
|
"icons/icon.ico"
|
|
],
|
|
"macOS": {
|
|
"dmg": {
|
|
"appPosition": {
|
|
"x": 180,
|
|
"y": 170
|
|
},
|
|
"applicationFolderPosition": {
|
|
"x": 480,
|
|
"y": 170
|
|
},
|
|
"windowSize": {
|
|
"width": 660,
|
|
"height": 400
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|