@hot-updater/console 1.2.0-rc.11 → 1.2.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/{-native-builds-search-C-TGpFAm.js → -native-builds-search-DC2PutLU.js} +1 -1
- package/.output/public/assets/{ConsoleFeatureUnavailable-CUtcXuY2.js → ConsoleFeatureUnavailable-oMmbaqF6.js} +1 -1
- package/.output/public/assets/{EventDetails-Dl2RvPAk.js → EventDetails-ly7ygfdH.js} +1 -1
- package/.output/public/assets/{HashValueDisplay-6lNRxDJX.js → HashValueDisplay-BNoXZADg.js} +1 -1
- package/.output/public/assets/{InsightsPageHeader-DHhqY3DT.js → InsightsPageHeader-q2FgL8xS.js} +1 -1
- package/.output/public/assets/RolloutPercentageBadge-frllRncE.js +1 -0
- package/.output/public/assets/{StoreSubmission-ViTkW4eJ.js → StoreSubmission-D8BGGGgn.js} +1 -1
- package/.output/public/assets/api-BEEYDSCX.js +1 -0
- package/.output/public/assets/{api-keys-FueRkF9q.js → api-keys-B0N3SixL.js} +1 -1
- package/.output/public/assets/api-keys-DFAOfU4U.js +1 -0
- package/.output/public/assets/{index-DH9-mB8D.js → index-t0CToN0S.js} +3 -3
- package/.output/public/assets/insights-B0_8xNxr.js +1 -0
- package/.output/public/assets/{insights-B-0odqpt.js → insights-BbIzm_QG.js} +2 -2
- package/.output/public/assets/insights-BtmYg4vg.js +2 -0
- package/.output/public/assets/{insights-search-DghCbEnk.js → insights-search-B5cZsP6C.js} +1 -1
- package/.output/public/assets/{insights-usage-rpc-CKQH0pUS.js → insights-usage-rpc-zut_JaSS.js} +1 -1
- package/.output/public/assets/insights_.distribution-DLxq-IKU.js +1 -0
- package/.output/public/assets/insights_.distribution-izFBYfJL.js +2 -0
- package/.output/public/assets/{insights_.distribution-dvk6vYDM.js → insights_.distribution-rdeyNhH2.js} +1 -1
- package/.output/public/assets/{installations-B674P5Z5.js → installations-BRS-vuRJ.js} +2 -2
- package/.output/public/assets/installations-CWx7vYY5.js +1 -0
- package/.output/public/assets/{installations-BWxczZ2t.js → installations-Ce_dTa35.js} +1 -1
- package/.output/public/assets/native-builds-Br0onFRc.js +2 -0
- package/.output/public/assets/native-builds-CDYL3y0I.js +1 -0
- package/.output/public/assets/native-builds-DEWHul-_.js +1 -0
- package/.output/public/assets/native-builds_._buildId-D1XEPQ-V.js +1 -0
- package/.output/public/assets/native-builds_._buildId-x-uu1Vbr.js +2 -0
- package/.output/public/assets/{remote-config-B7ujqhLa.js → remote-config-Bw6sErCV.js} +3 -3
- package/.output/public/assets/{remote-config-WjpozBG5.js → remote-config-DQguWTMa.js} +1 -1
- package/.output/public/assets/remote-config-S3xj8r3x.js +1 -0
- package/.output/public/assets/{routes-CCD33Azv.js → routes-Dw8zgqXz.js} +2 -2
- package/.output/public/assets/routes-nKCEKnhh.js +1 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-rwcxgBkE.mjs → __23tanstack-start-server-fn-resolver-DI0OnlQe.mjs} +58 -46
- package/.output/server/_libs/_.mjs +2 -0
- package/.output/server/_ssr/{-native-builds-search-CwNcoXf4.mjs → -native-builds-search-Cl8EZ0Ud.mjs} +2 -2
- package/.output/server/_ssr/{BundleIdDisplay-Ck9PKmwH.mjs → BundleIdDisplay-SAvC-NlE.mjs} +2 -2
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-BWB1D2Wi.mjs → ConsoleFeatureUnavailable-BgHEoZ36.mjs} +6 -6
- package/.output/server/_ssr/{EventDetails-BHaDqOa9.mjs → EventDetails-VaS25yjE.mjs} +7 -7
- package/.output/server/_ssr/{HashValueDisplay-BiDyA9rL.mjs → HashValueDisplay-BGc-x_l8.mjs} +2 -2
- package/.output/server/_ssr/{InsightsPageHeader-CF0EsQxx.mjs → InsightsPageHeader-gMuNJt-f.mjs} +7 -7
- package/.output/server/_ssr/{NotFoundPage-B9lpP9Tl.mjs → NotFoundPage-DsRI-J4h.mjs} +2 -2
- package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-BsU0d0jN.mjs} +1 -1
- package/.output/server/_ssr/{RolloutPercentageBadge-zMqf1PpF.mjs → RolloutPercentageBadge-axz7VuIZ.mjs} +3 -3
- package/.output/server/_ssr/{StoreSubmission-Q-Bs-WZz.mjs → StoreSubmission-BqXKtpqW.mjs} +5 -5
- package/.output/server/_ssr/{alert-dialog-BEim4Utq.mjs → alert-dialog-lury59vV.mjs} +1 -1
- package/.output/server/_ssr/{api-DmYUr3JH.mjs → api-BQ8ztUgU.mjs} +99 -22
- package/.output/server/_ssr/{api-keys-BeIyFPrN.mjs → api-keys-CHATVpa9.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-COYxx0WD.mjs → api-keys-DVChzF3r.mjs} +8 -8
- package/.output/server/_ssr/{api-keys-rpc-B3suM06f.mjs → api-keys-rpc-DXPJTfdr.mjs} +4 -4
- package/.output/server/_ssr/{api-rpc-WN63B4Fl.mjs → api-rpc-BexxmTM9.mjs} +43 -18
- package/.output/server/_ssr/{auth-rpc-DzFn-A4B.mjs → auth-rpc-BgNCvy2L.mjs} +5 -5
- package/.output/server/_ssr/{auth.server-CFohc_4Q.mjs → auth.server-43UW34Rd.mjs} +165 -149
- package/.output/server/_ssr/{badge-BJLGAEnB.mjs → badge-BYB825vl.mjs} +1 -1
- package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-BGVvqWx7.mjs} +1 -1
- package/.output/server/_ssr/{config.server-DD38oozj.mjs → config.server-QRTmD4Hf.mjs} +4 -4
- package/.output/server/_ssr/{console-access-D0n051M-.mjs → console-access-E91fYTIB.mjs} +2 -2
- package/.output/server/_ssr/{console-features-BTV-XuhQ.mjs → console-features-CgdQJQlX.mjs} +1 -1
- package/.output/server/_ssr/{console-features-api-Dydnlqb0.mjs → console-features-api-CLRjxvy2.mjs} +4 -4
- package/.output/server/_ssr/{console-features-rpc-ByDxxOoW.mjs → console-features-rpc-C2rJ0u6i.mjs} +4 -4
- package/.output/server/_ssr/{createServerRpc-BVvRVOz5.mjs → createServerRpc-DJZel12M.mjs} +1 -1
- package/.output/server/_ssr/{databaseConfig-B_Bg7qS5.mjs → databaseConfig-XAvDetmn.mjs} +1 -1
- package/.output/server/_ssr/{databaseJsonValue-kS7cvEtz.mjs → databaseJsonValue-DuUoft8j.mjs} +1 -1
- package/.output/server/_ssr/{databaseRows-B6H8Cmgq.mjs → databaseRows-BtRVBD0C.mjs} +3 -3
- package/.output/server/_ssr/{dialog-Bh8kyYWS.mjs → dialog-CcF1pxfR.mjs} +1 -1
- package/.output/server/_ssr/{dist-TEpM_UAD.mjs → dist-B6-irDRA.mjs} +1 -1
- package/.output/server/_ssr/{downloadBundle-DCmr7vsj.mjs → downloadBundle-BX8ODCZT.mjs} +1 -1
- package/.output/server/_ssr/{empty-DpOPjAFI.mjs → empty-DkiJ7nWt.mjs} +2 -2
- package/.output/server/_ssr/{empty-plugin-adapters-zrZ0xs6n.mjs → empty-plugin-adapters-BYBYBaxo.mjs} +1 -1
- package/.output/server/_ssr/{failureReports-Cn_zU9S8.mjs → failureReports-C_CmBF4x.mjs} +3 -3
- package/.output/server/_ssr/{field-Ql8YHerV.mjs → field-CHlDI06h.mjs} +2 -2
- package/.output/server/_ssr/{getBundleChildren-rtkEEJw5.mjs → getBundleChildren-BJTufthT.mjs} +2 -2
- package/.output/server/_ssr/{git-CTA8Aqr0.mjs → git-WSg7LY17.mjs} +2 -2
- package/.output/server/_ssr/{input-group-Dd_2GFRH.mjs → input-group-BPZ4UtB5.mjs} +1 -1
- package/.output/server/_ssr/{insights-cJyup70V.mjs → insights-B3YetvBK.mjs} +5 -5
- package/.output/server/_ssr/{insights-BhJl-2pB.mjs → insights-CEABWFk4.mjs} +25 -25
- package/.output/server/_ssr/{insights-CqZSyEjz.mjs → insights-Dn32lJ18.mjs} +2 -2
- package/.output/server/_ssr/{insights-api-DRYBk0R6.mjs → insights-api-CYPf5853.mjs} +5 -5
- package/.output/server/_ssr/{insights-errors-7BCwFybo.mjs → insights-errors-Bz3sWNZm.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-B9VPkzZE.mjs → insights-failures-DNQ9qVVf.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-D-9CBKdE.mjs → insights-failures-rpc-CxPpBR1K.mjs} +11 -11
- package/.output/server/_ssr/{insights-recovery-BtXVU3ro.mjs → insights-recovery-DOkpqnQ8.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-DLmf6moc.mjs → insights-recovery-rpc-CwnQMTE3.mjs} +7 -7
- package/.output/server/_ssr/{insights-rpc-y2kQKXNp.mjs → insights-rpc-CKd5ATFI.mjs} +4 -4
- package/.output/server/_ssr/{insights-search-BNYxloOl.mjs → insights-search-B_92_iEj.mjs} +4 -4
- package/.output/server/_ssr/{insights-usage-DiGnuxW8.mjs → insights-usage-4KDIN3Kg.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-DYu9RF-g.mjs → insights-usage-rpc-D90uHpJJ.mjs} +7 -7
- package/.output/server/_ssr/{insights-usage-rpc-kRcZzXgq.mjs → insights-usage-rpc-RIMNhPtj.mjs} +4 -4
- package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-DmQdJZqT.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-DNzQrLmx.mjs → insights_.distribution-D42mHSe0.mjs} +13 -13
- package/.output/server/_ssr/{insights_.distribution-Bej6b0WB.mjs → insights_.distribution-D4QWsHNo.mjs} +5 -5
- package/.output/server/_ssr/{insights_.distribution-B9OZSH_r.mjs → insights_.distribution-DwjIdjQi.mjs} +2 -2
- package/.output/server/_ssr/{installations-skInTxKu.mjs → installations-BIu66J6Q.mjs} +2 -2
- package/.output/server/_ssr/{installations-CBiH9Wwn.mjs → installations-CfmO_V_R.mjs} +4 -4
- package/.output/server/_ssr/{installations-DlSYGvr8.mjs → installations-DyzKzWuv.mjs} +11 -11
- package/.output/server/_ssr/{listReleases-D_GY00SQ.mjs → listReleases-CQEceg8j.mjs} +1 -1
- package/.output/server/_ssr/{request-guard-CPdRBuGW.mjs → local-console-Dtxlsav0.mjs} +2 -9
- package/.output/server/_ssr/native-artifact-H1MDP0Jz.mjs +593 -0
- package/.output/server/_ssr/{native-builds-DAB0xa_Q.mjs → native-builds-BCp8ICrn.mjs} +3 -3
- package/.output/server/_ssr/{native-builds-CnI8MTbb.mjs → native-builds-CqFeXByK.mjs} +17 -13
- package/.output/server/_ssr/{native-builds-DhXL5zf_.mjs → native-builds-qj346atQ.mjs} +49 -12
- package/.output/server/_ssr/{native-builds_._buildId-DZDjrHBe.mjs → native-builds_._buildId-BAxkkEFo.mjs} +600 -168
- package/.output/server/_ssr/{native-builds_._buildId-DLZ6nB36.mjs → native-builds_._buildId-C8gsW-Rh.mjs} +3 -3
- package/.output/server/_ssr/nativeBuildDevice-nU480p5A.mjs +230 -0
- package/.output/server/_ssr/nativeBuildDownloadLink-c3tcq3G5.mjs +96 -0
- package/.output/server/_ssr/nativeBuildInstall-B-_lHDsS.mjs +203 -0
- package/.output/server/_ssr/nativeBuildQr-C5AFtpmE.mjs +115 -0
- package/.output/server/_ssr/{nativeBuilds-B_7BPjt_.mjs → nativeBuilds-CbxOJDhO.mjs} +61 -29
- package/.output/server/_ssr/{plugins-RIryUNWj.mjs → plugins-CX7wutet.mjs} +6 -6
- package/.output/server/_ssr/publicConsoleBase-3IHSHvqd.mjs +27 -0
- package/.output/server/_ssr/{qr-code-C7kNRIDX.mjs → qr-code-pENFuyy9.mjs} +1 -1
- package/.output/server/_ssr/{release-adoption-DoAtNPED.mjs → release-adoption-C7sUFDwa.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-zmiN6xmA.mjs → release-adoption-rpc-BBwJO2hu.mjs} +9 -9
- package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-LLYlRnUB.mjs} +4 -4
- package/.output/server/_ssr/{releaseCatalogCompiler-DLcean2k.mjs → releaseCatalogCompiler-D9dAMI17.mjs} +3 -3
- package/.output/server/_ssr/{releaseManagement-DHUux2az.mjs → releaseManagement-EPhok_Py.mjs} +1 -1
- package/.output/server/_ssr/{releaseReachability-DZOK_dH-.mjs → releaseReachability-DaZ7ifUF.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-Dg413xDC.mjs → remote-config-B1g7vrQD.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-wIu0mSXk.mjs → remote-config-BDijmvj1.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-DARJ7wRc.mjs → remote-config-DjeXVIcr.mjs} +17 -17
- package/.output/server/_ssr/{remote-config-rpc-DChi0vbN.mjs → remote-config-rpc-B7bzKw4N.mjs} +5 -5
- package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
- package/.output/server/_ssr/{router-PzDqC7iK.mjs → router-DhxgFNWn.mjs} +100 -49
- package/.output/server/_ssr/{routes-BJ3Qa9M2.mjs → routes-BC-rBuu_.mjs} +24 -24
- package/.output/server/_ssr/{routes-FJf2TN1y.mjs → routes-BDriEBtF.mjs} +11 -11
- package/.output/server/_ssr/{runtime.server-BdMY1blX.mjs → runtime.server-BsTTLV-B.mjs} +4 -4
- package/.output/server/_ssr/{schema-ChlRtZIo.mjs → schema-3oDJJFWa.mjs} +1 -1
- package/.output/server/_ssr/{schema-migration-rpc-BZPnIX5Y.mjs → schema-migration-rpc-CNMqY0RE.mjs} +4 -4
- package/.output/server/_ssr/{select-BVFaL5Ut.mjs → select-hFD2e3Bh.mjs} +1 -1
- package/.output/server/_ssr/{server-odRE3NM6.mjs → server-D_hG9iIq.mjs} +6 -6
- package/.output/server/_ssr/{sidebar-BJdj38Te.mjs → sidebar-Dmq4j1qr.mjs} +2 -2
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-BvDsQehg.mjs → start-RjhaPVFE.mjs} +2 -2
- package/.output/server/_ssr/{switch-sw0ti4p4.mjs → switch-CkNsEp9k.mjs} +2 -2
- package/.output/server/_ssr/{table-D-ou6_wJ.mjs → table-CTtXogFJ.mjs} +1 -1
- package/.output/server/_ssr/{tabs-DKuPano8.mjs → tabs-BTKDM4AJ.mjs} +2 -2
- package/.output/server/_ssr/{updateFailures-n-tGv90S.mjs → updateFailures-DPYzv9bE.mjs} +3 -3
- package/.output/server/_ssr/{uuidv7-BIF4nb_q.mjs → uuidv7-CmHbryZT.mjs} +2 -2
- package/.output/server/_ssr/{version-CQ98ZBpL-CWSkTT9J.mjs → version-CQ98ZBpL-NmbU0MD2.mjs} +1 -1
- package/.output/server/_tanstack-start-manifest_v-BuGAtKIu.mjs +189 -0
- package/.output/server/index.mjs +284 -284
- package/package.json +7 -7
- package/src/components/features/native-builds/BuiltInBundleCard.tsx +82 -33
- package/src/components/features/native-builds/InstallCard.tsx +246 -46
- package/src/components/features/native-builds/IosInstall.tsx +300 -0
- package/src/components/features/native-builds/NativeBuildsTable.tsx +3 -0
- package/src/components/features/native-builds/PatchesCard.tsx +3 -2
- package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +4 -4
- package/src/components/features/native-builds/ServedNowCard.tsx +33 -1
- package/src/components/features/native-builds/StoreSubmission.tsx +1 -1
- package/src/lib/api-rpc.ts +55 -6
- package/src/lib/api.ts +85 -12
- package/src/lib/native-builds.ts +73 -11
- package/src/lib/server/local-console.ts +1 -1
- package/src/lib/server/nativeBuildDevice.ts +274 -0
- package/src/lib/server/nativeBuildDownloadLink.ts +193 -0
- package/src/lib/server/nativeBuildInstall.ts +355 -0
- package/src/lib/server/nativeBuildQr.ts +114 -24
- package/src/lib/server/nativeBuilds.ts +87 -33
- package/src/lib/server/plistText.ts +17 -0
- package/src/lib/server/publicConsoleBase.ts +17 -0
- package/src/routeTree.gen.ts +114 -0
- package/src/routes/[_]hot-updater/native-builds/$buildId/device-response.ts +17 -0
- package/src/routes/[_]hot-updater/native-builds/$buildId/device.ts +17 -0
- package/src/routes/[_]hot-updater/native-builds/$buildId/device[.]mobileconfig.ts +17 -0
- package/src/routes/[_]hot-updater/native-builds/$buildId/manifest[.]plist.ts +22 -0
- package/src/routes/[_]hot-updater/native-builds/preview-qr.ts +14 -0
- package/src/routes/api/native-builds/$buildId/download.ts +22 -1
- package/.output/public/assets/RolloutPercentageBadge-Cxogpi8F.js +0 -1
- package/.output/public/assets/api-P2g8dCNg.js +0 -1
- package/.output/public/assets/api-keys-DWQC2q6y.js +0 -1
- package/.output/public/assets/insights-BSVGfxSL.js +0 -1
- package/.output/public/assets/insights-NK5B6ReS.js +0 -2
- package/.output/public/assets/insights_.distribution-CJvgwcVZ.js +0 -2
- package/.output/public/assets/insights_.distribution-DblZM0mO.js +0 -1
- package/.output/public/assets/installations-Dv4kWQYz.js +0 -1
- package/.output/public/assets/native-builds-BGgFQTDW.js +0 -2
- package/.output/public/assets/native-builds-BOC71grI.js +0 -1
- package/.output/public/assets/native-builds-CxomzFqe.js +0 -1
- package/.output/public/assets/native-builds_._buildId-DD58_Phd.js +0 -1
- package/.output/public/assets/native-builds_._buildId-DvQDKnUQ.js +0 -2
- package/.output/public/assets/remote-config-gXeH6PBW.js +0 -1
- package/.output/public/assets/routes-BDdBIxYS.js +0 -1
- package/.output/server/_ssr/nativeBuildQr-84cnFQPX.mjs +0 -59
- package/.output/server/_tanstack-start-manifest_v-uhJWytDm.mjs +0 -184
- /package/.output/public/assets/{NotFoundPage-DZ3DxyRA.js → NotFoundPage-fiaucvsO.js} +0 -0
- /package/.output/public/assets/{PlatformIcon-BBWQlWm9.js → PlatformIcon-DCTtCP5t.js} +0 -0
- /package/.output/public/assets/{alert-dialog-BqYScr9y.js → alert-dialog-Z_RNBrFc.js} +0 -0
- /package/.output/public/assets/{badge-DWFcDWho.js → badge-UNnTz4Dl.js} +0 -0
- /package/.output/public/assets/{dialog-CNUPxNxH.js → dialog-C2U9bINi.js} +0 -0
- /package/.output/public/assets/{dist-CPlO6ko9.js → dist-UQUhRoJi.js} +0 -0
- /package/.output/public/assets/{empty-B3Uwdd6k.js → empty-PAp07lsC.js} +0 -0
- /package/.output/public/assets/{field-D-2-mnNh.js → field-DhKRWFG5.js} +0 -0
- /package/.output/public/assets/{history-DqHlgSuV.js → history-DakJoeSM.js} +0 -0
- /package/.output/public/assets/{input-group-D3OUBk4n.js → input-group-BJfBVqeI.js} +0 -0
- /package/.output/public/assets/{key-round-DwNKkHhy.js → key-round-DzBe6DHr.js} +0 -0
- /package/.output/public/assets/{list--NIee1FZ.js → list-B6GeoQ_b.js} +0 -0
- /package/.output/public/assets/{plus-BReVKct-.js → plus-BVhOauU3.js} +0 -0
- /package/.output/public/assets/{refresh-cw-B9HHjLej.js → refresh-cw-C6svDMfM.js} +0 -0
- /package/.output/public/assets/{relativeTime-YQt84dYr.js → relativeTime-BscR0TsX.js} +0 -0
- /package/.output/public/assets/{rotate-cw-Cv2aVbYr.js → rotate-cw-CxFW64IG.js} +0 -0
- /package/.output/public/assets/{search-BCel4Oy6.js → search-bIYGuFCt.js} +0 -0
- /package/.output/public/assets/{smartphone-CMaSy_ir.js → smartphone-Bn5FtEwt.js} +0 -0
- /package/.output/public/assets/{switch-BpdiHL_t.js → switch-DtUu1RCw.js} +0 -0
- /package/.output/public/assets/{table-Bpy3SvSo.js → table-B22H8-RL.js} +0 -0
- /package/.output/public/assets/{tabs-Xmt7tZeG.js → tabs-Fgz3sA51.js} +0 -0
- /package/.output/public/assets/{undo-2-CUX96_BG.js → undo-2-7gOxArtb.js} +0 -0
- /package/.output/public/assets/{uuidv7-zXMtwR9Q.js → uuidv7-BLyD3pAM.js} +0 -0
- /package/.output/public/assets/{valueToPercent-BLwGy_xK.js → valueToPercent-DRLgSP0P.js} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/console",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.0-rc.
|
|
4
|
+
"version": "1.2.0-rc.13",
|
|
5
5
|
"files": [
|
|
6
6
|
".output",
|
|
7
7
|
"lib",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"tw-animate-css": "^1.4.0",
|
|
60
60
|
"uqr": "^0.1.3",
|
|
61
61
|
"verkit": "0.4.0",
|
|
62
|
-
"@hot-updater/bsdiff": "1.2.0-rc.
|
|
63
|
-
"@hot-updater/
|
|
64
|
-
"@hot-updater/
|
|
65
|
-
"@hot-updater/
|
|
62
|
+
"@hot-updater/bsdiff": "1.2.0-rc.13",
|
|
63
|
+
"@hot-updater/protocol": "1.2.0-rc.13",
|
|
64
|
+
"@hot-updater/plugin-core": "1.2.0-rc.13",
|
|
65
|
+
"@hot-updater/server": "1.2.0-rc.13"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@tanstack/devtools-vite": "^0.6.0",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"vite-tsconfig-paths": "^6.1.1",
|
|
88
88
|
"vitest": "4.1.4",
|
|
89
89
|
"web-vitals": "^5.1.0",
|
|
90
|
-
"@hot-updater/cli-tools": "1.2.0-rc.
|
|
91
|
-
"@hot-updater/mock": "1.2.0-rc.
|
|
90
|
+
"@hot-updater/cli-tools": "1.2.0-rc.13",
|
|
91
|
+
"@hot-updater/mock": "1.2.0-rc.13"
|
|
92
92
|
},
|
|
93
93
|
"description": "React Native OTA solution for self-hosted",
|
|
94
94
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Link } from "@tanstack/react-router";
|
|
2
2
|
import { ArrowUpRight, CircleCheck, History } from "lucide-react";
|
|
3
|
+
import { toast } from "sonner";
|
|
3
4
|
|
|
4
5
|
import { TimestampDisplay } from "@/components/TimestampDisplay";
|
|
5
6
|
import { Badge } from "@/components/ui/badge";
|
|
7
|
+
import { Button } from "@/components/ui/button";
|
|
6
8
|
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
|
9
|
+
import { useMarkNativeBuildMutation } from "@/lib/api";
|
|
7
10
|
import {
|
|
8
11
|
nativeBuildArtifacts,
|
|
9
12
|
nativeBuildTarget,
|
|
@@ -30,44 +33,90 @@ function Row({
|
|
|
30
33
|
);
|
|
31
34
|
}
|
|
32
35
|
|
|
33
|
-
/**
|
|
36
|
+
/** Marks or clears the build where the card says what the mark does. */
|
|
37
|
+
function StoreBuildAction({ detail }: { readonly detail: NativeBuildDetail }) {
|
|
38
|
+
const { build, channel } = detail;
|
|
39
|
+
const mark = useMarkNativeBuildMutation();
|
|
40
|
+
// No store sells a sandbox channel's build, so core refuses the mark.
|
|
41
|
+
if (channel.startsWith("sandbox-")) return null;
|
|
42
|
+
const storeBuild = build.store_build !== true;
|
|
43
|
+
return (
|
|
44
|
+
<Button
|
|
45
|
+
className="min-h-11 shrink-0 sm:min-h-8"
|
|
46
|
+
disabled={mark.isPending}
|
|
47
|
+
onClick={() =>
|
|
48
|
+
mark.mutate(
|
|
49
|
+
{ id: build.id, storeBuild },
|
|
50
|
+
{
|
|
51
|
+
onSuccess: () => {
|
|
52
|
+
toast.success(
|
|
53
|
+
storeBuild ? "Marked as the store build" : "Mark cleared",
|
|
54
|
+
);
|
|
55
|
+
},
|
|
56
|
+
onError: (error) => {
|
|
57
|
+
toast.error("Could not change the mark", {
|
|
58
|
+
description: error.message,
|
|
59
|
+
});
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
size="sm"
|
|
65
|
+
type="button"
|
|
66
|
+
variant="outline"
|
|
67
|
+
>
|
|
68
|
+
{storeBuild ? "Mark as store build" : "Clear mark"}
|
|
69
|
+
</Button>
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Which build new deploys patch from: this one, as the store build or as the
|
|
75
|
+
* newest with no mark, or another, which it links to.
|
|
76
|
+
*/
|
|
34
77
|
function BaselineStatus({ detail }: { readonly detail: NativeBuildDetail }) {
|
|
35
|
-
const { build, newestInScope } = detail;
|
|
36
|
-
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
78
|
+
const { build, newestInScope, storeBuildInScope } = detail;
|
|
79
|
+
const base = storeBuildInScope ?? newestInScope;
|
|
80
|
+
if (base === null) return null;
|
|
81
|
+
const isBase = base.id === build.id;
|
|
82
|
+
const Icon = isBase ? CircleCheck : History;
|
|
83
|
+
return (
|
|
84
|
+
<div className="flex flex-col gap-3 rounded-md border bg-muted/40 p-3 text-xs sm:flex-row sm:items-center sm:justify-between">
|
|
85
|
+
<div className="flex items-start gap-2">
|
|
86
|
+
<Icon
|
|
41
87
|
aria-hidden="true"
|
|
42
88
|
className="mt-0.5 size-3.5 shrink-0 text-muted-foreground"
|
|
43
89
|
/>
|
|
44
|
-
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
90
|
+
{storeBuildInScope?.id === build.id ? (
|
|
91
|
+
<p>
|
|
92
|
+
<span className="font-medium">Store build.</span> New deploys to
|
|
93
|
+
this scope patch from this build.
|
|
94
|
+
</p>
|
|
95
|
+
) : isBase ? (
|
|
96
|
+
<p>
|
|
97
|
+
<span className="font-medium">Current baseline.</span> The newest
|
|
98
|
+
build, and no store build is marked. New deploys to this scope patch
|
|
99
|
+
from this build.
|
|
100
|
+
</p>
|
|
101
|
+
) : (
|
|
102
|
+
<p>
|
|
103
|
+
<span className="font-medium">Not the base.</span> New deploys patch
|
|
104
|
+
from{" "}
|
|
105
|
+
<Link
|
|
106
|
+
className="inline-flex items-center gap-0.5 font-medium underline underline-offset-4"
|
|
107
|
+
params={{ buildId: base.id }}
|
|
108
|
+
to="/native-builds/$buildId"
|
|
109
|
+
>
|
|
110
|
+
{platformLabel(base.platform)}{" "}
|
|
111
|
+
{nativeBuildArtifacts[base.artifact_kind].label} ·{" "}
|
|
112
|
+
<TimestampDisplay uuid={base.id} />
|
|
113
|
+
<ArrowUpRight aria-hidden="true" className="size-3" />
|
|
114
|
+
</Link>
|
|
115
|
+
, so this one gets no new patches.
|
|
116
|
+
</p>
|
|
117
|
+
)}
|
|
48
118
|
</div>
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
return (
|
|
52
|
-
<div className="flex items-start gap-2 rounded-md border bg-muted/40 p-3 text-xs">
|
|
53
|
-
<History
|
|
54
|
-
aria-hidden="true"
|
|
55
|
-
className="mt-0.5 size-3.5 shrink-0 text-muted-foreground"
|
|
56
|
-
/>
|
|
57
|
-
<p>
|
|
58
|
-
<span className="font-medium">Superseded</span> by{" "}
|
|
59
|
-
<Link
|
|
60
|
-
className="inline-flex items-center gap-0.5 font-medium underline underline-offset-4"
|
|
61
|
-
params={{ buildId: newestInScope.id }}
|
|
62
|
-
to="/native-builds/$buildId"
|
|
63
|
-
>
|
|
64
|
-
{platformLabel(newestInScope.platform)}{" "}
|
|
65
|
-
{nativeBuildArtifacts[newestInScope.artifact_kind].label} ·{" "}
|
|
66
|
-
<TimestampDisplay uuid={newestInScope.id} />
|
|
67
|
-
<ArrowUpRight aria-hidden="true" className="size-3" />
|
|
68
|
-
</Link>
|
|
69
|
-
. New deploys patch from that build, so this one gets no new patches.
|
|
70
|
-
</p>
|
|
119
|
+
<StoreBuildAction detail={detail} />
|
|
71
120
|
</div>
|
|
72
121
|
);
|
|
73
122
|
}
|
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
import type { NativeBuildRow } from "@hot-updater/plugin-core";
|
|
2
|
-
import
|
|
2
|
+
import dayjs from "dayjs";
|
|
3
|
+
import { AlertTriangle, Download, ExternalLink } from "lucide-react";
|
|
3
4
|
|
|
4
5
|
import { QrCode } from "@/components/QrCode";
|
|
5
6
|
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
|
6
7
|
import { buttonVariants } from "@/components/ui/button";
|
|
7
8
|
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
|
8
9
|
import { Skeleton } from "@/components/ui/skeleton";
|
|
9
|
-
import { useNativeBuildDownloadUrlQuery } from "@/lib/api";
|
|
10
10
|
import {
|
|
11
|
-
|
|
11
|
+
useNativeBuildDownloadLinkQuery,
|
|
12
|
+
useNativeBuildDownloadUrlQuery,
|
|
13
|
+
} from "@/lib/api";
|
|
14
|
+
import {
|
|
12
15
|
nativeBuildDownloadPath,
|
|
13
16
|
nativeBuildFileName,
|
|
14
|
-
|
|
17
|
+
nativeBuildInstallCommand,
|
|
18
|
+
nativeBuildSignedDownloadUrl,
|
|
15
19
|
} from "@/lib/native-builds";
|
|
20
|
+
import type { NativeBuildDownloadLinkResult } from "@/lib/server/nativeBuildDownloadLink";
|
|
16
21
|
|
|
17
22
|
import { CopyableText } from "./CopyableText";
|
|
18
|
-
import {
|
|
23
|
+
import { IosInstall, useIosDevice } from "./IosInstall";
|
|
24
|
+
import { isSubmitted, type Submitted } from "./StoreSubmission";
|
|
19
25
|
|
|
20
26
|
/**
|
|
21
27
|
* What an artifact installs on, where the file alone isn't enough: the card
|
|
@@ -39,11 +45,71 @@ const QR_CAPTIONS: Record<NativeBuildRow["artifact_kind"], string> = {
|
|
|
39
45
|
};
|
|
40
46
|
|
|
41
47
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
48
|
+
* An IPA's QR code holds this page rather than a file: the iPhone that scans it
|
|
49
|
+
* checks whether the IPA lists it before anything downloads, and installs here.
|
|
50
|
+
*/
|
|
51
|
+
function ScannablePage() {
|
|
52
|
+
const { origin, pathname } = window.location;
|
|
53
|
+
return (
|
|
54
|
+
<div className="flex flex-col items-center gap-2">
|
|
55
|
+
<QrCode
|
|
56
|
+
className="size-48"
|
|
57
|
+
label="Open this page on an iPhone"
|
|
58
|
+
value={`${origin}${pathname}`}
|
|
59
|
+
/>
|
|
60
|
+
<p className="max-w-56 text-center text-xs text-muted-foreground">
|
|
61
|
+
Scan with an iPhone to install this build from here. The phone signs in
|
|
62
|
+
to the Console first.
|
|
63
|
+
</p>
|
|
64
|
+
</div>
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** A QR code of the build's download URL, with what scanning it gets. */
|
|
69
|
+
function ScannableUrl({
|
|
70
|
+
build,
|
|
71
|
+
url,
|
|
72
|
+
note,
|
|
73
|
+
}: {
|
|
74
|
+
readonly build: NativeBuildRow;
|
|
75
|
+
readonly url: string;
|
|
76
|
+
readonly note?: string;
|
|
77
|
+
}) {
|
|
78
|
+
return (
|
|
79
|
+
<div className="flex flex-col items-center gap-2">
|
|
80
|
+
<QrCode
|
|
81
|
+
className="size-48"
|
|
82
|
+
label={`Download ${nativeBuildFileName(build)}`}
|
|
83
|
+
value={url}
|
|
84
|
+
/>
|
|
85
|
+
<p className="max-w-56 text-center text-xs text-muted-foreground">
|
|
86
|
+
{QR_CAPTIONS[build.artifact_kind]}
|
|
87
|
+
</p>
|
|
88
|
+
{note ? (
|
|
89
|
+
<p className="max-w-56 text-center text-xs text-muted-foreground">
|
|
90
|
+
{note}
|
|
91
|
+
</p>
|
|
92
|
+
) : null}
|
|
93
|
+
</div>
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function QrProblem({ message }: { readonly message: string }) {
|
|
98
|
+
return (
|
|
99
|
+
<Alert variant="destructive">
|
|
100
|
+
<AlertTriangle />
|
|
101
|
+
<AlertTitle>The download link couldn't be created</AlertTitle>
|
|
102
|
+
<AlertDescription>{message}</AlertDescription>
|
|
103
|
+
</Alert>
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* The QR code when the Console can't sign a link: the storage's URL, which a
|
|
109
|
+
* phone opens without the Console's sign-in, but only until it expires.
|
|
44
110
|
*/
|
|
45
|
-
function
|
|
46
|
-
const downloadUrl = useNativeBuildDownloadUrlQuery(build.id
|
|
111
|
+
function StorageQrCode({ build }: { readonly build: NativeBuildRow }) {
|
|
112
|
+
const downloadUrl = useNativeBuildDownloadUrlQuery(build.id);
|
|
47
113
|
const url = downloadUrl.data?.url;
|
|
48
114
|
|
|
49
115
|
// A storage without download URLs serves the build only through the
|
|
@@ -61,30 +127,19 @@ function DownloadQrCode({ build }: { readonly build: NativeBuildRow }) {
|
|
|
61
127
|
</div>
|
|
62
128
|
);
|
|
63
129
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
) : (
|
|
78
|
-
<QrCode
|
|
79
|
-
className="size-48"
|
|
80
|
-
label={`Download ${nativeBuildFileName(build)}`}
|
|
81
|
-
value={url}
|
|
82
|
-
/>
|
|
83
|
-
)}
|
|
84
|
-
<p className="max-w-56 text-center text-xs text-muted-foreground">
|
|
85
|
-
{QR_CAPTIONS[build.artifact_kind]}
|
|
86
|
-
</p>
|
|
87
|
-
</div>
|
|
130
|
+
if (url !== undefined) {
|
|
131
|
+
return (
|
|
132
|
+
<ScannableUrl
|
|
133
|
+
build={build}
|
|
134
|
+
note="This link expires. If the download fails, reload this page."
|
|
135
|
+
url={url}
|
|
136
|
+
/>
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
return downloadUrl.isError ? (
|
|
140
|
+
<QrProblem message={downloadUrl.error.message} />
|
|
141
|
+
) : (
|
|
142
|
+
<Skeleton className="size-48" />
|
|
88
143
|
);
|
|
89
144
|
}
|
|
90
145
|
|
|
@@ -97,6 +152,69 @@ function SubmittedVersion({ build }: { readonly build: NativeBuildRow }) {
|
|
|
97
152
|
);
|
|
98
153
|
}
|
|
99
154
|
|
|
155
|
+
/**
|
|
156
|
+
* Where a store's testers and its people get a build: a tester's own link needs
|
|
157
|
+
* the app's ID in the store, which only the pull request's comment has.
|
|
158
|
+
*/
|
|
159
|
+
const STORE_CONSOLES = {
|
|
160
|
+
testflight: {
|
|
161
|
+
name: "App Store Connect",
|
|
162
|
+
url: "https://appstoreconnect.apple.com/apps",
|
|
163
|
+
},
|
|
164
|
+
"play-internal": {
|
|
165
|
+
name: "Play Console",
|
|
166
|
+
url: "https://play.google.com/console",
|
|
167
|
+
},
|
|
168
|
+
} as const;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* A build a store took installs from the store, so the card leads with it, and
|
|
172
|
+
* the file stays for keeping, with no QR code or signed link to ask for.
|
|
173
|
+
*/
|
|
174
|
+
function StoreInstallCard({ build }: { readonly build: Submitted }) {
|
|
175
|
+
const store = STORE_CONSOLES[build.submitted_to];
|
|
176
|
+
return (
|
|
177
|
+
<Card className="overflow-hidden shadow-sm">
|
|
178
|
+
<CardHeader className="border-b px-4 py-3">
|
|
179
|
+
<CardTitle className="text-sm">
|
|
180
|
+
<h2>Install</h2>
|
|
181
|
+
</CardTitle>
|
|
182
|
+
</CardHeader>
|
|
183
|
+
<CardContent className="flex min-w-0 flex-col gap-4 p-4 sm:p-6">
|
|
184
|
+
<InstallSteps build={build} />
|
|
185
|
+
<div className="flex flex-col gap-2 sm:flex-row sm:flex-wrap">
|
|
186
|
+
<a
|
|
187
|
+
className={buttonVariants({
|
|
188
|
+
className:
|
|
189
|
+
"h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit",
|
|
190
|
+
})}
|
|
191
|
+
href={store.url}
|
|
192
|
+
rel="noreferrer"
|
|
193
|
+
target="_blank"
|
|
194
|
+
>
|
|
195
|
+
<ExternalLink data-icon="inline-start" />
|
|
196
|
+
Open {store.name}
|
|
197
|
+
</a>
|
|
198
|
+
<a
|
|
199
|
+
className={buttonVariants({
|
|
200
|
+
className:
|
|
201
|
+
"h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit",
|
|
202
|
+
variant: "outline",
|
|
203
|
+
})}
|
|
204
|
+
download
|
|
205
|
+
href={nativeBuildDownloadPath(build.id)}
|
|
206
|
+
>
|
|
207
|
+
<Download data-icon="inline-start" />
|
|
208
|
+
<span className="text-left [overflow-wrap:anywhere]">
|
|
209
|
+
Download {nativeBuildFileName(build)}
|
|
210
|
+
</span>
|
|
211
|
+
</a>
|
|
212
|
+
</div>
|
|
213
|
+
</CardContent>
|
|
214
|
+
</Card>
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
|
|
100
218
|
/**
|
|
101
219
|
* How else the artifact installs, beside its QR code's caption and its
|
|
102
220
|
* download: none of it repeats the caption.
|
|
@@ -107,11 +225,20 @@ function InstallSteps({ build }: { readonly build: NativeBuildRow }) {
|
|
|
107
225
|
return (
|
|
108
226
|
<div className="flex min-w-0 flex-col gap-2">
|
|
109
227
|
<p className="text-xs text-muted-foreground">
|
|
110
|
-
|
|
228
|
+
Your browser needs the "Install unknown apps" permission.
|
|
229
|
+
</p>
|
|
230
|
+
<p className="text-xs text-muted-foreground">
|
|
231
|
+
If this package is already installed with another signing key, such
|
|
232
|
+
as a Play copy, the install fails. Uninstall that copy first, or
|
|
233
|
+
build with sandbox: true, whose .sandbox ID installs beside it.
|
|
234
|
+
</p>
|
|
235
|
+
<p className="text-xs text-muted-foreground">
|
|
236
|
+
On an emulator or a phone over USB, install and open it from your
|
|
237
|
+
project:
|
|
111
238
|
</p>
|
|
112
239
|
<CopyableText
|
|
113
240
|
label="the install command"
|
|
114
|
-
value={
|
|
241
|
+
value={nativeBuildInstallCommand(build)}
|
|
115
242
|
/>
|
|
116
243
|
</div>
|
|
117
244
|
);
|
|
@@ -119,11 +246,12 @@ function InstallSteps({ build }: { readonly build: NativeBuildRow }) {
|
|
|
119
246
|
return (
|
|
120
247
|
<div className="flex min-w-0 flex-col gap-2">
|
|
121
248
|
<p className="text-xs text-muted-foreground">
|
|
122
|
-
It runs only in the iOS Simulator.
|
|
249
|
+
It runs only in the iOS Simulator. In your project, install and open
|
|
250
|
+
it on the booted one:
|
|
123
251
|
</p>
|
|
124
252
|
<CopyableText
|
|
125
253
|
label="the install command"
|
|
126
|
-
value={
|
|
254
|
+
value={nativeBuildInstallCommand(build)}
|
|
127
255
|
/>
|
|
128
256
|
</div>
|
|
129
257
|
);
|
|
@@ -149,12 +277,15 @@ function InstallSteps({ build }: { readonly build: NativeBuildRow }) {
|
|
|
149
277
|
case "ipa":
|
|
150
278
|
return isSubmitted(build) ? (
|
|
151
279
|
<p className="text-xs text-muted-foreground">
|
|
152
|
-
On TestFlight as <SubmittedVersion build={build} />.
|
|
280
|
+
On TestFlight as <SubmittedVersion build={build} />. Internal testers
|
|
281
|
+
install it from the TestFlight app once App Store Connect has
|
|
282
|
+
processed it, and a preview's pull request comment shows that state.
|
|
153
283
|
</p>
|
|
154
284
|
) : (
|
|
155
285
|
<div className="flex min-w-0 flex-col gap-2">
|
|
156
286
|
<p className="text-xs text-muted-foreground">
|
|
157
|
-
Over USB, Xcode or Apple Configurator installs it. For testers
|
|
287
|
+
Over USB, Xcode or Apple Configurator installs it. For testers
|
|
288
|
+
without a registered device:
|
|
158
289
|
</p>
|
|
159
290
|
<CopyableText
|
|
160
291
|
label="the TestFlight command"
|
|
@@ -166,13 +297,63 @@ function InstallSteps({ build }: { readonly build: NativeBuildRow }) {
|
|
|
166
297
|
}
|
|
167
298
|
|
|
168
299
|
/**
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
|
|
172
|
-
|
|
300
|
+
* The signed link to copy, which a script or a teammate uses without signing
|
|
301
|
+
* in. A local Console has none, and says nothing about it on every build.
|
|
302
|
+
*/
|
|
303
|
+
function SignedLink({
|
|
304
|
+
link,
|
|
305
|
+
url,
|
|
306
|
+
}: {
|
|
307
|
+
readonly link: NativeBuildDownloadLinkResult | undefined;
|
|
308
|
+
readonly url: string | null;
|
|
309
|
+
}) {
|
|
310
|
+
if (link?.status === "no-secret") {
|
|
311
|
+
return (
|
|
312
|
+
<p className="text-xs text-muted-foreground" role="status">
|
|
313
|
+
Set {link.secretName} on the Console to create links.
|
|
314
|
+
</p>
|
|
315
|
+
);
|
|
316
|
+
}
|
|
317
|
+
if (link?.status !== "issued" || url === null) return null;
|
|
318
|
+
return (
|
|
319
|
+
<div className="flex min-w-0 flex-col gap-2">
|
|
320
|
+
<CopyableText label="the download link" value={url} />
|
|
321
|
+
<p className="text-xs text-muted-foreground">
|
|
322
|
+
Anyone with this link can download this build until{" "}
|
|
323
|
+
{dayjs(link.expiresAt).format("YYYY-MM-DD")}.
|
|
324
|
+
</p>
|
|
325
|
+
</div>
|
|
326
|
+
);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Installs one native build: an IPA or AAB a store took, from the store; an IPA
|
|
331
|
+
* on the iPhone that opens this page, whose QR code on any other screen holds
|
|
332
|
+
* this page; every other artifact by a QR code of its signed link, which a phone
|
|
333
|
+
* without a session scans, and by download here or the link itself; an APK or a
|
|
334
|
+
* simulator app also with `native-build install`, and an IPA's or an AAB's
|
|
335
|
+
* testers through its store. Where the Console can't sign, the QR code holds the
|
|
336
|
+
* storage's URL and the download asks for the session.
|
|
173
337
|
*/
|
|
174
338
|
export function InstallCard({ build }: { readonly build: NativeBuildRow }) {
|
|
339
|
+
return isSubmitted(build) &&
|
|
340
|
+
(build.artifact_kind === "ipa" || build.artifact_kind === "aab") ? (
|
|
341
|
+
<StoreInstallCard build={build} />
|
|
342
|
+
) : (
|
|
343
|
+
<FileInstallCard build={build} />
|
|
344
|
+
);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
function FileInstallCard({ build }: { readonly build: NativeBuildRow }) {
|
|
175
348
|
const fileName = nativeBuildFileName(build);
|
|
349
|
+
const link = useNativeBuildDownloadLinkQuery(build.id);
|
|
350
|
+
const signedUrl =
|
|
351
|
+
link.data?.status === "issued"
|
|
352
|
+
? nativeBuildSignedDownloadUrl(window.location, build.id, link.data.token)
|
|
353
|
+
: null;
|
|
354
|
+
const device = useIosDevice();
|
|
355
|
+
const ipa = build.artifact_kind === "ipa";
|
|
356
|
+
const onPhone = ipa && device?.ios === true;
|
|
176
357
|
return (
|
|
177
358
|
<Card className="overflow-hidden shadow-sm">
|
|
178
359
|
<CardHeader className="border-b px-4 py-3">
|
|
@@ -180,8 +361,26 @@ export function InstallCard({ build }: { readonly build: NativeBuildRow }) {
|
|
|
180
361
|
<h2>Install</h2>
|
|
181
362
|
</CardTitle>
|
|
182
363
|
</CardHeader>
|
|
183
|
-
<CardContent
|
|
184
|
-
|
|
364
|
+
<CardContent
|
|
365
|
+
className={
|
|
366
|
+
onPhone
|
|
367
|
+
? "flex min-w-0 flex-col gap-6 p-4 sm:p-6"
|
|
368
|
+
: "grid gap-6 p-4 sm:grid-cols-[12rem_minmax(0,1fr)] sm:p-6"
|
|
369
|
+
}
|
|
370
|
+
>
|
|
371
|
+
{onPhone ? (
|
|
372
|
+
<IosInstall build={build} udid={device.udid} />
|
|
373
|
+
) : ipa && signedUrl !== null ? (
|
|
374
|
+
<ScannablePage />
|
|
375
|
+
) : signedUrl !== null ? (
|
|
376
|
+
<ScannableUrl build={build} url={signedUrl} />
|
|
377
|
+
) : link.data !== undefined ? (
|
|
378
|
+
<StorageQrCode build={build} />
|
|
379
|
+
) : link.isError ? (
|
|
380
|
+
<QrProblem message={link.error.message} />
|
|
381
|
+
) : (
|
|
382
|
+
<Skeleton className="size-48" />
|
|
383
|
+
)}
|
|
185
384
|
<div className="flex min-w-0 flex-col gap-4">
|
|
186
385
|
<InstallSteps build={build} />
|
|
187
386
|
<a
|
|
@@ -191,13 +390,14 @@ export function InstallCard({ build }: { readonly build: NativeBuildRow }) {
|
|
|
191
390
|
variant: "outline",
|
|
192
391
|
})}
|
|
193
392
|
download
|
|
194
|
-
href={nativeBuildDownloadPath(build.id)}
|
|
393
|
+
href={signedUrl ?? nativeBuildDownloadPath(build.id)}
|
|
195
394
|
>
|
|
196
395
|
<Download data-icon="inline-start" />
|
|
197
396
|
<span className="text-left [overflow-wrap:anywhere]">
|
|
198
397
|
Download {fileName}
|
|
199
398
|
</span>
|
|
200
399
|
</a>
|
|
400
|
+
<SignedLink link={link.data} url={signedUrl} />
|
|
201
401
|
</div>
|
|
202
402
|
</CardContent>
|
|
203
403
|
</Card>
|