Skip to content

Commit

Permalink
Fix wine registration
Browse files Browse the repository at this point in the history
  • Loading branch information
malbarbo committed Apr 20, 2017
1 parent 3d3ec4d commit 7f7b5db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ use rustc;
pub fn register(target: &Target, verbose: bool) -> Result<()> {
let cmd = if target.is_windows() {
// https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html
"echo ':DOSWin:M::MZ::/usr/bin/run-detectors' > /proc/sys/fs/binfmt_misc/register"
"mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc && \
echo ':DOSWin:M::MZ::/usr/bin/run-detectors' > /proc/sys/fs/binfmt_misc/register"
} else {
"apt-get update && apt-get install --no-install-recommends -y \
binfmt-support qemu-user-static"
Expand Down

0 comments on commit 7f7b5db

Please sign in to comment.