-
-
Notifications
You must be signed in to change notification settings - Fork 168
chore: install script for Windows(power-shell) #641
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
base: dev
Are you sure you want to change the base?
Conversation
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.
1 file reviewed, 2 comments
|
@ishaksebsib is this ready? |
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.
1 file reviewed, 1 comment
xav-db
left a comment
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.
LGTM
Description
helix installation script for Windows
Related Issues
None
Checklist when merging to main
rustfmthelix-cli/Cargo.tomlandhelixdb/Cargo.tomlAdditional Notes
None
Greptile Overview
Updated On: 2025-11-06 01:54:27 UTC
Greptile Summary
Adds Windows PowerShell installation script with install/uninstall functionality, PATH management, checksum verification, and proper error handling.
Key Changes
install.ps1providing native Windows support for Helix CLI installation~/.local/bin) and system-wide (Program Files) installationsIssues Found
Important Files Changed
File Analysis
Sequence Diagram
sequenceDiagram participant User participant PS as PowerShell Script participant GH as GitHub API participant FS as File System participant ENV as Environment Variables User->>PS: Execute install.ps1 with params alt Help flag PS->>User: Display help and exit else Uninstall flag PS->>FS: Remove helix.exe PS->>ENV: Remove from PATH PS->>FS: Clean up directories PS->>User: Uninstall complete else Install (default) PS->>PS: Detect architecture (amd64) PS->>GH: Fetch release info GH-->>PS: Return release data + assets alt Not forced & same version exists PS->>FS: Check existing installation PS->>User: Already up to date else Install/Upgrade PS->>FS: Create temp directory PS->>GH: Download binary GH-->>PS: Binary file opt Checksum available PS->>GH: Download checksum GH-->>PS: SHA256 hash PS->>PS: Verify integrity end PS->>FS: Create install directory PS->>FS: Move binary to destination PS->>ENV: Update user PATH PS->>PS: Test installation (--version) PS->>FS: Clean up temp files PS->>User: Installation successful end end