Revert SkiaSharp version bump & remove unnecessary runtimes#4278
Revert SkiaSharp version bump & remove unnecessary runtimes#4278Jack251970 merged 4 commits intodevfrom
Conversation
Included linux-musl-riscv64 and linux-riscv64 in both OutputPath and PublishDir of Flow.Launcher.Plugin.BrowserBookmark.csproj to ensure runtime files for RISC-V 64-bit architectures are available during build and publish.
Added MSBuild targets to delete unnecessary SkiaSharp .pdb files from output and publish directories after build and publish steps, reducing artifact size.
|
🥷 Code experts: jjw24 Jack251970, jjw24 have most 👩💻 activity in the files. See details
Activity based on git-commit:
Knowledge based on git-blame: ✨ Comment |
|
Be a legend 🏆 by adding a before and after screenshot of the changes you made, especially if they are around UI/UX. |
1 similar comment
|
Be a legend 🏆 by adding a before and after screenshot of the changes you made, especially if they are around UI/UX. |
There was a problem hiding this comment.
Pull request overview
This pull request extends the cleanup of unnecessary SkiaSharp runtime directories by adding RISC-V architectures to the removal list and introducing a workaround for SkiaSharp issue #3519 that removes PDB files. This is a follow-up to PR #4260 which updated SkiaSharp from 3.119.1 to 3.119.2. The changes reduce package size by excluding runtime binaries for platforms that Flow Launcher doesn't target (Windows-only application).
Changes:
- Added linux-musl-riscv64 and linux-riscv64 runtime directories to the cleanup list for both Build and Publish targets
- Added new MSBuild targets to remove PDB files as a workaround for SkiaSharp issue #3519
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj
Outdated
Show resolved
Hide resolved
Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
1 issue found across 1 file
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj">
<violation number="1" location="Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj:91">
P2: Avoid deleting build artifacts in post-build targets; prefer configuring the project to exclude PDBs up front (e.g., adjust DebugType/DebugSymbols or item metadata) so outputs are deterministic and less brittle.
(Based on your team's feedback about avoiding post-build file removal.) [FEEDBACK_USED]</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj (1)
54-55: Nit: entries are out of alphabetical order.
linux-musl-riscv64should precedelinux-musl-s390x, andlinux-riscv64should precedelinux-s390x. No functional impact, but keeping the lists sorted makes future maintenance easier.♻️ Suggested ordering (Build target shown; apply the same to Publish)
$(OutputPath)runtimes\linux-musl-arm; $(OutputPath)runtimes\linux-musl-arm64; + $(OutputPath)runtimes\linux-musl-riscv64; $(OutputPath)runtimes\linux-musl-x64; $(OutputPath)runtimes\linux-musl-s390x; $(OutputPath)runtimes\linux-ppc64le; + $(OutputPath)runtimes\linux-riscv64; $(OutputPath)runtimes\linux-s390x; $(OutputPath)runtimes\linux-x64; $(OutputPath)runtimes\linux-x86; - $(OutputPath)runtimes\linux-musl-riscv64; - $(OutputPath)runtimes\linux-riscv64;Also applies to: 79-80
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj` around lines 54 - 55, The runtime identifier entries are not alphabetized: move "runtimes\linux-musl-riscv64" to come before "runtimes\linux-musl-s390x" and "runtimes\linux-riscv64" to come before "runtimes\linux-s390x" so the lists are in alphabetical order; apply the same ordering change to both the Build and Publish runtime lists (the lines containing the runtimes\... entries) so the csproj's runtime lists are consistently sorted.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj`:
- Around line 91-102: The RemoveUnnecessaryPdbFilesAfterBuild target currently
deletes all .pdb files unconditionally; update the Target named
RemoveUnnecessaryPdbFilesAfterBuild to include a Condition so it does not run
for the Debug configuration (preserve developer PDBs), and change the ItemGroup
PdbFilesToRemoveBuild Include from the broad "$(OutputPath)**\*.pdb" glob to
only the SkiaSharp native pdbs (e.g. patterns matching libSkiaSharp.pdb and
libHarfBuzzSharp.pdb); apply the same narrower Include change to the
RemoveUnnecessaryPdbFilesAfterPublish target's PdbFilesToRemovePublish so the
workaround only removes the SkiaSharp native PDB files while leaving plugin
debug symbols intact.
---
Nitpick comments:
In
`@Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj`:
- Around line 54-55: The runtime identifier entries are not alphabetized: move
"runtimes\linux-musl-riscv64" to come before "runtimes\linux-musl-s390x" and
"runtimes\linux-riscv64" to come before "runtimes\linux-s390x" so the lists are
in alphabetical order; apply the same ordering change to both the Build and
Publish runtime lists (the lines containing the runtimes\... entries) so the
csproj's runtime lists are consistently sorted.
Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj
Outdated
Show resolved
Hide resolved
jjw24
left a comment
There was a problem hiding this comment.
Is the version bump necessary? I would rather see if they would do anything about the increased size than to apply this workaround ourselves. Maybe we just reverse the bump in dev.
Revert Skia Sharp version bump and remove unnecessary runtimes from packages.
Follow on with #4260.
Summary by cubic
Trim unnecessary SkiaSharp runtimes in the BrowserBookmark plugin to reduce package size and clean outputs.
Written for commit 9e66f71. Summary will update on new commits.