Skip to content

Commit

Permalink
fix: Fix moonbit setup and release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Jun 10, 2024
1 parent 4650577 commit a03fa3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions nu/moonbit.nu
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ export def 'setup moonbit' [] {
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
if ($DOWNLOAD_PATH | is-empty) { echo $'Unsupported Platform: ($OS_INFO)'; exit 2 }
if ($DOWNLOAD_PATH | is-empty) { print $'Unsupported Platform: ($OS_INFO)'; exit 2 }

if (windows?) {
$WINDOWS_BINS | each {|it| fetch-bin $it $DOWNLOAD_PATH }
} else {
$DEFAULT_BINS | each {|it| fetch-bin $it $DOWNLOAD_PATH; chmod +x $it }
}

echo 'OS Info:'; echo $nu.os-info; hr-line
echo $'Contents of ($MOONBIT_BIN_DIR):'; hr-line -b
echo (ls -l $MOONBIT_BIN_DIR)
print 'OS Info:'; print $nu.os-info; hr-line
print $'Contents of ($MOONBIT_BIN_DIR):'; hr-line -b
print (ls -l $MOONBIT_BIN_DIR)
if ('GITHUB_PATH' in $env) {
echo $MOONBIT_BIN_DIR | save -a $env.GITHUB_PATH
print $MOONBIT_BIN_DIR | save -a $env.GITHUB_PATH
}
}

Expand Down
2 changes: 1 addition & 1 deletion nu/release.nu
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ export def 'make-release' [
# Remove local major version tag if exists and ignore errors
do -i { git tag -d $majorTag | complete | ignore }
git checkout $releaseVer; git tag $majorTag
git push origin $majorTag $releaseVer
git push origin $majorTag $releaseVer --force
}

0 comments on commit a03fa3d

Please sign in to comment.