-
-
Notifications
You must be signed in to change notification settings - Fork 343
feat: Allow specifying a specific version in install script and release 1.3.1 #853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,6 @@ Write-Host -ForegroundColor Red " `$`$/ | |
Write-Host "" | ||
|
||
$package = "superfile" | ||
$version = "1.3.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was unused. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain@lazysegtree I'll verify that the 🏁 Script executed:
Length of output: 656 @lazysegtree Verified! ✅ The
This makes sense since the uninstall script simply removes the superfile installation directory and cleans up the environment PATH, regardless of which version was installed. Unlike the install script that needs version information to download the correct release, the uninstall process is version-agnostic. The removal was a good cleanup! 👍 |
||
|
||
$installInstructions = @' | ||
This uninstaller is only available for Windows. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@coderabbitai Look at the results I have added in PR comments, and verify that this works.
Also verify to install.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
@lazysegtree I've reviewed your test results and examined both install scripts. The implementation looks excellent! Let me verify the bash script implementation as well.
Based on your testing results in the PR comments, I can confirm that:
✅ PowerShell Script (install.ps1):
$version = if ($env:SPF_INSTALL_VERSION) { $env:SPF_INSTALL_VERSION } else { "1.3.1" }
is correctly implemented✅ Your Test Results Demonstrate:
SPF_INSTALL_VERSION=1.2.0.0
→ installed v1.2.0.0SPF_INSTALL_VERSION=1.2.1
→ downgraded from v1.3.0 to v1.2.1The implementation correctly handles the environment variable precedence and provides a sensible fallback. The version string is also properly incorporated into the download URL and user-facing messages.
Let me just verify the bash script implementation to complete the verification.
🏁 Script executed:
Length of output: 4946
Perfect! ✅ Both install scripts are correctly implemented:
Bash Script (install.sh):
version=${SPF_INSTALL_VERSION:-1.3.1}
This uses proper bash parameter expansion syntax where
${VAR:-default}
means "use VAR if set, otherwise use default".PowerShell Script (install.ps1):
This uses conditional logic to achieve the same behavior.
Verification Summary:
Both scripts implement identical logic:
SPF_INSTALL_VERSION
takes precedence when setYour test results conclusively demonstrate:
SPF_INSTALL_VERSION=1.2.0.0
→ v1.2.0.0)The implementation is solid and your testing coverage is thorough! 🎉