Skip to content

Commit a64503a

Browse files
committed
copy meta.json on source exports
1 parent a8745c5 commit a64503a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Source/Heavy/DPFExporter.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ class DPFExporter final : public ExporterBase {
205205
metaJson->setProperty("dpf", metaDPF);
206206
metaJson->setProperty("nosimd", nosimd);
207207

208-
args.add("-m" + createMetaJson(metaJson));
208+
auto metaJsonFile = createMetaJson(metaJson);
209+
args.add("-m" + metaJsonFile);
209210

210211
args.add("-v");
211212
args.add("-gdpf");
@@ -241,6 +242,11 @@ class DPFExporter final : public ExporterBase {
241242
DPFGui.copyDirectoryTo(outputFile.getChildFile("dpf-widgets"));
242243
}
243244

245+
if (exportType == 3 || exportType == 4) {
246+
auto metaFile = File(metaJsonFile);
247+
metaFile.copyFileTo(outputFile.getChildFile("meta.json"));
248+
}
249+
244250
// Delay to get correct exit code
245251
Time::waitForMillisecondCounter(Time::getMillisecondCounter() + 300);
246252

0 commit comments

Comments
 (0)