Skip to content

Commit b194b50

Browse files
committed
fix: copy license from root instead of test project
1 parent 1db8c81 commit b194b50

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

automation/utils/src/steps.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export async function addWidgetsToMpk({ config }: ModuleStepParams): Promise<voi
189189
console.info(`Add file entries to package.xml`);
190190
await addFilesToPackageXml(packageXml, packageFilePaths, "modelerProject");
191191
console.log(`Copying License.txt...`);
192-
cp(join(config.output.dirs.themesource, "LICENSE"), join(target, "License.txt"));
192+
cp(join(config.paths.package, "LICENSE"), join(target, "License.txt"));
193193
rm(mpk);
194194

195195
console.info("Create module zip archive");
@@ -244,6 +244,15 @@ export async function moveModuleToDist({ info, config }: ModuleStepParams): Prom
244244
mkdir("-p", join(paths.dist, info.version.format()));
245245
// Can't use mv because of https://github.com/shelljs/shelljs/issues/878
246246
cp(output.files.modulePackage, output.files.mpk);
247+
248+
// Prepare OSS clearance folder structure
249+
const ossClearanceFolder = join(paths.dist, "SBOM_GENERATOR", `${info.mxpackage.name} ${info.version.format()}`);
250+
mkdir("-p", ossClearanceFolder);
251+
252+
// Copy module package to OSS clearance folder
253+
console.info(`Copying module package to OSS clearance folder: ${ossClearanceFolder}`);
254+
cp(output.files.modulePackage, join(ossClearanceFolder, `${info.mxpackage.name} ${info.version.format()}.mpk`));
255+
247256
rm(output.files.modulePackage);
248257
}
249258

0 commit comments

Comments
 (0)