You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to set up msvc-wine-rust in an alpine container. This is mostly documentation on what I needed to go to get it to work.
When it gets to the sha256sum --quiet --check dl.sha256 || exit 2 step, the script exits out with the message
sha256sum: unrecognized option: quiet
BusyBox v1.31.1 () multi-call binary.
Usage: sha256sum [-c[sw]] [FILE]...
Print or check SHA256 checksums
-c Check sums against list in FILEs
-s Don't output anything, status code shows success -w Warn about improperly formatted checksum lines
Replacing the call with sha256sum -s -c dl.sha256 || exit 2 does seem to work. I used this sed script:
RUN sed -i "s/sha256sum --quiet --check/sha256sum -s -c/g" get.sh
Then I got the error
sha256sum: can't open 'dl/Universal CRT Headers Libraries and Sources-x86_en-us.msi': No such file or directorysha256sum: can't open 'dl/Windows SDK Desktop Libs x64-x86_en-us.msi': No such file or directory
sha256sum: can't open 'dl/Windows SDK Desktop Libs x86-x86_en-us.msi': No such file or directorysha256sum: can't open 'dl/Windows SDK for Windows Store Apps Libs-x86_en-us.msi': No such file or directory
When checking the dl folder it seems like the files are there but the space is replaced by a %20
/app/msvc-wine-rust # ls dl/*.msi
dl/Universal%20CRT%20Headers%20Libraries%20and%20Sources-x86_en-us.msi
dl/Windows%20SDK%20Desktop%20Libs%20x64-x86_en-us.msi
dl/Windows%20SDK%20Desktop%20Libs%20x86-x86_en-us.msi
dl/Windows%20SDK%20for%20Windows%20Store%20Apps%20Libs-x86_en-us.msi
Simply replacing the files with a \ works:
RUN sh get.sh licenses-accepted ||true# make sure it doesn't exit the docker script
RUN mv dl/Universal%20CRT%20Headers%20Libraries%20and%20Sources-x86_en-us.msi \
dl/Universal\ CRT\ Headers\ Libraries\ and\ Sources-x86_en-us.msi
RUN mv dl/Windows%20SDK%20Desktop%20Libs%20x64-x86_en-us.msi \
dl/Windows\ SDK\ Desktop\ Libs\ x64-x86_en-us.msi
RUN mv dl/Windows%20SDK%20Desktop%20Libs%20x86-x86_en-us.msi \
dl/Windows\ SDK\ Desktop\ Libs\ x86-x86_en-us.msi
RUN mv dl/Windows%20SDK%20for%20Windows%20Store%20Apps%20Libs-x86_en-us.msi \
dl/Windows\ SDK\ for\ Windows\ Store\ Apps\ Libs-x86_en-us.msi
After that I get the error unzip: can't open tracted/tools[.zip]
This seems to be fixed by replacing the entire extract_vsix function with the following code:
The issue with the wget %20 is because alpine has it's own special little wget installed by default. Installing the "normal" wget fixes the naming issue
I'm trying to set up msvc-wine-rust in an alpine container. This is mostly documentation on what I needed to go to get it to work.
When it gets to the
sha256sum --quiet --check dl.sha256 || exit 2
step, the script exits out with the messageReplacing the call with
sha256sum -s -c dl.sha256 || exit 2
does seem to work. I used this sed script:RUN sed -i "s/sha256sum --quiet --check/sha256sum -s -c/g" get.sh
Then I got the error
When checking the
dl
folder it seems like the files are there but the space is replaced by a %20/app/msvc-wine-rust # ls dl/*.msi dl/Universal%20CRT%20Headers%20Libraries%20and%20Sources-x86_en-us.msi dl/Windows%20SDK%20Desktop%20Libs%20x64-x86_en-us.msi dl/Windows%20SDK%20Desktop%20Libs%20x86-x86_en-us.msi dl/Windows%20SDK%20for%20Windows%20Store%20Apps%20Libs-x86_en-us.msi
Simply replacing the files with a
\
works:After that I get the error
unzip: can't open tracted/tools[.zip]
This seems to be fixed by replacing the entire
extract_vsix
function with the following code:After fiddling some time with missing alpine packages, I ended up on cargo trying to build x86_64-pc-windows-msvc, but it resulted in this error:
Which might be an issue with
spirv_cross
, I'm not sure yet. Will investigate moreMy current script is:
get.sh.patch
Dockerfile
The text was updated successfully, but these errors were encountered: