Replies: 1 comment
-
|
Awesome @jdx, thanks 🔥 Windows binary shim As of mise v2026.2.8, mise doesn't yet download/update
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Here is fully usable prove-of-concept iki/mise-shim, ready for use in local dev env
Based on @daief solution for node shim issue in #4773 (comment)
Content
Purpose
Current cmd/bash shims in mise have several issues:
bun.exein PATH{ shell: true }to work with cmd/bash shimscallto work with cmd/bash shims, otherwise the script will exit after the tool is calledExecutable shims are battle tested practice on Windows. They are used for example by Bun, Volta, and Chocolatey
Concept
The shim uses its own filename (without
.exe) to determine which tool to execute:node.exe, the shim detects it should runnodemise x -- node <args>to execute the tool in mise's environmentGetting Started
reshim.cmdmise-shim.exefrom the latest releaseUsage
Run the
reshim.cmdscript to create executable shims for all mise tools:After rebuild, use
-foption to update existing executable shims:Use
-hoption for help:Development
Prerequisites
Install Rust and UPX via mise:
Install Visual Studio C++ Build Tools:
Option A: Using Chocolatey (recommended):
choco install visualstudio2022-workload-vctools --package-parameters "--includeRecommended"Option B: Manual installation:
Build
Run the
build.cmdscript:Build script will perform the following steps:
mise-shim.exeTechnical Details
x86_64-pc-windows-msvc)Beta Was this translation helpful? Give feedback.
All reactions