3 # The custom functions for Deno are here.
4 # For the generic functions - version checks, download, extract, etc:
5 # See https://github.com/webinstall/packages/branches/master/_webi/template.sh
12 # IMPORTANT: this let's other functions know to expect this to be a single file
15 pkg_get_current_version() {
16 # 'deno --version' has output in this format:
20 # This trims it down to just the version number:
22 echo "$(deno --version 2>/dev/null | head -n 1 | cut -d' ' -f2)"
27 mkdir -p "$pkg_src_bin"
29 # mv ./deno* "$HOME/.local/xbin/deno-v1.1.0"
30 mv ./"$pkg_cmd_name"* "$pkg_src_cmd"
32 # chmod a+x "$HOME/.local/xbin/deno-v1.1.0"
33 chmod a+x "$pkg_src_cmd"
37 # rm -f "$HOME/.local/bin/deno"
40 # ln -s "$HOME/.local/xbin/deno-v1.1.0" "$HOME/.local/bin/deno"
41 ln -s "$pkg_src_cmd" "$pkg_dst_cmd"