Install mm on Windows
In PowerShell (no administrator rights needed):
# download the binary release in https://rickub.com/bots-garden/mini-me/releases
$Version = "1.0.0"
$Arch = if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") { "arm64" } else { "amd64" }
$Asset = "mm-$Version-windows-$Arch.exe"
$Base = "https://rickub.com/bots-garden/mini-me/releases/download/v$Version"
Invoke-WebRequest -Uri "$Base/$Asset" -OutFile $Asset
# optional: check the download against the release's checksums (True = OK)
Invoke-WebRequest -Uri "$Base/SHA256SUMS" -OutFile SHA256SUMS
$Expected = ((Select-String -Path SHA256SUMS -Pattern $Asset -SimpleMatch).Line -split '\s+')[0]
(Get-FileHash $Asset -Algorithm SHA256).Hash.ToLower() -eq $Expected
# install it in your own programs folder, and put that folder on your PATH once
$Dir = "$env:LOCALAPPDATA\Programs\mm"
New-Item -ItemType Directory -Force -Path $Dir | Out-Null
Copy-Item $Asset "$Dir\mm.exe" -Force
$UserPath = [Environment]::GetEnvironmentVariable("Path", "User")
if ($UserPath -notlike "*$Dir*") {
[Environment]::SetEnvironmentVariable("Path", "$UserPath;$Dir", "User")
}
Open a new terminal (the PATH change applies to new ones only), then:
mm --version
Before the first run
bashandsh. mm'sbashtool runsbash -c <command>, and a hook written as acommand:runssh -c <command>. Install Git for Windows and put itsbinfolder (C:\Program Files\Git\bin, which holdsbash.exeandsh.exe) on yourPATH, or turn the tool off withbashTool: false. WebAssembly tools and hooks need neither.- A file downloaded with a browser may be blocked by SmartScreen:
Unblock-File .\mm-$Version-windows-$Arch.exebefore copying it.
These steps have not been tried on a Windows machine yet: the commands are checked against the release's file names and URLs only.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|