Skip to content

Commit f64413f

Browse files
authored
chore: fix packaging script (#105)
1 parent e9a64f1 commit f64413f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

package.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ const supportedVersions = ['5.0', '5.1', '5.2', '5.3', '5.4', '5.5'];
44

55
const pluginJson = JSON.parse(await Deno.readTextFile('./BugSplat.uplugin'));
66

7+
// Remove downloaded symbol-upload-* files before packaging
8+
const symUploaderDir = './Source/ThirdParty/SymUploader';
9+
for await (const entry of Deno.readDir(symUploaderDir)) {
10+
if (entry.isFile && entry.name.startsWith('symbol-upload-')) {
11+
await Deno.remove(`${symUploaderDir}/${entry.name}`);
12+
console.log(`Deleted ${entry.name}`);
13+
}
14+
}
15+
16+
// Update the plugin version for each supported Unreal Engine version
717
for (const unrealVersion of supportedVersions) {
818
const pluginVersion = pluginJson.VersionName;
919
pluginJson.EngineVersion = `${unrealVersion}.0`;
@@ -14,6 +24,7 @@ for (const unrealVersion of supportedVersions) {
1424
'Source',
1525
'Resources',
1626
'README.md',
27+
'LICENSE.md',
1728
'Content',
1829
'Config',
1930
'BugSplat.uplugin',

0 commit comments

Comments
 (0)