Skip installation when latest version already installed#47
Merged
joaomoreno merged 4 commits intomainfrom Nov 19, 2025
Merged
Conversation
Co-authored-by: joaomoreno <22350+joaomoreno@users.noreply.github.com>
…y installed Co-authored-by: joaomoreno <22350+joaomoreno@users.noreply.github.com>
joaomoreno
requested changes
Nov 19, 2025
Contributor
Author
There was a problem hiding this comment.
Done. Reverted the wasm/Cargo.toml changes in commit dca7637.
Copilot
AI
changed the title
[WIP] Fix install scripts to exit early on version match
Skip installation when latest version already installed
Nov 19, 2025
joaomoreno
requested changes
Nov 19, 2025
wasm/Cargo.toml
Outdated
Comment on lines
13
to
15
|
|
||
| [package.metadata.wasm-pack.profile.release] | ||
| wasm-opt = false |
Contributor
Author
There was a problem hiding this comment.
Already removed in commit dca7637. The wasm/Cargo.toml file is now back to its original state.
Co-authored-by: joaomoreno <22350+joaomoreno@users.noreply.github.com>
joaomoreno
approved these changes
Nov 19, 2025
bpasero
approved these changes
Nov 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task: Add version check to install scripts
Objective: Modify install scripts to bail out early if the installed version matches the latest version
Plan:
static/install.shandstatic/install.ps1docfind --versionoutputs format:docfind X.Y.Zstatic/install.shto check current version before downloadingstatic/install.ps1to check current version before downloadingImplementation Complete ✅
Both install scripts now intelligently check for existing installations:
Bash Script (
install.sh)get_current_version()function that extracts version fromdocfind --versionmain()to check current version before downloadingv0.5.1and0.5.1version formatsPowerShell Script (
install.ps1)Get-CurrentVersionfunction with error handlingMain()to check current version before downloadingv0.5.1and0.5.1version formatsChanges Made
get_current_version()function and version check inmain()Get-CurrentVersionfunction and version check inMain()Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.