Skip to content

Commit e02e886

Browse files
committed
Update windows docker
Signed-off-by: Fabrice Desclaux <fabrice.desclaux@cea.fr>
1 parent ca9533f commit e02e886

File tree

1 file changed

+23
-10
lines changed

1 file changed

+23
-10
lines changed

build/Dockerfile-windows

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,32 +24,45 @@ RUN set -eux; \
2424
unzip \
2525
sudo \
2626
git \
27-
fakeroot; \
27+
fakeroot;
28+
29+
RUN set -eux; \
2830
useradd -ms /bin/bash builduser ; \
2931
passwd -d builduser ; \
3032
printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers ; \
3133
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path ; \
3234
rustup target add x86_64-pc-windows-gnu ; \
33-
rustup toolchain install stable-x86_64-pc-windows-gnu ; \
34-
for lib in SECUR32 KERNEL32 OLEAUT32 OLE32 ; do ln -s /usr/x86_64-w64-mingw32/lib/lib${lib,,}.a /usr/x86_64-w64-mingw32/lib/lib${lib}.a ; done ; \
35+
rustup toolchain install --force-non-host stable-x86_64-pc-windows-gnu ; \
36+
for lib in SECUR32 KERNEL32 OLEAUT32 OLE32 ; do ln -s /usr/x86_64-w64-mingw32/lib/lib${lib,,}.a /usr/x86_64-w64-mingw32/lib/lib${lib}.a ; done
37+
38+
RUN set -eux; \
3539
pacman -S --noconfirm \
3640
libxtst \
3741
libxext \
3842
ffmpeg \
3943
libxdamage \
4044
libxfixes \
41-
curl ; \
42-
cd /tmp/ ; \
43-
curl -L -o /tmp/ffmpeg.zip https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n4.4-latest-win64-gpl-shared-4.4.zip ; \
45+
curl ; \
46+
cd /tmp ; \
47+
curl -L -o /tmp/ffmpeg.zip https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n6.0-latest-win64-gpl-shared-6.0.zip ; \
4448
unzip /tmp/ffmpeg.zip ; cd /tmp/ffmpeg*/bin/ ; \
4549
for lib in *.dll ; do echo ${lib} ; \
4650
cp $lib /usr/x86_64-w64-mingw32/lib/${lib} ; \
4751
ln -s /usr/x86_64-w64-mingw32/lib/${lib} /usr/x86_64-w64-mingw32/lib/${lib/-*.dll/.dll} ; \
48-
done; \
52+
done;
53+
54+
55+
RUN set -eux; \
56+
sudo bash -c "echo 'Defaults env_keep += \"ftp_proxy http_proxy https_proxy no_proxy\"' >> /etc/sudoers" ; \
57+
sudo cat /etc/sudoers
58+
59+
RUN set -eux; \
4960
cd /tmp ; \
50-
sudo --preserve-env=https_proxy -u builduser bash -c 'git clone https://aur.archlinux.org/aurman.git ; cd aurman ; \
51-
makepkg --skippgpcheck --noconfirm -si' ; \
52-
sudo --preserve-env=https_proxy --preserve-env=http_proxy -u builduser bash -c 'aurman --noconfirm --skip_news --noedit -S mingw-w64-opus' ;
61+
sudo -u builduser bash -c 'git clone https://aur.archlinux.org/pikaur.git ; cd pikaur ; \
62+
makepkg --noconfirm -si'
63+
64+
RUN set -eux; \
65+
sudo -u builduser bash -c 'pikaur --noconfirm --noedit -S mingw-w64-opus' ;
5366

5467

5568
WORKDIR /SRC

0 commit comments

Comments
 (0)