-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.ts
27 lines (20 loc) · 847 Bytes
/
package.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { compress } from "https://deno.land/x/[email protected]/mod.ts";
const supportedVersions = ['5.0', '5.1', '5.2', '5.3', '5.4'];
const pluginJson = JSON.parse(await Deno.readTextFile('./BugSplat.uplugin'));
for (const unrealVersion of supportedVersions) {
const pluginVersion = pluginJson.VersionName;
pluginJson.EngineVersion = `${unrealVersion}.0`;
await Deno.writeTextFile('./BugSplat.uplugin', JSON.stringify(pluginJson, null, 4));
const zipName = `bugsplat-unreal-${pluginVersion}-unreal-${unrealVersion}.zip`;
const zipEntries = [
'Source',
'Resources',
'README.md',
'Content',
'Config',
'BugSplat.uplugin',
];
console.log(`About to create release package for Unreal Engine ${unrealVersion}...`);
await compress(zipEntries, zipName);
console.log(`Created ${zipName} successfully!`);
}