@beplus/be 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/be +10 -3
- package/package.json +1 -1
package/bin/be
CHANGED
|
@@ -64,7 +64,7 @@ function n_grep() {
|
|
|
64
64
|
# Setup and state
|
|
65
65
|
#
|
|
66
66
|
|
|
67
|
-
VERSION="v0.
|
|
67
|
+
VERSION="v0.5.0"
|
|
68
68
|
|
|
69
69
|
BE_PREFIX="${BE_PREFIX-/usr/local}"
|
|
70
70
|
BE_PREFIX=${BE_PREFIX%/}
|
|
@@ -919,10 +919,17 @@ function display_compatible_file_field {
|
|
|
919
919
|
|
|
920
920
|
function tarball_url() {
|
|
921
921
|
local version="$1"
|
|
922
|
+
|
|
923
|
+
# Full release version (used in GitHub tag / path)
|
|
922
924
|
local url_version="${version//+/%2B}"
|
|
923
|
-
|
|
925
|
+
|
|
926
|
+
# Artifact version (filename MUST NOT contain +suffix)
|
|
927
|
+
local artifact_version="${version%%+*}"
|
|
928
|
+
|
|
929
|
+
local ext="gz"
|
|
924
930
|
[ "$BE_USE_XZ" = "true" ] && ext="xz"
|
|
925
|
-
|
|
931
|
+
|
|
932
|
+
echo "${g_mirror_url}/v${url_version}/beplus-cli-v${artifact_version}-$(display_tarball_platform).tar.${ext}"
|
|
926
933
|
}
|
|
927
934
|
|
|
928
935
|
#
|
package/package.json
CHANGED