fix(hololake): bind updater trust into bundle config

This commit is contained in:
冰朔 2026-08-17 00:59:55 +08:00
commit 23a0849d6b
2 changed files with 10 additions and 0 deletions

View file

@ -22,6 +22,8 @@ test('HoloLake updater trust is product-owned and contains no inherited endpoint
assert.deepEqual(trust.allowedReleaseHosts, ['guanghulab.com'])
assert.equal(trust.state, 'PROVISIONED')
assert.ok(trust.publicKey.length > 100)
assert.deepEqual(tauriConfig.plugins.updater.endpoints, trust.endpoints)
assert.equal(tauriConfig.plugins.updater.pubkey, trust.publicKey)
for (const relative of [
'foundation.json',
'src-tauri/release-trust.json',

View file

@ -24,6 +24,14 @@
"csp": "default-src 'self'; connect-src 'self' ipc: http://ipc.localhost; img-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self'"
}
},
"plugins": {
"updater": {
"endpoints": [
"https://guanghulab.com/hololake/releases/latest.json"
],
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDEzQkYzRTQ5QTE2MEFDMzEKUldReHJHQ2hTVDYvRTZNNDVqZDUxLzRZMmxuT1pSM2Q5RTRZbzRCZUZ0d0FxVVNidGJ0dUQyMnoK"
}
},
"bundle": {
"active": true,
"targets": "all",