Add mobile mode and print cut controls

This commit is contained in:
Mikei386
2026-06-22 06:46:52 +02:00
parent 7029ee9519
commit a6025eef47
10 changed files with 303 additions and 48 deletions
+3 -1
View File
@@ -2,8 +2,10 @@ FROM alpine:3.20 AS ptouch-build
RUN apk add --no-cache build-base cmake gd-dev gettext-dev git libusb-dev pkgconf
RUN git clone --depth 1 --branch farix-main https://github.com/farixembedded/ptouch-print.git /src/ptouch
COPY patches/ptouch-print-cut-options.patch /tmp/ptouch-print-cut-options.patch
WORKDIR /src/ptouch
RUN cmake -S . -B build -DCMAKE_BUILD_TYPE=Release \
RUN patch -p1 < /tmp/ptouch-print-cut-options.patch \
&& cmake -S . -B build -DCMAKE_BUILD_TYPE=Release \
&& cmake --build build \
&& install -m 0755 build/ptouch-print /usr/local/bin/ptouch-print