Skip to content

Commit 5375f2a

Browse files
chore: add nushell rebuild script and make ps1 script compatible for older pwsh
1 parent 965d75c commit 5375f2a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

scripts/rebuild.nu

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
let pids = (ps | where name == "explorer.exe" | where cmd =~ "/factory,{75dff2b7-6936-4c06-a8bb-676a7b00b24b}" | get pid)
2+
for pid in $pids {
3+
kill -f $pid
4+
}
5+
6+
xmake b --yes inject
7+
xmake b --yes shell
8+
xmake r inject new

scripts/rebuild.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ foreach ($pidx in $pids) {
55

66

77
xmake b --yes inject
8-
xmake b --yes shell && xmake r inject new
8+
(xmake b --yes shell) -and (xmake r inject new)

0 commit comments

Comments
 (0)