Browse Source

chore: don't prefix version string with "v" in package.json.

20230320
Jixun 2 years ago
parent
commit
b480088bb6
  1. 4
      package.json
  2. 2
      scripts/build-and-package.sh

4
package.json

@ -1,6 +1,6 @@
{ {
"name": "unlock-music", "name": "unlock-music",
"version": "v1.10.3", "version": "1.10.3",
"ext_build": 0, "ext_build": 0,
"updateInfo": "完善音乐标签编辑功能,支持编辑更多标签", "updateInfo": "完善音乐标签编辑功能,支持编辑更多标签",
"license": "MIT", "license": "MIT",
@ -56,4 +56,4 @@
"vue-cli-plugin-element": "^1.0.1", "vue-cli-plugin-element": "^1.0.1",
"vue-template-compiler": "^2.6.14" "vue-template-compiler": "^2.6.14"
} }
} }

2
scripts/build-and-package.sh

@ -5,7 +5,7 @@ set -ex
cd "$(git rev-parse --show-toplevel)" cd "$(git rev-parse --show-toplevel)"
VERSION="$(jq -r ".version" <package.json)" VERSION="$(jq -r ".version" <package.json)"
DIST_NAME="um-web.$1.${VERSION}" DIST_NAME="um-web.$1.v${VERSION}"
case "$1" in case "$1" in
"modern") npm run build -- --modern ;; "modern") npm run build -- --modern ;;

Loading…
Cancel
Save