Skip to content

Commit e95aca8

Browse files
committed
ci: Fix generation of .deb
Some bad assumptions were made on the operation of the application that creates the `.deb` package. This change should, now, create the correct `.deb` package. Refs: 2296
1 parent 13c55ce commit e95aca8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ else
2323
$(info GITHUB is set, not loading secrets.mk)
2424
endif
2525

26+
VERSION := $(shell echo $(tag) | sed "s/v//")
27+
2628
TRANSIFEX_TOKEN ?= help
2729

2830
.PHONY: all clean tx-pull copy-locale build-mo build-gtk2 run-gtk2 build-qt5 run-qt5 deb-package tar-gtk2 tar-qt5
@@ -92,13 +94,15 @@ deb-package: build-mo
9294
chmod +x deb/usr/share/heidisql/heidisql
9395
cp -v README.md LICENSE deb/usr/share/doc/heidisql
9496
mkdir -p dist
97+
@sed "s/%VERSION%/$(VERSION)/" deb-control.txt > control.txt
9598
rm -vf dist/*.deb
96-
fpm -s dir -t deb -n heidisql -v ${tag} \
99+
fpm -s dir -t deb -n heidisql -v $(VERSION) \
97100
-p dist \
98101
--verbose \
99-
--deb-custom-control deb-control.txt \
102+
--deb-custom-control control.txt \
100103
--deb-no-default-config-files \
101104
./deb/=/
105+
rm control.txt
102106

103107
tar-gtk2: build-mo
104108
@echo "=== Creating GTK2 archive"

deb-control.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
Package: HeidiSQL
2+
Version: %VERSION%
3+
Architecture: amd64
24
Maintainer: Ansgar Becker <anse@heidisql.com>
35
Homepage: https://www.heidisql.com
46
License: GPLv2+

0 commit comments

Comments
 (0)