Skip to content

Commit

Permalink
fix version scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
hastmu committed Nov 15, 2024
1 parent 24e8416 commit 89d88d3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions deploy-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ source .include.common.sh
branch_tag=${tag_hash[${branch_hash}]:="none"}
if [ "${branch_tag}" == "none" ]
then
branch_version="0.0.0"
branch_tag="${branch_hash:0:7}-$(date +%s)"
branch_version="0.0.1"
branch_tag="$(date +%s)"
else
branch_version="${branch_tag//v/}"
fi
Expand All @@ -66,7 +66,8 @@ source .include.common.sh
gen_control_file
gen_rootfs
find "${DPKG_BUILD_ROOT}"
deb_name="${DEBIAN["Package"]}-${DEBIAN["Version"]}_${DEBIAN["Architecture"]}.deb"
#deb_name="${DEBIAN["Package"]}-${DEBIAN["Version"]}_${DEBIAN["Architecture"]}.deb"
deb_name="${DEBIAN["Package"]}-${branch_version}-${branch_name}-${branch_hash:0:7}-${branch_tag}_${DEBIAN["Architecture"]}.deb"
if dpkg -b "${DPKG_BUILD_ROOT}" "${T_DIR}/.dpkg-root/${deb_name}"
then
ls -al "${T_DIR}/.dpkg-root/${deb_name}"
Expand Down

0 comments on commit 89d88d3

Please sign in to comment.