@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.
Files changed (2) hide show
  1. package/bin/be +10 -3
  2. 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.4.0"
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
- local ext=gz
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
- echo "${g_mirror_url}/v${url_version}/beplus-cli-v${url_version}-$(display_tarball_platform).tar.${ext}"
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@beplus/be",
3
3
  "description": "Interactively Manage beplus CLI Versions",
4
- "version": "0.4.0",
4
+ "version": "0.5.0",
5
5
  "author": "Igor Lamos <igor@be.plus>",
6
6
  "homepage": "https://github.com/beplus/be",
7
7
  "bugs": "https://github.com/beplus/be",