@orbit-work/oem-dev-host 0.1.0 → 0.1.2

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/compiler.mjs +11 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbit-work/oem-dev-host",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Live OEM bridge for full Desktop, isolated-profile sandbox, and Slot workbench modes.",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -19,7 +19,7 @@
19
19
  "src/server.mjs"
20
20
  ],
21
21
  "dependencies": {
22
- "@orbit-work/oem-sdk": "0.1.0",
22
+ "@orbit-work/oem-sdk": "0.1.1",
23
23
  "@orbit-work/ui": "0.1.2",
24
24
  "@vitejs/plugin-react": "^4.3.4",
25
25
  "react": "^19.0.0",
package/src/compiler.mjs CHANGED
@@ -132,6 +132,16 @@ export async function compileOemDevelopmentProject(projectRoot, { expectedIdenti
132
132
  )
133
133
  const logoFile = path.resolve(root, audit.manifest.assets.logo)
134
134
  const logo = dataUrl(logoFile, await readFile(logoFile))
135
+ // Native-brand surfaces (Dock, window icon, tray) read the live snapshot too:
136
+ // the compiled dev host has no embedded manifest, so these travel alongside
137
+ // the renderer logo as data URLs.
138
+ const appIconFile = path.resolve(root, audit.manifest.assets.appIcon)
139
+ const appIcon = dataUrl(appIconFile, await readFile(appIconFile))
140
+ let tray = null
141
+ if (audit.manifest.assets.tray) {
142
+ const trayFile = path.resolve(root, audit.manifest.assets.tray)
143
+ tray = dataUrl(trayFile, await readFile(trayFile))
144
+ }
135
145
  let javascript = ""
136
146
  let css = ""
137
147
  if (audit.manifest.entry) {
@@ -164,7 +174,7 @@ export async function compileOemDevelopmentProject(projectRoot, { expectedIdenti
164
174
  }
165
175
  return {
166
176
  identity,
167
- snapshot: { manifest: audit.manifest, locales, logo, development },
177
+ snapshot: { manifest: audit.manifest, locales, logo, appIcon, tray, development },
168
178
  javascript,
169
179
  css,
170
180
  }