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))
|
writeFileSync(metadataPath, clientMetadata(site))
|
||||||
console.log(` -> .well-known/client-metadata.json`)
|
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
|
// Copy assets
|
||||||
copyAssets(site)
|
copyAssets(site)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,9 +3,10 @@
|
|||||||
"name": "Aicard",
|
"name": "Aicard",
|
||||||
"domain": "card.syui.ai",
|
"domain": "card.syui.ai",
|
||||||
"scheme": "aicard",
|
"scheme": "aicard",
|
||||||
|
"appId": "WN6KD5ZT49.ai.syui.card",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"category": "Game",
|
"category": "Game",
|
||||||
"description": "Aicard is a card collection game integrated with AT Protocol.",
|
"description": "Aicard is an atmosphere card collecting game.",
|
||||||
"backLink": "syui.ai",
|
"backLink": "syui.ai",
|
||||||
"icon": "/static/app.png",
|
"icon": "/static/app.png",
|
||||||
"os": "iOS 26.0+",
|
"os": "iOS 26.0+",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"scheme": "airse",
|
"scheme": "airse",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"category": "Game",
|
"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",
|
"backLink": "syui.ai",
|
||||||
"icon": "/static/app.png",
|
"icon": "/static/app.png",
|
||||||
"os": "Windows / macOS",
|
"os": "Windows / macOS",
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ export interface SiteConfig {
|
|||||||
name: string
|
name: string
|
||||||
domain: string
|
domain: string
|
||||||
scheme: string
|
scheme: string
|
||||||
|
appId?: string
|
||||||
version: string
|
version: string
|
||||||
category: string
|
category: string
|
||||||
description: string
|
description: string
|
||||||
|
|||||||
Reference in New Issue
Block a user