Skip to content

Commit 552f1e3

Browse files
fix: remove unnecessary scrcpy extras from bundled dependencies
1 parent 1483f12 commit 552f1e3

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
unzip -j pt.zip "platform-tools/adb.exe" "platform-tools/AdbWinApi.dll" "platform-tools/AdbWinUsbApi.dll" -d _bundled
5656
curl -L -o scrcpy.zip "https://github.com/Genymobile/scrcpy/releases/download/v${SCRCPY_VERSION}/scrcpy-win64-v${SCRCPY_VERSION}.zip"
5757
unzip -j scrcpy.zip -d _bundled
58+
rm -f _bundled/icon.png _bundled/open_a_terminal_here.bat _bundled/scrcpy-console.bat _bundled/scrcpy-noconsole.vbs
5859
;;
5960
linux)
6061
curl -L -o pt.zip "https://dl.google.com/android/repository/platform-tools_r${PLATFORM_TOOLS_VERSION}-linux.zip"

packaging/fetch-deps.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ if ($scrcpyInner) {
102102
}
103103
Write-Done "scrcpy + DLLs"
104104

105+
# ── Remove unnecessary scrcpy extras ──
106+
foreach ($junk in @("icon.png", "open_a_terminal_here.bat", "scrcpy-console.bat", "scrcpy-noconsole.vbs")) {
107+
$junkPath = Join-Path $BundledDir $junk
108+
if (Test-Path $junkPath) { Remove-Item -Force $junkPath }
109+
}
110+
105111
# ── Cleanup temp ──
106112
Remove-Item -Recurse -Force $TempDir -ErrorAction SilentlyContinue
107113

0 commit comments

Comments
 (0)