diff --git a/src/dev/build/cli.ts b/src/dev/build/cli.ts index 9a967e1cc85c9..e9acd8245af02 100644 --- a/src/dev/build/cli.ts +++ b/src/dev/build/cli.ts @@ -43,6 +43,7 @@ if (showHelp) { --docker-cross-compile {dim Produce arm64 and amd64 Docker images} --docker-contexts {dim Only build the Docker build contexts} --skip-canvas-shareable-runtime {dim Don't build the Canvas shareable runtime} + --skip-cdn-assets {dim Don't build CDN assets} --skip-docker-ubi {dim Don't build the docker ubi image} --skip-docker-ubuntu {dim Don't build the docker ubuntu image} --skip-docker-fips {dim Don't build the docker fips image} diff --git a/src/dev/build/tasks/create_cdn_assets_task.ts b/src/dev/build/tasks/create_cdn_assets_task.ts index a9ec8beb0955c..2555795d50d80 100644 --- a/src/dev/build/tasks/create_cdn_assets_task.ts +++ b/src/dev/build/tasks/create_cdn_assets_task.ts @@ -38,16 +38,14 @@ export const CreateCdnAssets: Task = { const manifest = Jsonc.parse(readFileSync(path, 'utf8')) as any; if (manifest?.plugin?.id) { const pluginRoot = resolve(dirname(path)); - + // packages/core/apps/core-apps-server-internal/src/core_app.ts + const assetsSource = resolve(pluginRoot, 'public', 'assets'); + const assetsDest = resolve(assets, buildSha, 'plugins', manifest.plugin.id, 'assets'); try { - // packages/core/plugins/core-plugins-server-internal/src/plugins_service.ts - const assetsSource = resolve(pluginRoot, 'assets'); - const assetsDest = resolve('plugins', manifest.plugin.id, 'assets'); await access(assetsSource); await mkdirp(assetsDest); await copyAll(assetsSource, assetsDest); } catch (e) { - // assets are optional if (!(e.code === 'ENOENT' && e.syscall === 'access')) throw e; }