mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
c1456fc1de
Debian no longer allows us to install packages into the system managed location. So we are replacing the pip packages with the debian packaged versions. Also removes the wine64 hack which is no longer needed. This allows us to build a new dev container again. BUG=b:270568440 TEST=presubmit Change-Id: I592ebf13bc566785fcdf4a4fa4badb3e11c8126e Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4285744 Commit-Queue: Dennis Kempin <denniskempin@google.com> Reviewed-by: Zihan Chen <zihanchen@google.com>
27 lines
1.2 KiB
Bash
Executable file
27 lines
1.2 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright 2022 The ChromiumOS Authors
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
set -ex
|
|
|
|
wine64 wineboot
|
|
|
|
WINETRICKS_COMMIT_HASH="b666e05a0bf28fd940e5c258ccdfc0a2799d1948"
|
|
WINETRICKS_URL="https://raw.githubusercontent.com/Winetricks/winetricks/"$WINETRICKS_COMMIT_HASH"/src/winetricks"
|
|
WINESTRICKS_SCRIPT_SHA="40fdf1f89f3636187201858e3591e86752172814"
|
|
|
|
# Setup wine windows prebuilt dependecies.
|
|
export WINEARCH=win64
|
|
export WINE=wine64
|
|
sudo wget "$WINETRICKS_URL" -O winetricks
|
|
echo "$WINESTRICKS_SCRIPT_SHA winetricks" | sha1sum -c -
|
|
sudo chmod +x winetricks
|
|
|
|
# winetricks command fails while setting up dll registry post installation. During docker build
|
|
# this command fails because it tries to create a regedit window but we do not have DISPLAY set.
|
|
# Failure happens after installing dlls that we need so we ignore the failure.
|
|
# TODO(b:255824543): Find a way to clean install vcrun2015
|
|
./winetricks --force vcrun2015 || true
|
|
ln -fs ~/.wine/drive_c/windows/system32/ucrtbase.dll ~/.wine/drive_c/windows/system32/ucrtbased.dll
|
|
ln -fs ~/.wine/drive_c/windows/system32/vcruntime140.dll ~/.wine/drive_c/windows/system32/vcruntime140d.dll
|
|
sudo rm winetricks
|