diff --git a/src/servers/app-store/assets.ts b/src/servers/app-store/assets.ts index 4ef1a281..43042d9b 100644 --- a/src/servers/app-store/assets.ts +++ b/src/servers/app-store/assets.ts @@ -32,6 +32,14 @@ export const assetPublicDir = (sidecarId: string): string => join(process.cwd(), /** The URL a manifest should use for a shipped icon. */ export const iconUrl = (sidecarId: string): string => `/plugins/${sidecarId}/icon.png`; +/** + * The URL for one SCREEN's own artwork, in a plugin that has more than one. + * + * Same published directory and the same copy — `publishAssets` takes the whole `assets/` folder, so + * `assets/calendar.png` needs no separate step to reach the browser. + */ +export const screenArtUrl = (sidecarId: string, segment: string): string => `/plugins/${sidecarId}/${segment}.png`; + /** The URL for a shipped splash. Published by the same copy — `publishAssets` takes the whole dir. */ export const splashUrl = (sidecarId: string): string => `/plugins/${sidecarId}/splash.png`;