mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-26 10:52:21 +00:00
Add commit id into testing version (#375)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
FROM alpine:3.13
|
||||
LABEL maintainer "tindy.it@gmail.com"
|
||||
ARG SHA=""
|
||||
|
||||
# build minimized
|
||||
WORKDIR /
|
||||
@@ -33,6 +34,7 @@ RUN apk add --no-cache --virtual .build-tools git g++ build-base linux-headers c
|
||||
cd .. && \
|
||||
git clone https://github.com/tindy2013/subconverter --depth=1 && \
|
||||
cd subconverter && \
|
||||
[ -n "$SHA" ] && sed -i 's/\(v[0-9]\.[0-9]\.[0-9]\)/\1-'"$SHA"'/' src/version.h;\
|
||||
cmake -DCMAKE_BUILD_TYPE=Release . && \
|
||||
make -j4 && \
|
||||
mv subconverter /usr/bin && \
|
||||
|
||||
Reference in New Issue
Block a user