Skip to content

Commit 3592abf

Browse files
committed
Update .deb file generation
1 parent 30d90e1 commit 3592abf

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

Makefile

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,29 +40,16 @@ build: install
4040
--noconfirm
4141

4242
# Target to create .deb file
43-
build-deb: install
44-
$(PYINSTALLER) main.py \
45-
--onedir \
46-
--exclude pandas \
47-
--paths $(shell pwd) \
48-
--distpath $(DEBLIB) \
49-
--workpath build/$(shell uname) \
50-
--log-level INFO \
51-
--exclude numpy \
52-
--exclude matplotlib \
53-
--exclude PyQt5 \
54-
--exclude PyQt6 \
55-
--exclude share \
56-
--name pytgpt \
57-
--contents-directory . \
58-
--noconfirm
43+
build-deb:
44+
45+
echo "Version: $(shell pytgpt --version | grep -oP 'version \K[\d.]+')" >> $(DEB)/DEBIAN/control
5946

6047
echo "/usr/lib/pytgpt\n"\
6148
"/usr/bin/pytgpt\n"\
6249
"/usr/share/applications/icons/pytgpt.png\n"\
6350
"/usr/share/applications/pytgpt.desktop" > $(DEBLIB)/pytgpt/entries.txt
6451

65-
# cp assets/logo.png $(DEB)/usr/share/applications/icons/pytgpt.png
52+
echo "Installed-Size: $(shell du -sh -B KB assets/deb | awk '{print $1}')" >> $(DEB)/DEBIAN/control
6653

6754
dpkg-deb --build -Zxz $(DEB) pytgpt.deb
6855

assets/deb/DEBIAN/control

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Package: pytgpt
2-
Version: 0.3.4
2+
Homepage: http://github.com/Simatwa/python-tgpt
33
Section: utils
44
Priority: optional
5-
Architecture: all
5+
Architecture: amd64
66
Maintainer: Smartwa Caleb <[email protected]>
77
Description: An application that uses free LLM providers to generate text.
8+
Depends: libc6 (>= 2.17)

0 commit comments

Comments
 (0)