Skip to content

Commit 38ce1e1

Browse files
authored
chore: Add EngineVersion key to plugin descriptor only for marketplace version (#812)
* Add `EngineVersion` key to plugin descriptor only for marketplace version * Update pack.ps1
1 parent f9ea3b9 commit 38ce1e1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

scripts/packaging/pack.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,14 @@ function packFiles([string] $publishingPlatform)
5757
$packageName = "sentry-unreal-$version-engine$engineVersion-$publishingPlatform.zip"
5858
Write-Host "Creating a release package for Unreal $engineVersion as $packageName"
5959

60-
$newPluginSpec = @($pluginSpec[0..0]) + @(' "EngineVersion" : "' + $engineVersion + '.0",') + @($pluginSpec[1..($pluginSpec.count)])
60+
$newPluginSpec = $pluginSpec
61+
62+
# Add EngineVersion key only for marketplace package to avoid warnings in licensee versions of Unreal
63+
# where github package is used (https://github.com/getsentry/sentry-unreal/issues/811)
64+
if ($publishingPlatform -eq "marketplace")
65+
{
66+
$newPluginSpec = @($pluginSpec[0..0]) + @(' "EngineVersion" : "' + $engineVersion + '.0",') + @($pluginSpec[1..($pluginSpec.count)])
67+
}
6168

6269
# Handle platform name difference for UE 4.27
6370
if ($engineVersion -eq "4.27")
@@ -94,4 +101,4 @@ function packFiles([string] $publishingPlatform)
94101
}
95102

96103
packFiles("github")
97-
packFiles("marketplace")
104+
packFiles("marketplace")

0 commit comments

Comments
 (0)