File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5252 }
5353 Expand-Archive " ${HOME} \moonbit.zip" - DestinationPath $MoonHome - Force
5454 Remove-Item - Force " ${HOME} \moonbit.zip"
55- if (Test-Path - Path " $MoonHome \bin\internal\moon-pilot\lib\prompt\moonbitlang.mbt.md" ) {
56- if (Test-Path - Path " $MoonHome \AGENTS.md" ) {
57- Remove-Item - Force - Path " $MoonHome \AGENTS.md"
58- }
59- # SymbolicLink on Windows requires elevated privileges, so use HardLink instead
60- New-Item - ItemType HardLink - Path " ${MoonHome} \AGENTS.md" - Value " $MoonHome \bin\internal\moon-pilot\lib\prompt\moonbitlang.mbt.md"
61- }
6255
6356 Write-Output " Downloading core ..."
6457 if (Test-Path - Path $MoonLib \core) {
Original file line number Diff line number Diff line change @@ -137,15 +137,6 @@ rm -rf "${moon_home:?}/include" ||
137137tar xf " $moonbit_dest " --directory=" $moon_home " ||
138138 error " Failed to extract moonbit to \" $moon_home \" "
139139
140- if [[ -f " $moon_home /bin/internal/moon-pilot/lib/prompt/moonbitlang.mbt.md" ]]; then
141- if [[ -f " $moon_home /AGENTS.md" ]]; then
142- rm -f " $moon_home /AGENTS.md" ||
143- error " Failed to remove existing $moon_home /AGENTS.md"
144- fi
145- ln -s " $moon_home /bin/internal/moon-pilot/lib/prompt/moonbitlang.mbt.md" " $moon_home /AGENTS.md" ||
146- error " Failed to create symlink for $moon_home /bin/internal/moon-pilot/lib/prompt/moonbitlang.mbt.md"
147- fi
148-
149140rm -f " $moonbit_dest " ||
150141 error " Failed to remove \" $moonbit_dest \" "
151142
You can’t perform that action at this time.
0 commit comments