Skip to content

Commit e65acd5

Browse files
authored
chore: Remove separate marketplace package version (#1030)
* Remove separate marketplace package * Update comment * Fix function call * Fix function call * Remove explicit gradle plugin versions from Android UPL * Remove breakpad * Update WindowsSentrySubsystem.cpp
1 parent 8e9e7ad commit e65acd5

File tree

15 files changed

+62
-584
lines changed

15 files changed

+62
-584
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,14 @@ jobs:
4242
runsOn: ubuntu-22.04-arm
4343
container: arm64v8/ubuntu:20.04
4444

45-
windows-crashpad-sdk:
45+
windows-sdk:
4646
uses: ./.github/workflows/sdk-build.yml
4747
with:
48-
target: Win64-Crashpad
49-
runsOn: windows-2022
50-
51-
windows-breakpad-sdk:
52-
uses: ./.github/workflows/sdk-build.yml
53-
with:
54-
target: Win64-Breakpad
48+
target: Win64
5549
runsOn: windows-2022
5650

5751
package-preparation:
58-
needs: [android-sdk, ios-sdk, macos-sdk, linux-sdk, linux-arm64-sdk, windows-crashpad-sdk, windows-breakpad-sdk]
52+
needs: [android-sdk, ios-sdk, macos-sdk, linux-sdk, linux-arm64-sdk, windows-sdk]
5953
name: Package
6054
runs-on: ubuntu-latest
6155
steps:
@@ -95,13 +89,8 @@ jobs:
9589

9690
- uses: actions/download-artifact@v4
9791
with:
98-
name: Win64-Crashpad-sdk
99-
path: plugin-dev/Source/ThirdParty/Win64/Crashpad
100-
101-
- uses: actions/download-artifact@v4
102-
with:
103-
name: Win64-Breakpad-sdk
104-
path: plugin-dev/Source/ThirdParty/Win64/Breakpad
92+
name: Win64-sdk
93+
path: plugin-dev/Source/ThirdParty/Win64
10594

10695
# Workaround for https://github.com/actions/download-artifact/issues/14
10796
# Adding execute permission for crashpad before preparing final packages

.github/workflows/sdk-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
sudo apt-get -y install libc++-16-dev libc++abi-16-dev libstdc++-11-dev zlib1g-dev libcurl4-openssl-dev
7474
7575
- name: Install Windows Dependencies
76-
if: ${{ (inputs.target == 'Win64-Crashpad' || inputs.target == 'Win64-Breakpad') && steps.cache.outputs.cache-hit != 'true' }}
76+
if: ${{ inputs.target == 'Win64' && steps.cache.outputs.cache-hit != 'true' }}
7777
shell: pwsh
7878
run: |
7979
$ProgressPreference = 'SilentlyContinue'

.github/workflows/test-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
- name: Extract package to sample/Plugins
102102
env:
103103
UNREAL_VERSION: ${{ inputs.unreal-version }}
104-
run: unzip sentry-unreal-*-engine"$UNREAL_VERSION"-github.zip -d checkout/sample/Plugins/sentry
104+
run: unzip sentry-unreal-*-engine"$UNREAL_VERSION".zip -d checkout/sample/Plugins/sentry
105105

106106
- name: Set permissions for sample
107107
# sentry-native requires write access to sample project directory in order to initialize itself properly

.github/workflows/test-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
UNREAL_VERSION: ${{ inputs.unreal-version }}
4949
run: |
5050
New-Item -ItemType Directory -Path "$env:WORKSPACE_PATH\checkout\sample\Plugins\sentry" -Force
51-
Expand-Archive -Path "sentry-unreal-*-engine$env:UNREAL_VERSION-github.zip" -DestinationPath "$env:WORKSPACE_PATH\checkout\sample\Plugins\sentry" -Force
51+
Expand-Archive -Path "sentry-unreal-*-engine$env:UNREAL_VERSION.zip" -DestinationPath "$env:WORKSPACE_PATH\checkout\sample\Plugins\sentry" -Force
5252
5353
- name: Run tests
5454
id: run-tests

plugin-dev/Source/Sentry/Private/Windows/WindowsSentrySubsystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void FWindowsSentrySubsystem::ConfigureHandlerPath(sentry_options_t* Options)
6464

6565
if (!FPaths::FileExists(HandlerPath))
6666
{
67-
UE_LOG(LogSentrySdk, Log, TEXT("Crashpad executable couldn't be found so Breakpad will be used instead. Please make sure that the plugin was rebuilt to avoid initialization failure."));
67+
UE_LOG(LogSentrySdk, Error, TEXT("Crashpad executable couldn't be found."));
6868
return;
6969
}
7070

plugin-dev/Source/Sentry/Sentry.Build.cs

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -94,33 +94,23 @@ public Sentry(ReadOnlyTargetRules Target) : base(Target)
9494
{
9595
PrivateIncludePaths.Add(Path.Combine(ModuleDirectory, "Private", "Microsoft"));
9696

97-
bool CrashpadExists = File.Exists(Path.Combine(PlatformThirdPartyPath, "Crashpad", "bin", "crashpad_handler.exe"));
97+
PublicIncludePaths.Add(Path.Combine(PlatformThirdPartyPath, "include"));
9898

99-
string WindowsThirdPartyPath = Path.Combine(PlatformThirdPartyPath, CrashpadExists ? "Crashpad" : "Breakpad");
99+
PublicAdditionalLibraries.Add(Path.Combine(PlatformThirdPartyPath, "lib", "sentry.lib"));
100100

101-
PublicIncludePaths.Add(Path.Combine(WindowsThirdPartyPath, "include"));
102101

103-
PublicAdditionalLibraries.Add(Path.Combine(WindowsThirdPartyPath, "lib", "sentry.lib"));
102+
RuntimeDependencies.Add(Path.Combine(PlatformBinariesPath, "crashpad_handler.exe"), Path.Combine(PlatformThirdPartyPath, "bin", "crashpad_handler.exe"));
103+
RuntimeDependencies.Add(Path.Combine(PlatformBinariesPath, "crashpad_wer.dll"), Path.Combine(PlatformThirdPartyPath, "bin", "crashpad_wer.dll"));
104104

105-
if (CrashpadExists)
106-
{
107-
RuntimeDependencies.Add(Path.Combine(PlatformBinariesPath, "crashpad_handler.exe"), Path.Combine(WindowsThirdPartyPath, "bin", "crashpad_handler.exe"));
108-
RuntimeDependencies.Add(Path.Combine(PlatformBinariesPath, "crashpad_wer.dll"), Path.Combine(WindowsThirdPartyPath, "bin", "crashpad_wer.dll"));
109-
110-
PublicAdditionalLibraries.Add(Path.Combine(WindowsThirdPartyPath, "lib", "crashpad_compat.lib"));
111-
PublicAdditionalLibraries.Add(Path.Combine(WindowsThirdPartyPath, "lib", "crashpad_snapshot.lib"));
112-
PublicAdditionalLibraries.Add(Path.Combine(WindowsThirdPartyPath, "lib", "crashpad_util.lib"));
113-
PublicAdditionalLibraries.Add(Path.Combine(WindowsThirdPartyPath, "lib", "mini_chromium.lib"));
114-
PublicAdditionalLibraries.Add(Path.Combine(WindowsThirdPartyPath, "lib", "crashpad_client.lib"));
115-
PublicAdditionalLibraries.Add(Path.Combine(WindowsThirdPartyPath, "lib", "crashpad_zlib.lib"));
116-
PublicAdditionalLibraries.Add(Path.Combine(WindowsThirdPartyPath, "lib", "crashpad_getopt.lib"));
117-
PublicAdditionalLibraries.Add(Path.Combine(WindowsThirdPartyPath, "lib", "crashpad_tools.lib"));
118-
PublicAdditionalLibraries.Add(Path.Combine(WindowsThirdPartyPath, "lib", "crashpad_handler_lib.lib"));
119-
}
120-
else
121-
{
122-
PublicAdditionalLibraries.Add(Path.Combine(WindowsThirdPartyPath, "lib", "breakpad_client.lib"));
123-
}
105+
PublicAdditionalLibraries.Add(Path.Combine(PlatformThirdPartyPath, "lib", "crashpad_compat.lib"));
106+
PublicAdditionalLibraries.Add(Path.Combine(PlatformThirdPartyPath, "lib", "crashpad_snapshot.lib"));
107+
PublicAdditionalLibraries.Add(Path.Combine(PlatformThirdPartyPath, "lib", "crashpad_util.lib"));
108+
PublicAdditionalLibraries.Add(Path.Combine(PlatformThirdPartyPath, "lib", "mini_chromium.lib"));
109+
PublicAdditionalLibraries.Add(Path.Combine(PlatformThirdPartyPath, "lib", "crashpad_client.lib"));
110+
PublicAdditionalLibraries.Add(Path.Combine(PlatformThirdPartyPath, "lib", "crashpad_zlib.lib"));
111+
PublicAdditionalLibraries.Add(Path.Combine(PlatformThirdPartyPath, "lib", "crashpad_getopt.lib"));
112+
PublicAdditionalLibraries.Add(Path.Combine(PlatformThirdPartyPath, "lib", "crashpad_tools.lib"));
113+
PublicAdditionalLibraries.Add(Path.Combine(PlatformThirdPartyPath, "lib", "crashpad_handler_lib.lib"));
124114

125115
PublicDefinitions.Add("USE_SENTRY_NATIVE=1");
126116
PublicDefinitions.Add("SENTRY_BUILD_STATIC=1");

plugin-dev/Source/Sentry/Sentry_Android_UPL.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
<true>
172172
<if condition="bUseLegacyGradlePlugin">
173173
<true>
174-
<log text="Using legacy Sentry Gradle plugin 2.1.5 for Android debug symbol upload."/>
174+
<log text="Using legacy Sentry Gradle plugin for Android debug symbol upload."/>
175175
<insert>
176176
dependencies {
177177
classpath 'com.android.tools.build:gradle:3.5.4'
@@ -180,7 +180,7 @@
180180
</insert>
181181
</true>
182182
<false>
183-
<log text="Using Sentry Gradle plugin 4.11.0 for Android debug symbol upload."/>
183+
<log text="Using Sentry Gradle plugin for Android debug symbol upload."/>
184184
<log text="Enable legacy Sentry Gradle plugin in project settings in case current version conflicts with other plugins (for UE 5.4 and older)."/>
185185
<insert>
186186
dependencies {

scripts/build-win64-breakpad.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.
File renamed without changes.

scripts/download-sdks.ps1

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,11 @@ if (-not (Test-Path $outDir))
3434
New-Item $outDir -ItemType Directory > $null
3535
}
3636

37-
$sdks = @("Android", "IOS", "Linux", "LinuxArm64", "Mac", "Win64-Crashpad", "Win64-Breakpad")
37+
$sdks = @("Android", "IOS", "Linux", "LinuxArm64", "Mac", "Win64")
3838
foreach ($sdk in $sdks)
3939
{
4040
$sdkDir = "$outDir/$sdk"
4141

42-
if ($sdk.StartsWith('Win64'))
43-
{
44-
$winSdk, $crashBackend = $sdk.Split("-")
45-
$sdkDir = "$outDir/$winSdk/$crashBackend"
46-
}
47-
4842
Write-Host "Downloading $sdk SDK to $sdkDir ..."
4943
if (Test-Path $sdkDir)
5044
{

0 commit comments

Comments
 (0)