Skip to content

Commit 71fd39b

Browse files
committed
Update .deb file generation
1 parent 3592abf commit 71fd39b

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

Makefile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,22 @@ build: install
4040
--noconfirm
4141

4242
# Target to create .deb file
43-
build-deb:
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
4459

4560
echo "Version: $(shell pytgpt --version | grep -oP 'version \K[\d.]+')" >> $(DEB)/DEBIAN/control
4661

0 commit comments

Comments
 (0)