2023-11-07 13:08:04 +00:00
|
|
|
FROM debian:bullseye-slim
|
|
|
|
|
|
|
|
RUN apt-get update
|
2023-11-09 10:25:34 +00:00
|
|
|
# First line is tauri deps, second our templating and icon manipulation ci stuff, third is for apple compile
|
|
|
|
RUN apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev nsis lld llvm \
|
|
|
|
jq curl wget inkscape imagemagick nodejs git \
|
|
|
|
clang gcc g++ zlib1g-dev libmpc-dev libmpfr-dev libgmp-dev cmake make tar patch lzma-dev libssl-dev xz-utils bzip2 cpio sed libbz2-dev zlib1g-dev llvm-dev
|
|
|
|
|
2023-11-07 13:08:04 +00:00
|
|
|
RUN sh -c 'curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup.sh'
|
|
|
|
RUN sh /tmp/rustup.sh -y && sh -c \
|
|
|
|
'. $HOME/.cargo/env && \
|
|
|
|
rustup target add x86_64-pc-windows-msvc && \
|
2023-11-09 10:25:34 +00:00
|
|
|
rustup target add x86_64-apple-darwin && \
|
|
|
|
cargo install xwin tauri-cli create-tauri-app && \
|
2023-11-07 13:08:04 +00:00
|
|
|
xwin --accept-license splat --output ~/.xwin --disable-symlinks'
|
2023-11-09 10:25:34 +00:00
|
|
|
ADD osxcross_setup.sh /tmp/osxcross_setup.sh
|
|
|
|
RUN sh /tmp/osxcross_setup.sh
|
2023-11-07 13:08:04 +00:00
|
|
|
ADD config.toml .cargo/config.toml
|