From 0afcaac81f152855a6a4c9d52e09b6c369e2a4a5 Mon Sep 17 00:00:00 2001 From: Howard Wu Date: Tue, 14 Mar 2023 22:46:25 +0800 Subject: [PATCH] Only openSUSE Tumbleweed is supported --- docs/README.md | 6 +++--- scripts/install_deps.sh | 2 +- scripts/requirements.txt | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 scripts/requirements.txt diff --git a/docs/README.md b/docs/README.md index 4c721f2..470964e 100644 --- a/docs/README.md +++ b/docs/README.md @@ -11,13 +11,13 @@ | DistrOS | | | | | |:-------:|-------------------------------------------------------------------------------------------------|-------------------|------------|-----------| | Debian | `lzip wine winetricks patchelf e2fsprogs aria2 python3 python3-pip aria2 p7zip-full attr unzip` | `setools` | `whiptail` | `xz-utils` | - | SuSE | Same as above | `setools-console` | `dialog` | `xz` | + | openSUSE Tumbleweed | Same as above | `setools-console` | `dialog` | `xz` | The following components need to be installed using `winetricks`: `msxml6` The python3 library `requests` is used. - Python version ≥ 3.7. + Python version ≥ **3.7.2** - Recommended Use - Ubuntu (You can use [WSL2](https://apps.microsoft.com/store/search?publisher=Canonical%20Group%20Limited)) @@ -26,7 +26,7 @@ Need to add `contrib` sources to the source list to install winetricks. - - OpenSUSE (You can use [WSL2](https://apps.microsoft.com/store/search?publisher=SUSE)) + - openSUSE Tumbleweed (You can use [WSL2](https://apps.microsoft.com/store/detail/opensuse-tumbleweed/9MSSK2ZXXN11)) Ready to use right out of the box. diff --git a/scripts/install_deps.sh b/scripts/install_deps.sh index 9f94762..96ea546 100755 --- a/scripts/install_deps.sh +++ b/scripts/install_deps.sh @@ -119,7 +119,7 @@ if [ -n "${NEED_INSTALL[*]}" ]; then if ! ($SUDO "$PM" "${UPDATE_OPTION[@]}" && $SUDO "$PM" "${INSTALL_OPTION[@]}" "${NEED_INSTALL[@]}") then abort; fi fi fi -pip list --disable-pip-version-check | grep -E "^requests " >/dev/null 2>&1 || python3 -m pip install requests +python3 -m pip install -r requirements.txt -v if [ ! -f /proc/sys/fs/binfmt_misc/WSLInterop ] || [ "$(id -u)" == "0" ] && which wine64 > /dev/null; then winetricks list-installed | grep -E "^msxml6" >/dev/null 2>&1 || { diff --git a/scripts/requirements.txt b/scripts/requirements.txt new file mode 100644 index 0000000..f229360 --- /dev/null +++ b/scripts/requirements.txt @@ -0,0 +1 @@ +requests