修正原生壳公开主站配置

将原生壳公开主站统一为 www.genarrative.world

调整 Tauri release 直接加载线上主站并移除 frontendDist 打包

补齐创作入口配置开发代理与回归测试

同步原生壳方案文档和共享记忆
This commit is contained in:
2026-06-22 15:07:02 +08:00
parent 58ede89341
commit 8bd8363ffa
31 changed files with 205 additions and 183 deletions
+6 -6
View File
@@ -1836,9 +1836,9 @@ for (const snippet of [
"url: 'about:blank'",
"url: 'javascript:alert(1)'",
"url: '/favicon.ico'",
"url: 'https://app.genarrative.world/assets/main.js'",
"https://app.genarrative.world/creation/puzzle?sessionId=private#recover",
"url: 'https://app.genarrative.world/works/detail'",
"url: 'https://www.genarrative.world/assets/main.js'",
"https://www.genarrative.world/creation/puzzle?sessionId=private#recover",
"url: 'https://www.genarrative.world/works/detail'",
]) {
if (!loadFailureTestSource.includes(snippet)) {
throw new Error(`mobile shell load failure tests missing ${snippet}`);
@@ -1998,7 +1998,7 @@ for (const snippet of [
'does not fall back to cached target when explicit payload is unsafe',
'rejects empty share requests before opening native share sheet',
"message: 'share unavailable'",
'https://app.genarrative.world/works/detail?work=PZ-00000001',
'https://www.genarrative.world/works/detail?work=PZ-00000001',
'javascript:alert(1)',
'expect(Share.share).not.toHaveBeenCalled()',
]) {
@@ -2007,7 +2007,7 @@ for (const snippet of [
}
}
if (shareSource.includes("const WEB_APP_ORIGIN = 'https://app.genarrative.world'")) {
if (shareSource.includes("const WEB_APP_ORIGIN = 'https://www.genarrative.world'")) {
throw new Error('mobile shell share URL policy must reuse the shared web origin');
}
@@ -2820,7 +2820,7 @@ for (const snippet of [
"'mobile QR scanner permission request failed'",
"barcodeTypes: ['qr']",
"type: 'qr'",
"value: 'https://app.genarrative.world/works/detail?work=PZ-1'",
"value: 'https://www.genarrative.world/works/detail?work=PZ-1'",
]) {
if (!qrScannerOverlayTestSource.includes(snippet)) {
throw new Error(`mobile shell QR scanner overlay test missing ${snippet}`);