fix web config
This commit is contained in:
@@ -100,6 +100,22 @@ function buildSite(site: SiteConfig, pages: ReturnType<typeof loadPages>): 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)
|
||||
}
|
||||
|
||||
@@ -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+",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -3,6 +3,7 @@ export interface SiteConfig {
|
||||
name: string
|
||||
domain: string
|
||||
scheme: string
|
||||
appId?: string
|
||||
version: string
|
||||
category: string
|
||||
description: string
|
||||
|
||||
Reference in New Issue
Block a user