feat(install): support Windows PowerShell installs#40
Open
Mineru98 wants to merge 2 commits into
Open
Conversation
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.
Context
Closes #39.
Windows users only had the Unix
install.shpath, which assumes Bash, tar/chmod, Unix release archives, and direct escript execution. Issue #39 asks for a Windows-native PowerShell install/launch path while preserving the existing macOS/Linux flow.What Changed
install.ps1for Windows release zip installs into%LOCALAPPDATA%\Ourocode\<version>with SHA256 verification, prerequisite guidance for Erlang/OTP, and User PATH registration withoutsetx.uninstall.ps1so Windows installs can be removed and reinstalled repeatedly; broad system/profile roots are rejected before recursive deletion.scripts/package-windows.ps1and a Windows package CI smoke workflow..cmd/.ps1launchers that invokeescript.exe <script>and setOUROCODE_TTYwhen the helper exists.ourocode_ttyby platform and implemented a Windows console helper usingwindows-sys, while keeping the existing Unix termios path undercfg(unix).Verification
cargo build --release --manifest-path rust\ourocode_ipc\Cargo.toml --bin ourocode_ttycargo test --manifest-path rust\ourocode_ipc\Cargo.tomlmix test test/ourocode/terminal/tty_driver_test.exsgit diff --checkdist\ourocode-v0.1.14-tui-windows-x64.zipinto%LOCALAPPDATA%\Ourocode\0.1.14-tuiourocode.cmdourocode --smoke-testourocode,/commands,/exitNotes
rust-analyzer.exeis missing from the installed Rust toolchain, butcargo build/testpassed..gitignorelocal edit is intentionally not part of this PR.