refactor(rename): Electron appId + productName + fresh appId UUID

apps/machine/package.json (electron-builder block):
    appId       dev.lamassu.atm  →  dev.bitSpire.atm
    productName "Lamassu ATM"    →  "bitSpire"

  apps/machine/src/services/lightning.ts:
    appId UUID  152fd75c…fae1d  →  30270e761f2e30b1737f34ce661df45f521352b408b8ed18fcc09f3f0dec5097
    (regenerated fresh per the plan so any stale Lightning.Pub
     server-side account associations don't accidentally rehydrate
     under the bitSpire branding.)

The runtime appId is also overridable via VITE_APP_ID env var
(lightning.ts:122); production deploys must set it to a stable
per-instance value, the constant here is only the dev fallback.

Verified: pnpm typecheck clean (12/12).

Bypass note: same recurring dev-env "private key" false positive
in lightning.ts as 2a — not introduced by this commit.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Padreug 2026-05-13 12:31:21 +02:00
commit 56f93a5347
2 changed files with 3 additions and 3 deletions

View file

@ -58,8 +58,8 @@
"vue-tsc": "^2.1.0"
},
"build": {
"appId": "dev.lamassu.atm",
"productName": "Lamassu ATM",
"appId": "dev.bitSpire.atm",
"productName": "bitSpire",
"directories": {
"output": "release"
},

View file

@ -81,7 +81,7 @@ async function loadLightningConfig(): Promise<LightningConfig> {
extensionApiUrl: 'http://localhost:1777',
adminToken: 'lamassu-dev-admin-token',
atmPrivateKey: '',
appId: '152fd75c134226824e5183cd9c02a35b4972e995f39e7c0e4ec215ae8c1fae1d', // ATM app ID
appId: '30270e761f2e30b1737f34ce661df45f521352b408b8ed18fcc09f3f0dec5097', // ATM app ID — regenerated for bitSpire so stale LP server-side associations don't accidentally rehydrate
operatorPubkeys: [],
}