From 9ad74bd826c28a27d6f96e6f232fcdb9e4057fb2 Mon Sep 17 00:00:00 2001 From: Rishon Date: Thu, 12 Dec 2024 20:42:53 +0530 Subject: [PATCH] Save #1 --- README.txt | 8 +++----- core/wine-installer-debian.sh | 4 ++-- core/wine-repair.sh | 0 winehq-installer.sh | 12 ++++++------ 4 files changed, 11 insertions(+), 13 deletions(-) create mode 100644 core/wine-repair.sh diff --git a/README.txt b/README.txt index 91b978a..97ca7fd 100644 --- a/README.txt +++ b/README.txt @@ -1,11 +1,9 @@ Hi! Thank you for choosing winehq-installer as a way to automate many wine-related processes. This is all the information You need to know about this application. Not to be confused with "README.md" as that file is for display in github. -wine-installer-ubuntu.sh -> This script can be used for installing wine on ubuntu & and ubuntu based distributions. - -wine-installer-debian -> This script can be used for installing wine on debian & debian based distributions (With a few exceptions like ubuntu). - -wine-installer-fedora.sh -> This script can be used for installing wine on fedora & and fedora based distributions +winehq-installer.sh -> The main app. This detects your distro and installs,updates, upgrades accordingly. +Common Errors: +"ERROR: Unable to enable 32-bit support." -> dpkg has failed to enable 32 bit support for installing packages, Any bugs found in the script report to "https://github.com/RishonDev/winehq-installer/issues" immediately(This requires a github account) Under Issues > New issue. Any questions can be asked in the same way. diff --git a/core/wine-installer-debian.sh b/core/wine-installer-debian.sh index 2124d36..da2e28b 100644 --- a/core/wine-installer-debian.sh +++ b/core/wine-installer-debian.sh @@ -1,7 +1,7 @@ while getopts ":v:" opt; do case $opt in v) - echo "3.0.0" + echo "4.0.1" ;; \?) echo "Invalid option: -$OPTARG" >&2 @@ -36,7 +36,7 @@ echo "Enabling 32-bit support... " spin & SPIN_PID=$! trap "kill -9 $SPIN_PID" `seq 0 15` -sudo dpkg --add-architecture i386 +sudo dpkg --add-architecture i386 || { echo 'ERROR: Unable to enable 32-bit support.' ; exit 1; } kill -9 $SPIN_PID diff --git a/core/wine-repair.sh b/core/wine-repair.sh new file mode 100644 index 0000000..e69de29 diff --git a/winehq-installer.sh b/winehq-installer.sh index bd96e84..220969c 100644 --- a/winehq-installer.sh +++ b/winehq-installer.sh @@ -17,13 +17,13 @@ fedora(){ print_usage() { echo "Options:" echo "-ubuntu Enters the Ubuntu installer of wine" - echo "-fedora Installs ubuntu version of wine" - echo "-debian Installs debian version of wine" + echo "-fedora Enters the Fedora installer of wine" + echo "-debian Enters the Debian installer of wine" echo "-version Prints app information" - - echo "-verbose" - echo "-silent" - echo "-log" + echo "-upgrade Upgrades your Wine. Ubuntu updates may be applied for the smooth experience for wine." + echo "-verbose Displays all the logs on screen." + echo "-silent Finishes All the processes with no output. Useful for using it in the background.." + echo "-log Adds debug logs to process any errors." } while getopts 'abf:v' flag; do