From 89d88d3400a3d47fdd61834f2e8c01ebe8882194 Mon Sep 17 00:00:00 2001 From: hastmu Date: Fri, 15 Nov 2024 17:33:44 +0100 Subject: [PATCH] fix version scheme --- deploy-deb.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deploy-deb.sh b/deploy-deb.sh index e2e6fb2..4aedc48 100755 --- a/deploy-deb.sh +++ b/deploy-deb.sh @@ -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 @@ -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}"