Add mobile mode and print cut controls
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user