Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .scripts/powershell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ try {
}
Write-Output "Downloading moonbit ..."
Invoke-WebRequest -Uri $MoonbitUri -OutFile "${HOME}\moonbit.zip"
if (Test-Path -Path "$MoonHome\bin" -PathType Container) {
Remove-Item -Force -Recurse "$MoonHome\bin"
}
if (Test-Path -Path "$MoonHome\lib" -PathType Container) {
Remove-Item -Force -Recurse "$MoonHome\lib"
}
Expand Down Expand Up @@ -100,4 +97,4 @@ else {

Write-Output "To verify the download binaries, check https://www.moonbitlang.com/download#verifying-binaries for instructions."

Write-Output "To know how to add shell completions, run 'moon shell-completion --help'"
Write-Output "To know how to add shell completions, run 'moon shell-completion --help'"
9 changes: 3 additions & 6 deletions .scripts/unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,6 @@ echo "Downloading moonbit ..."
curl --fail --location --progress-bar --output "$moonbit_dest" "$moonbit_uri" ||
error "Failed to download moonbit from \"$moonbit_uri\""

rm -rf "${moon_home:?}/bin" ||
error "Failed to remove existing moonbit binaries"

rm -rf "${moon_home:?}/lib" ||
error "Failed to remove existing moonbit libraries"

Expand Down Expand Up @@ -174,15 +171,15 @@ rm -f "$core_dest" ||

echo "Bundling core ..."

PATH=$bin_dir $exe bundle --warn-list -a --all --source-dir "$lib_dir"/core ||
PATH=$bin_dir $exe -C "$lib_dir"/core bundle --warn-list -a --all ||
error "Failed to bundle core"

if [[ $version == "nightly" ]]; then
PATH=$bin_dir $exe bundle --warn-list -a --target llvm --source-dir "$lib_dir"/core ||
PATH=$bin_dir $exe -C "$lib_dir"/core bundle --warn-list -a --target llvm ||
error "Failed to bundle core for llvm backend"
fi

PATH=$bin_dir $exe bundle --warn-list -a --target wasm-gc --source-dir "$lib_dir"/core --quiet ||
PATH=$bin_dir $exe -C "$lib_dir"/core bundle --warn-list -a --target wasm-gc --quiet ||
error "Failed to bundle core to wasm-gc"

tildify() {
Expand Down