Legacy support #23
Reference in New Issue
Block a user
Delete Branch "legacy-support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Potentially fixes #18 by using older dependency versions and Electron that supports older CPUs.
Legacy Builds
Node: 18
Python: 3.11
Electron: 30.0.8
Here's the code health analysis summary for commits
9e1a8ce..d97676a. View details on DeepSource ↗.Analysis Summary
Dependency Review
✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Details
Details
Scanned Files
Actionable comments posted: 2
🧹 Nitpick comments (2)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between
9e1a8ce180and9a9022ffb0.📒 Files selected for processing (2)
.github/workflows/build.yml(5 hunks)Makefile(2 hunks)🧰 Additional context used
🪛 checkmake (0.2.2)
Makefile
[warning] 1-1: Missing required phony target "all"
(minphony)
[warning] 1-1: Missing required phony target "test"
(minphony)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
🔇 Additional comments (5)
@@ -182,6 +216,13 @@ jobs:(github.event_name == 'workflow_dispatch' && inputs[matrix.build_input] == true)🛠️ Refactor suggestion | 🟠 Major
Artifact renaming logic duplicates Makefile implementation; extract to shared script for maintainability.
The "Rename artifacts for legacy build" step duplicates the renaming logic from the Makefile's
build-appimage-legacyandbuild-exe-legacytargets. The workflow version:shopt -s nullglobfor safe glob matching (good practice).-legacysuffix.The Makefile version does the same but is called only if the Makefile targets are invoked directly (which the workflow does not do).
Recommendation: Extract the renaming logic into a shared shell script (e.g.,
scripts/rename_legacy_artifacts.sh) and invoke it from both the Makefile and the workflow:Then in the workflow (line 225–234):
And in the Makefile (lines 54–58, 63–67):
This eliminates duplication and makes future updates easier.
🤖 Prompt for AI Agents
✅ Addressed in commits
bf8c22ctod97676a@@ -44,6 +45,20 @@ build-exe: build🛠️ Refactor suggestion | 🟠 Major
Artifact renaming logic is duplicated between Makefile and workflow; clarify intended usage.
The artifact renaming logic (bash pattern matching to append
-legacysuffix) appears identically in both:The workflow does not invoke these Makefile targets; it runs npm commands directly and performs its own renaming. This duplication complicates maintenance—if the renaming logic needs to change, updates must be made in two places.
Recommendation: If the Makefile targets are meant only for local development, add a comment documenting this. Alternatively, consider extracting the renaming logic into a shared script that both the Makefile and workflow invoke, or remove the Makefile targets if they are unused in the actual CI/CD pipeline.
For now, consider adding a comment above the legacy targets:
Also, consider handling the case where no files match the glob pattern. The workflow uses
shopt -s nullglobto avoid errors if no files match, but the Makefile targets do not. Add the nullglob option to the Makefile loops:Note: The
[ -e "$$f" ]check makes the nullglob redundant, so this is a minor improvement for clarity. The current code is safe.📝 Committable suggestion
🤖 Prompt for AI Agents
✅ Addressed in commits
bf8c22ctod97676a