Skip to content

Commit

Permalink
chore: Add moon_cove_report download support for non-windows OS
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Apr 27, 2024
1 parent 1f83603 commit aa09973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nu/moonbit.nu
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def fetch-bin [ bin: string, download_path: string ] {
# Download moonbit binary files to local
export def 'setup moonbit' [] {
let MOONBIT_BIN_DIR = [$nu.home-path '.moon'] | path join
const DEFAULT_BINS = ['moon', 'moonc', 'moonfmt', 'moonrun', 'mooninfo', 'moondoc']
const WINDOWS_BINS = ['moon.exe', 'moonc.exe', 'moonfmt.exe', 'moonrun.exe', 'moondoc.exe']
const DEFAULT_BINS = [moon, moonc, moonfmt, moonrun, mooninfo, moondoc, moon_cove_report]
const WINDOWS_BINS = [moon.exe, moonc.exe, moonfmt.exe, moonrun.exe, moondoc.exe]
mkdir $MOONBIT_BIN_DIR; cd $MOONBIT_BIN_DIR
let OS_INFO = $'($nu.os-info.name)_($nu.os-info.arch)'
let DOWNLOAD_PATH = $CLI_DOWNLOAD_PATH | get -i $OS_INFO
Expand Down

0 comments on commit aa09973

Please sign in to comment.