From e69a33282971d1e255af34b88ab56d971ca2d3a9 Mon Sep 17 00:00:00 2001 From: syui Date: Wed, 21 Jan 2026 23:30:24 +0900 Subject: [PATCH] fix web config --- web/src/build.ts | 16 ++++++++++++++++ web/src/sites/aicard.json | 3 ++- web/src/sites/airse.json | 2 +- web/src/types.ts | 1 + 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/web/src/build.ts b/web/src/build.ts index 83e273f..c8f8261 100644 --- a/web/src/build.ts +++ b/web/src/build.ts @@ -100,6 +100,22 @@ function buildSite(site: SiteConfig, pages: ReturnType): void writeFileSync(metadataPath, clientMetadata(site)) console.log(` -> .well-known/client-metadata.json`) + // Generate apple-app-site-association for Universal Links (if appId is set) + if (site.appId) { + const aasa = { + applinks: { + apps: [], + details: [{ + appID: site.appId, + paths: ['/oauth/callback', '/oauth/callback/'] + }] + } + } + const aasaPath = join(siteDir, '.well-known/apple-app-site-association') + writeFileSync(aasaPath, JSON.stringify(aasa, null, 2)) + console.log(` -> .well-known/apple-app-site-association`) + } + // Copy assets copyAssets(site) } diff --git a/web/src/sites/aicard.json b/web/src/sites/aicard.json index beef462..81d9bcf 100644 --- a/web/src/sites/aicard.json +++ b/web/src/sites/aicard.json @@ -3,9 +3,10 @@ "name": "Aicard", "domain": "card.syui.ai", "scheme": "aicard", + "appId": "WN6KD5ZT49.ai.syui.card", "version": "1.0.0", "category": "Game", - "description": "Aicard is a card collection game integrated with AT Protocol.", + "description": "Aicard is an atmosphere card collecting game.", "backLink": "syui.ai", "icon": "/static/app.png", "os": "iOS 26.0+", diff --git a/web/src/sites/airse.json b/web/src/sites/airse.json index f2b0626..e0153d2 100644 --- a/web/src/sites/airse.json +++ b/web/src/sites/airse.json @@ -5,7 +5,7 @@ "scheme": "airse", "version": "1.0.0", "category": "Game", - "description": "Airse is an adventure game built with Unreal Engine, featuring AT Protocol integration.", + "description": "Airse is an atmosphere open-world game connected to the social network.", "backLink": "syui.ai", "icon": "/static/app.png", "os": "Windows / macOS", diff --git a/web/src/types.ts b/web/src/types.ts index 6419477..687c25f 100644 --- a/web/src/types.ts +++ b/web/src/types.ts @@ -3,6 +3,7 @@ export interface SiteConfig { name: string domain: string scheme: string + appId?: string version: string category: string description: string