Skip to content

Commit

Permalink
fix: fix flatpak version
Browse files Browse the repository at this point in the history
修复生成玲珑的版本号错误,如3.0.21生成结果为3..21.0的问题
  • Loading branch information
chenchongbiao authored and dengbo11 committed Nov 13, 2024
1 parent bb85320 commit 9a5f19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ll-pica-flatpak/ll-pica-flatpak
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function main() {
--base) test -z "$2" || BASE="$2"; shift 2;;
--base-version) test -z "$2" || BASE_VERSION="$2"; shift 2;;
# # 转换为玲珑的版本,规则是按'.'和'-'分割取前三位,不足三位补0,再末尾补充输入的打包版本号,如 5.15-23.08 生成 5.15.23.0
--version) test -z "$2" || VERSION="$(echo "${2/.0/.}.0.0.0" | awk -F'[-.]' 'BEGIN {OFS="."} {print $1,$2,$3}').0"; shift 2;;
--version) test -z "$2" || VERSION="$(echo "${2/.0/.}.0.0.0" | sed "s/\.\././g" | awk -F'[-.]' 'BEGIN {OFS="."} {print $1,$2,$3}').0"; shift 2;;
--build) test -z "$2" || BUILD=true; shift 1;;
--layer) test -z "$2" || LAYER=true; shift 1;;
-h|--help) test -z "$2" || "${LL_PICA_FLATPAK_PATH}/ll-pica-flatpak-utils" help; shift 1; exit 0;;
Expand Down

0 comments on commit 9a5f19f

Please sign in to comment.