Skip to content

Commit ace666a

Browse files
committed
Devtools: Install translation tools
1 parent 4649687 commit ace666a

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

devtools/Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ RUN apt-get -q update \
1717
python3 \
1818
python3-debian \
1919
python3-pip \
20+
# Translation tools
21+
python3-defusedxml \
22+
qt6-l10n-tools \
2023
# Tools used on CI
2124
curl \
2225
file \
@@ -27,8 +30,8 @@ RUN apt-get -q update \
2730
# Configure default clang-format
2831
RUN update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 50
2932

30-
# Put qhelpgenerator in PATH
31-
RUN ln -s /usr/lib/qt6/libexec/qhelpgenerator /usr/local/bin/qhelpgenerator
33+
# Put Qt tools in PATH (lupdate, qhelpgenerator, ...)
34+
ENV PATH="$PATH:/usr/lib/qt6/bin:/usr/lib/qt6/libexec"
3235

3336
# Install Rust, including rustdoc, rustfmt, rust-clippy
3437
# Make .cargo/ writable for everyone to allow running the container as non-root.
@@ -41,6 +44,12 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
4144
&& chmod 777 $RUSTUP_HOME \
4245
&& chmod 777 $CARGO_HOME
4346

47+
# Install slint-tr-extractor for usage on LibrePCB server
48+
ARG SLINT_TR_EXTRACTOR_VERSION="1.10.0"
49+
RUN cargo install --version $SLINT_TR_EXTRACTOR_VERSION slint-tr-extractor \
50+
&& rm -rf $CARGO_HOME/registry \
51+
&& slint-tr-extractor --version
52+
4453
# Install slint-lsp for its formatter
4554
ARG SLINT_LSP_VERSION="1.10.0"
4655
ARG SLINT_LSP_URL="https://github.com/slint-ui/slint/releases/download/v${SLINT_LSP_VERSION}/slint-lsp-linux.tar.gz"

0 commit comments

Comments
 (0)