From 5219bbd0f441621ea0d6c70e7bb5082c54e3267a Mon Sep 17 00:00:00 2001 From: SiriosDev <26876994+SiriosDev@users.noreply.github.com> Date: Fri, 5 Jun 2026 22:21:39 +0200 Subject: [PATCH 1/6] chore: update microsoft-coreutils.json with new shims and new scripts --- bucket/microsoft-coreutils.json | 267 +++++++++++++------------------- 1 file changed, 111 insertions(+), 156 deletions(-) diff --git a/bucket/microsoft-coreutils.json b/bucket/microsoft-coreutils.json index 0c62164b4a0de..179803d0cfcc9 100644 --- a/bucket/microsoft-coreutils.json +++ b/bucket/microsoft-coreutils.json @@ -2,8 +2,10 @@ "version": "2026.5.29", "description": "A Microsoft-maintained build of uutils/coreutils, uutils/findutils.", "homepage": "https://github.com/microsoft/coreutils", - "license": "MIT", - "innosetup": true, + "license": { + "identifier": "MIT", + "url": "https://github.com/microsoft/coreutils/blob/main/LICENSE" + }, "architecture": { "64bit": { "url": "https://github.com/microsoft/coreutils/releases/download/v2026.5.29/coreutils-2026.5.29-x64.exe", @@ -21,391 +23,344 @@ "uutils" ], [ - "coreutils.exe", - "arch", + "cmd/arch.cmd", "arch" ], [ - "coreutils.exe", - "b2sum", + "cmd/b2sum.cmd", "b2sum" ], [ - "coreutils.exe", - "base32", + "cmd/base32.cmd", "base32" ], [ - "coreutils.exe", - "base64", + "cmd/base64.cmd", "base64" ], [ - "coreutils.exe", - "basename", + "cmd/basename.cmd", "basename" ], [ - "coreutils.exe", - "basenc", + "cmd/basenc.cmd", "basenc" ], [ - "coreutils.exe", - "cat", + "cmd/cat.cmd", "cat" ], [ - "coreutils.exe", - "cksum", + "cmd/cksum.cmd", "cksum" ], [ - "coreutils.exe", - "comm", + "cmd/comm.cmd", "comm" ], [ - "coreutils.exe", - "cp", + "cmd/cp.cmd", "cp" ], [ - "coreutils.exe", - "csplit", + "cmd/csplit.cmd", "csplit" ], [ - "coreutils.exe", - "cut", + "cmd/cut.cmd", "cut" ], [ - "coreutils.exe", - "date", + "cmd/date.cmd", "date" ], [ - "coreutils.exe", - "df", + "cmd/df.cmd", "df" ], [ - "coreutils.exe", - "dirname", + "cmd/dirname.cmd", "dirname" ], [ - "coreutils.exe", - "du", + "cmd/du.cmd", "du" ], [ - "coreutils.exe", - "echo", + "cmd/echo.cmd", "echo" ], [ - "coreutils.exe", - "env", + "cmd/env.cmd", "env" ], [ - "coreutils.exe", - "expr", + "cmd/expr.cmd", "expr" ], [ - "coreutils.exe", - "factor", + "cmd/factor.cmd", "factor" ], [ - "coreutils.exe", - "false", + "cmd/false.cmd", "false" ], [ - "coreutils.exe", - "find", + "cmd/find.cmd", "find" ], [ - "coreutils.exe", - "fmt", + "cmd/fmt.cmd", "fmt" ], [ - "coreutils.exe", - "fold", + "cmd/fold.cmd", "fold" ], [ - "coreutils.exe", - "grep", + "cmd/grep.cmd", "grep" ], [ - "coreutils.exe", - "head", + "cmd/head.cmd", "head" ], [ - "coreutils.exe", - "hostname", + "cmd/hostname.cmd", "hostname" ], [ - "coreutils.exe", - "join", + "cmd/join.cmd", "join" ], [ - "coreutils.exe", - "link", + "cmd/link.cmd", "link" ], [ - "coreutils.exe", - "ln", + "cmd/ln.cmd", "ln" ], [ - "coreutils.exe", - "ls", + "cmd/ls.cmd", "ls" ], [ - "coreutils.exe", - "md5sum", + "cmd/md5sum.cmd", "md5sum" ], [ - "coreutils.exe", - "mkdir", + "cmd/mkdir.cmd", "mkdir" ], [ - "coreutils.exe", - "mktemp", + "cmd/mktemp.cmd", "mktemp" ], [ - "coreutils.exe", - "mv", + "cmd/mv.cmd", "mv" ], [ - "coreutils.exe", - "nl", + "cmd/nl.cmd", "nl" ], [ - "coreutils.exe", - "nproc", + "cmd/nproc.cmd", "nproc" ], [ - "coreutils.exe", - "numfmt", + "cmd/numfmt.cmd", "numfmt" ], [ - "coreutils.exe", - "od", + "cmd/od.cmd", "od" ], [ - "coreutils.exe", - "pathchk", + "cmd/pathchk.cmd", "pathchk" ], [ - "coreutils.exe", - "pr", + "cmd/pr.cmd", "pr" ], [ - "coreutils.exe", - "printenv", + "cmd/printenv.cmd", "printenv" ], [ - "coreutils.exe", - "printf", + "cmd/printf.cmd", "printf" ], [ - "coreutils.exe", - "ptx", + "cmd/ptx.cmd", "ptx" ], [ - "coreutils.exe", - "pwd", + "cmd/pwd.cmd", "pwd" ], [ - "coreutils.exe", - "readlink", + "cmd/readlink.cmd", "readlink" ], [ - "coreutils.exe", - "realpath", + "cmd/realpath.cmd", "realpath" ], [ - "coreutils.exe", - "rm", + "cmd/rm.cmd", "rm" ], [ - "coreutils.exe", - "rmdir", + "cmd/rmdir.cmd", "rmdir" ], [ - "coreutils.exe", - "seq", + "cmd/seq.cmd", "seq" ], [ - "coreutils.exe", - "sha1sum", + "cmd/sha1sum.cmd", "sha1sum" ], [ - "coreutils.exe", - "sha224sum", + "cmd/sha224sum.cmd", "sha224sum" ], [ - "coreutils.exe", - "sha256sum", + "cmd/sha256sum.cmd", "sha256sum" ], [ - "coreutils.exe", - "sha384sum", + "cmd/sha384sum.cmd", "sha384sum" ], [ - "coreutils.exe", - "sha512sum", + "cmd/sha512sum.cmd", "sha512sum" ], [ - "coreutils.exe", - "shuf", + "cmd/shuf.cmd", "shuf" ], [ - "coreutils.exe", - "sleep", + "cmd/sleep.cmd", "sleep" ], [ - "coreutils.exe", - "sort", + "cmd/sort.cmd", "sort" ], [ - "coreutils.exe", - "split", + "cmd/split.cmd", "split" ], [ - "coreutils.exe", - "stat", + "cmd/stat.cmd", "stat" ], [ - "coreutils.exe", - "sum", + "cmd/sum.cmd", "sum" ], [ - "coreutils.exe", - "tac", + "cmd/tac.cmd", "tac" ], [ - "coreutils.exe", - "tail", + "cmd/tail.cmd", "tail" ], [ - "coreutils.exe", - "tee", + "cmd/tee.cmd", "tee" ], [ - "coreutils.exe", - "test", + "cmd/test.cmd", "test" ], [ - "coreutils.exe", - "touch", + "cmd/touch.cmd", "touch" ], [ - "coreutils.exe", - "tr", + "cmd/tr.cmd", "tr" ], [ - "coreutils.exe", - "true", + "cmd/true.cmd", "true" ], [ - "coreutils.exe", - "truncate", + "cmd/truncate.cmd", "truncate" ], [ - "coreutils.exe", - "tsort", + "cmd/tsort.cmd", "tsort" ], [ - "coreutils.exe", - "unexpand", + "cmd/unexpand.cmd", "unexpand" ], [ - "coreutils.exe", - "uniq", + "cmd/uniq.cmd", "uniq" ], [ - "coreutils.exe", - "unlink", + "cmd/unlink.cmd", "unlink" ], [ - "coreutils.exe", - "uptime", + "cmd/uptime.cmd", "uptime" ], [ - "coreutils.exe", - "wc", + "cmd/wc.cmd", "wc" ], [ - "coreutils.exe", - "xargs", + "cmd/xargs.cmd", "xargs" ], [ - "coreutils.exe", - "yes", + "cmd/yes.cmd", "yes" ] ], + "innosetup": true, + "installer": { + "script": [ + "$binDir = Join-Path $dir 'bin'", + "$cmdDir = Join-Path $dir 'cmd'", + "New-Item -ItemType Directory -Force -Path $binDir, $cmdDir | Out-Null", + "$output = & (Join-Path $dir 'coreutils.exe') --list", + "$output | ForEach-Object {", + " $name = $_.Trim()", + " if ($name -ne '[') {", + " New-Item -ItemType HardLink -Force -Target (Join-Path $dir 'coreutils.exe') -Path (Join-Path $binDir \"$name.exe\") | Out-Null", + " New-Item -ItemType HardLink -Force -Target (Join-Path $dir 'coreutils.exe') -Path (Join-Path $cmdDir \"$name.cmd\") | Out-Null", + " }", + "}", + "$pwshInstall = Join-Path $dir 'pwsh-install.ps1'", + "$pwshText = Get-Content -LiteralPath $pwshInstall -Raw", + "$pwshText = $pwshText.Replace('HKLM:\\SOFTWARE\\Microsoft\\coreutils\\PowerShellProfiles', 'HKCU:\\SOFTWARE\\Microsoft\\coreutils\\PowerShellProfiles')", + "[System.IO.File]::WriteAllText($pwshInstall, $pwshText, [System.Text.UTF8Encoding]::new($false))", + "if (Get-Command pwsh.exe -ErrorAction Ignore) {", + " & pwsh.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File $pwshInstall -Action Install -Scope CurrentUser -CmdDir $cmdDir", + "}" + ] + }, + "uninstaller": { + "script": [ + "if (Get-Command pwsh.exe -ErrorAction Ignore) {", + " & pwsh.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File $pwshInstall -Action Uninstall", + "}" + ] + }, "checkver": "github", "autoupdate": { "architecture": { From 78fbd80f69f0181203347e158c722214e673239c Mon Sep 17 00:00:00 2001 From: SiriosDev <26876994+SiriosDev@users.noreply.github.com> Date: Fri, 5 Jun 2026 22:25:37 +0200 Subject: [PATCH 2/6] chore: remove unnecessary file --- bucket/microsoft-coreutils.json | 1 + 1 file changed, 1 insertion(+) diff --git a/bucket/microsoft-coreutils.json b/bucket/microsoft-coreutils.json index 179803d0cfcc9..1c38c0eeaefa4 100644 --- a/bucket/microsoft-coreutils.json +++ b/bucket/microsoft-coreutils.json @@ -345,6 +345,7 @@ " New-Item -ItemType HardLink -Force -Target (Join-Path $dir 'coreutils.exe') -Path (Join-Path $cmdDir \"$name.cmd\") | Out-Null", " }", "}", + "Remove-Item -Path $bindir\\_why_is_this_700MB_.txt -Force -ErrorAction Ignore", "$pwshInstall = Join-Path $dir 'pwsh-install.ps1'", "$pwshText = Get-Content -LiteralPath $pwshInstall -Raw", "$pwshText = $pwshText.Replace('HKLM:\\SOFTWARE\\Microsoft\\coreutils\\PowerShellProfiles', 'HKCU:\\SOFTWARE\\Microsoft\\coreutils\\PowerShellProfiles')", From 3b928011bef63e6219256b3b7d724b00e12069cd Mon Sep 17 00:00:00 2001 From: SiriosDev <26876994+SiriosDev@users.noreply.github.com> Date: Fri, 5 Jun 2026 22:26:13 +0200 Subject: [PATCH 3/6] chore: fix typo --- bucket/microsoft-coreutils.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bucket/microsoft-coreutils.json b/bucket/microsoft-coreutils.json index 1c38c0eeaefa4..24049e3d2b9b2 100644 --- a/bucket/microsoft-coreutils.json +++ b/bucket/microsoft-coreutils.json @@ -345,7 +345,7 @@ " New-Item -ItemType HardLink -Force -Target (Join-Path $dir 'coreutils.exe') -Path (Join-Path $cmdDir \"$name.cmd\") | Out-Null", " }", "}", - "Remove-Item -Path $bindir\\_why_is_this_700MB_.txt -Force -ErrorAction Ignore", + "Remove-Item -Path $binDir\\_why_is_this_700MB_.txt -Force -ErrorAction Ignore", "$pwshInstall = Join-Path $dir 'pwsh-install.ps1'", "$pwshText = Get-Content -LiteralPath $pwshInstall -Raw", "$pwshText = $pwshText.Replace('HKLM:\\SOFTWARE\\Microsoft\\coreutils\\PowerShellProfiles', 'HKCU:\\SOFTWARE\\Microsoft\\coreutils\\PowerShellProfiles')", From d6cfa86d745921e64d3bc9736364a34fd59a5eb5 Mon Sep 17 00:00:00 2001 From: SiriosDev <26876994+SiriosDev@users.noreply.github.com> Date: Fri, 5 Jun 2026 22:28:05 +0200 Subject: [PATCH 4/6] chore: simplify license information in microsoft-coreutils.json --- bucket/microsoft-coreutils.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bucket/microsoft-coreutils.json b/bucket/microsoft-coreutils.json index 24049e3d2b9b2..0652035ba35e7 100644 --- a/bucket/microsoft-coreutils.json +++ b/bucket/microsoft-coreutils.json @@ -2,10 +2,7 @@ "version": "2026.5.29", "description": "A Microsoft-maintained build of uutils/coreutils, uutils/findutils.", "homepage": "https://github.com/microsoft/coreutils", - "license": { - "identifier": "MIT", - "url": "https://github.com/microsoft/coreutils/blob/main/LICENSE" - }, + "license": "MIT", "architecture": { "64bit": { "url": "https://github.com/microsoft/coreutils/releases/download/v2026.5.29/coreutils-2026.5.29-x64.exe", From 5e523b78d5097c7fad710131ec52b862399e076b Mon Sep 17 00:00:00 2001 From: SiriosDev <26876994+SiriosDev@users.noreply.github.com> Date: Fri, 5 Jun 2026 22:42:14 +0200 Subject: [PATCH 5/6] chore: add missing variable in uninstall script --- bucket/microsoft-coreutils.json | 1 + 1 file changed, 1 insertion(+) diff --git a/bucket/microsoft-coreutils.json b/bucket/microsoft-coreutils.json index 0652035ba35e7..b721691595bf0 100644 --- a/bucket/microsoft-coreutils.json +++ b/bucket/microsoft-coreutils.json @@ -354,6 +354,7 @@ }, "uninstaller": { "script": [ + "$pwshInstall = Join-Path $dir 'pwsh-install.ps1'", "if (Get-Command pwsh.exe -ErrorAction Ignore) {", " & pwsh.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File $pwshInstall -Action Uninstall", "}" From 1db8f9596d78aa10f0a8ef84845d223bbc5c1081 Mon Sep 17 00:00:00 2001 From: SiriosDev <26876994+SiriosDev@users.noreply.github.com> Date: Sat, 6 Jun 2026 15:41:54 +0200 Subject: [PATCH 6/6] chore: update bins on exe hardlink --- bucket/microsoft-coreutils.json | 154 ++++++++++++++++---------------- 1 file changed, 77 insertions(+), 77 deletions(-) diff --git a/bucket/microsoft-coreutils.json b/bucket/microsoft-coreutils.json index b721691595bf0..731c285ea63b2 100644 --- a/bucket/microsoft-coreutils.json +++ b/bucket/microsoft-coreutils.json @@ -20,311 +20,311 @@ "uutils" ], [ - "cmd/arch.cmd", + "bin/arch.exe", "arch" ], [ - "cmd/b2sum.cmd", + "bin/b2sum.exe", "b2sum" ], [ - "cmd/base32.cmd", + "bin/base32.exe", "base32" ], [ - "cmd/base64.cmd", + "bin/base64.exe", "base64" ], [ - "cmd/basename.cmd", + "bin/basename.exe", "basename" ], [ - "cmd/basenc.cmd", + "bin/basenc.exe", "basenc" ], [ - "cmd/cat.cmd", + "bin/cat.exe", "cat" ], [ - "cmd/cksum.cmd", + "bin/cksum.exe", "cksum" ], [ - "cmd/comm.cmd", + "bin/comm.exe", "comm" ], [ - "cmd/cp.cmd", + "bin/cp.exe", "cp" ], [ - "cmd/csplit.cmd", + "bin/csplit.exe", "csplit" ], [ - "cmd/cut.cmd", + "bin/cut.exe", "cut" ], [ - "cmd/date.cmd", + "bin/date.exe", "date" ], [ - "cmd/df.cmd", + "bin/df.exe", "df" ], [ - "cmd/dirname.cmd", + "bin/dirname.exe", "dirname" ], [ - "cmd/du.cmd", + "bin/du.exe", "du" ], [ - "cmd/echo.cmd", + "bin/echo.exe", "echo" ], [ - "cmd/env.cmd", + "bin/env.exe", "env" ], [ - "cmd/expr.cmd", + "bin/expr.exe", "expr" ], [ - "cmd/factor.cmd", + "bin/factor.exe", "factor" ], [ - "cmd/false.cmd", + "bin/false.exe", "false" ], [ - "cmd/find.cmd", + "bin/find.exe", "find" ], [ - "cmd/fmt.cmd", + "bin/fmt.exe", "fmt" ], [ - "cmd/fold.cmd", + "bin/fold.exe", "fold" ], [ - "cmd/grep.cmd", + "bin/grep.exe", "grep" ], [ - "cmd/head.cmd", + "bin/head.exe", "head" ], [ - "cmd/hostname.cmd", + "bin/hostname.exe", "hostname" ], [ - "cmd/join.cmd", + "bin/join.exe", "join" ], [ - "cmd/link.cmd", + "bin/link.exe", "link" ], [ - "cmd/ln.cmd", + "bin/ln.exe", "ln" ], [ - "cmd/ls.cmd", + "bin/ls.exe", "ls" ], [ - "cmd/md5sum.cmd", + "bin/md5sum.exe", "md5sum" ], [ - "cmd/mkdir.cmd", + "bin/mkdir.exe", "mkdir" ], [ - "cmd/mktemp.cmd", + "bin/mktemp.exe", "mktemp" ], [ - "cmd/mv.cmd", + "bin/mv.exe", "mv" ], [ - "cmd/nl.cmd", + "bin/nl.exe", "nl" ], [ - "cmd/nproc.cmd", + "bin/nproc.exe", "nproc" ], [ - "cmd/numfmt.cmd", + "bin/numfmt.exe", "numfmt" ], [ - "cmd/od.cmd", + "bin/od.exe", "od" ], [ - "cmd/pathchk.cmd", + "bin/pathchk.exe", "pathchk" ], [ - "cmd/pr.cmd", + "bin/pr.exe", "pr" ], [ - "cmd/printenv.cmd", + "bin/printenv.exe", "printenv" ], [ - "cmd/printf.cmd", + "bin/printf.exe", "printf" ], [ - "cmd/ptx.cmd", + "bin/ptx.exe", "ptx" ], [ - "cmd/pwd.cmd", + "bin/pwd.exe", "pwd" ], [ - "cmd/readlink.cmd", + "bin/readlink.exe", "readlink" ], [ - "cmd/realpath.cmd", + "bin/realpath.exe", "realpath" ], [ - "cmd/rm.cmd", + "bin/rm.exe", "rm" ], [ - "cmd/rmdir.cmd", + "bin/rmdir.exe", "rmdir" ], [ - "cmd/seq.cmd", + "bin/seq.exe", "seq" ], [ - "cmd/sha1sum.cmd", + "bin/sha1sum.exe", "sha1sum" ], [ - "cmd/sha224sum.cmd", + "bin/sha224sum.exe", "sha224sum" ], [ - "cmd/sha256sum.cmd", + "bin/sha256sum.exe", "sha256sum" ], [ - "cmd/sha384sum.cmd", + "bin/sha384sum.exe", "sha384sum" ], [ - "cmd/sha512sum.cmd", + "bin/sha512sum.exe", "sha512sum" ], [ - "cmd/shuf.cmd", + "bin/shuf.exe", "shuf" ], [ - "cmd/sleep.cmd", + "bin/sleep.exe", "sleep" ], [ - "cmd/sort.cmd", + "bin/sort.exe", "sort" ], [ - "cmd/split.cmd", + "bin/split.exe", "split" ], [ - "cmd/stat.cmd", + "bin/stat.exe", "stat" ], [ - "cmd/sum.cmd", + "bin/sum.exe", "sum" ], [ - "cmd/tac.cmd", + "bin/tac.exe", "tac" ], [ - "cmd/tail.cmd", + "bin/tail.exe", "tail" ], [ - "cmd/tee.cmd", + "bin/tee.exe", "tee" ], [ - "cmd/test.cmd", + "bin/test.exe", "test" ], [ - "cmd/touch.cmd", + "bin/touch.exe", "touch" ], [ - "cmd/tr.cmd", + "bin/tr.exe", "tr" ], [ - "cmd/true.cmd", + "bin/true.exe", "true" ], [ - "cmd/truncate.cmd", + "bin/truncate.exe", "truncate" ], [ - "cmd/tsort.cmd", + "bin/tsort.exe", "tsort" ], [ - "cmd/unexpand.cmd", + "bin/unexpand.exe", "unexpand" ], [ - "cmd/uniq.cmd", + "bin/uniq.exe", "uniq" ], [ - "cmd/unlink.cmd", + "bin/unlink.exe", "unlink" ], [ - "cmd/uptime.cmd", + "bin/uptime.exe", "uptime" ], [ - "cmd/wc.cmd", + "bin/wc.exe", "wc" ], [ - "cmd/xargs.cmd", + "bin/xargs.exe", "xargs" ], [ - "cmd/yes.cmd", + "bin/yes.exe", "yes" ] ],