File tree 3 files changed +11
-24
lines changed
3 files changed +11
-24
lines changed Original file line number Diff line number Diff line change 599
599
sed -i " s/qemu-${qemu_arch} -static/qemu-${qemu_arch} /g" " ${wine_root} /bin/${bin} "
600
600
done
601
601
cp " ${wine_root} " /lib/ld-linux-aarch64.so.1 /lib/
602
- wineprefix=" export WINEPREFIX=\$ {WINEPREFIX:-${wine_root} /wine-prefix}"
603
602
[[ -f " ${toolchain_dir} /bin/qemu-${qemu_arch} " ]] || cp " $( type -P " qemu-${qemu_arch} " ) " " ${toolchain_dir} /bin"
604
603
" qemu-${qemu_arch} " --version
605
604
;;
610
609
set -eu
611
610
toolchain_dir="\$ (cd "\$ (dirname "\$ 0")"/.. && pwd)"
612
611
export WINEPATH="${winepath} ;\$ {WINEPATH:-}"
613
- ${wineprefix:- }
614
612
exec ${wine_exe} "\$ @"
615
613
EOF
616
614
chmod +x " ${toolchain_dir} /bin/${runner} "
Original file line number Diff line number Diff line change @@ -307,29 +307,18 @@ if [[ -z "${no_std}" ]]; then
307
307
amd64)
308
308
case " ${RUST_TARGET} " in
309
309
* -windows-gnu* )
310
+ export HOME=/tmp/home
311
+ mkdir -p " ${HOME} " /.wine
312
+ export WINEPREFIX=/tmp/wine
313
+ mkdir -p " ${WINEPREFIX} "
310
314
case " ${RUST_TARGET} " in
311
- aarch64* )
312
- wine_root=/opt/wine-arm64
313
- export HOME=/tmp/home
314
- mkdir -p " ${HOME} /.wine"
315
- if [[ ! -e /WINEBOOT ]]; then
316
- x " ${wine_root} /bin/wineserver" & > /dev/null
317
- touch /WINEBOOT
318
- fi
319
- ;;
320
- * )
321
- # Adapted from https://github.com/cross-rs/cross/blob/16a64e7028d90a3fdf285cfd642cdde9443c0645/docker/windows-entry.sh
322
- export HOME=/tmp/home
323
- mkdir -p " ${HOME} "
324
- # Initialize the wine prefix (virtual windows installation)
325
- export WINEPREFIX=/tmp/wine
326
- mkdir -p " ${WINEPREFIX} "
327
- if [[ ! -e /WINEBOOT ]]; then
328
- x wineboot & > /dev/null
329
- touch /WINEBOOT
330
- fi
331
- ;;
315
+ aarch64* ) wineboot=/opt/wine-arm64/bin/wineserver ;;
316
+ * ) wineboot=wineboot ;;
332
317
esac
318
+ if [[ ! -e /WINEBOOT ]]; then
319
+ x " ${wineboot} " & > /dev/null
320
+ touch /WINEBOOT
321
+ fi
333
322
;;
334
323
esac
335
324
;;
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ COPY --from=ghcr.io/taiki-e/qemu-user /usr/bin/qemu-aarch64 /usr/bin/
80
80
COPY --from=linaro/wine-arm64 /opt/wine-arm64 /opt/wine-arm64
81
81
RUN <<EOF
82
82
case "${RUST_TARGET}" in
83
- aarch64*) ;;
83
+ aarch64*) rm -rf /opt/wine-arm64/wine-prefix ;;
84
84
*)
85
85
rm -rf /opt/wine-arm64
86
86
mkdir -p /opt/wine-arm64
You can’t perform that action at this time.
0 commit comments