0
0

Redlib: updated colours

This commit is contained in:
Opnxng 2024-10-09 20:40:29 +08:00
parent 5e50fb6d6e
commit b1c4209da7

View File

@ -9,12 +9,12 @@ RUN apk add --no-cache curl git musl-dev
# Clone the redlib repository and build # Clone the redlib repository and build
RUN git clone https://github.com/redlib-org/redlib && \ RUN git clone https://github.com/redlib-org/redlib && \
cd redlib && \ cd redlib && \
sed -i 's/--accent: red;/--accent: #2968AC;/g' static/style.css && \
sed -i 's/--green: #5cff85;/--green: #0A8754;/g' static/style.css && \ sed -i 's/--green: #5cff85;/--green: #0A8754;/g' static/style.css && \
sed -i 's/--accent: #9a0000;/--accent: #2968AC;/g' static/style.css && \
sed -i 's/#9a0000/#2968AC/g' static/themes/light.css && \
sed -i 's/#9a0000/#2968AC/g' static/themes/black.css && \ sed -i 's/#9a0000/#2968AC/g' static/themes/black.css && \
sed -i 's/red/#2968AC/g' static/themes/dark.css && \ sed -i 's/#9a0000/#4385BE/g' static/themes/light.css && \
sed -i 's/--accent: red;/--accent: #2968AC;/g' static/style.css && \
sed -i 's/red/#4385BE/g' static/themes/dark.css && \
sed -i 's/--accent: #9a0000;/--accent: #4385BE;/g' static/style.css && \
cargo build --release --target=${TARGET} && \ cargo build --release --target=${TARGET} && \
cp target/${TARGET}/release/redlib /usr/local/bin/redlib && \ cp target/${TARGET}/release/redlib /usr/local/bin/redlib && \
cd .. && \ cd .. && \