mirror of
https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux.git
synced 2025-11-15 17:45:53 +01:00
Changed requirement-check-dialog
I have changed the function "requirement-check" to "requirement-check-dialog+wmctrl", because with the package wmctrl we can maximize the window of the terminal. So I have solved this issue "https://github.com/cryinkfly/Fusion-360---Linux-Wine-Version-/issues/56"automatically !
This commit is contained in:
@@ -7,8 +7,8 @@
|
|||||||
# Author URI: https://cryinkfly.com
|
# Author URI: https://cryinkfly.com
|
||||||
# License: MIT
|
# License: MIT
|
||||||
# Copyright (c) 2020-2021
|
# Copyright (c) 2020-2021
|
||||||
# Time/Date: 14:00/08.08.2021
|
# Time/Date: 18:00/08.08.2021
|
||||||
# Version: 2.8
|
# Version: 2.9
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
@@ -26,35 +26,35 @@
|
|||||||
# 2. Step: The installation will now start and set up everything for you automatically.
|
# 2. Step: The installation will now start and set up everything for you automatically.
|
||||||
############################################################################################################################################################
|
############################################################################################################################################################
|
||||||
|
|
||||||
function requirement-check-dialog {
|
function requirement-check-dialog+wmctrl {
|
||||||
echo "Find your correct package manager and install the package dialog, what you need for the installation of Autodesk Fusion 360!"
|
echo "Find your correct package manager and install the package dialog and wmctrl, what you need for the installation of Autodesk Fusion 360!"
|
||||||
echo -n "Do you wish to install this package (y/n)?"
|
echo -n "Do you wish to install this package (y/n)?"
|
||||||
read answer
|
read answer
|
||||||
if [ "$answer" != "${answer#[Yy]}" ] ;then
|
if [ "$answer" != "${answer#[Yy]}" ] ;then
|
||||||
install-dialog
|
install-dialog+wmctrl
|
||||||
else
|
else
|
||||||
exit;
|
exit;
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function install-dialog {
|
function install-dialog+wmctrl {
|
||||||
if VERB="$( which apt-get )" 2> /dev/null; then
|
if VERB="$( which apt-get )" 2> /dev/null; then
|
||||||
echo "Debian-based"
|
echo "Debian-based"
|
||||||
sudo apt-get update &&
|
sudo apt-get update &&
|
||||||
sudo apt-get install dialog
|
sudo apt-get install dialog wmctrl
|
||||||
elif VERB="$( which dnf )" 2> /dev/null; then
|
elif VERB="$( which dnf )" 2> /dev/null; then
|
||||||
echo "RedHat-based"
|
echo "RedHat-based"
|
||||||
sudo dnf update &&
|
sudo dnf update &&
|
||||||
sudo dnf install dialog
|
sudo dnf install dialog wmctrl
|
||||||
elif VERB="$( which pacman )" 2> /dev/null; then
|
elif VERB="$( which pacman )" 2> /dev/null; then
|
||||||
echo "Arch-based"
|
echo "Arch-based"
|
||||||
sudo pacman -Sy dialog
|
sudo pacman -Sy dialog wmctrl
|
||||||
elif VERB="$( which zypper )" 2> /dev/null; then
|
elif VERB="$( which zypper )" 2> /dev/null; then
|
||||||
echo "openSUSE-based"
|
echo "openSUSE-based"
|
||||||
su -c 'zypper up && zypper install dialog'
|
su -c 'zypper up && zypper install dialog wmctrl'
|
||||||
elif VERB="$( which xbps-install )" 2> /dev/null; then
|
elif VERB="$( which xbps-install )" 2> /dev/null; then
|
||||||
echo "Void-based"
|
echo "Void-based"
|
||||||
sudo xbps-install -Sy dialog
|
sudo xbps-install -Sy dialog wmctrl
|
||||||
else
|
else
|
||||||
echo "I can't find your package manager!"
|
echo "I can't find your package manager!"
|
||||||
exit;
|
exit;
|
||||||
@@ -66,7 +66,7 @@ function welcome_screen {
|
|||||||
HEIGHT=15
|
HEIGHT=15
|
||||||
WIDTH=60
|
WIDTH=60
|
||||||
CHOICE_HEIGHT=2
|
CHOICE_HEIGHT=2
|
||||||
BACKTITLE="Installation of Autodesk Fusion360 - Version 2.8"
|
BACKTITLE="Installation of Autodesk Fusion360 - Version 2.9"
|
||||||
TITLE="Do you wish to install Autodesk Fusion 360?"
|
TITLE="Do you wish to install Autodesk Fusion 360?"
|
||||||
MENU="Choose one of the following options:"
|
MENU="Choose one of the following options:"
|
||||||
|
|
||||||
@@ -96,7 +96,7 @@ function select_your_os {
|
|||||||
HEIGHT=15
|
HEIGHT=15
|
||||||
WIDTH=60
|
WIDTH=60
|
||||||
CHOICE_HEIGHT=10
|
CHOICE_HEIGHT=10
|
||||||
BACKTITLE="Installation of Autodesk Fusion360 - Version 2.8"
|
BACKTITLE="Installation of Autodesk Fusion360 - Version 2.9"
|
||||||
TITLE="Select your Linux distribution"
|
TITLE="Select your Linux distribution"
|
||||||
MENU="Choose one of the following options:"
|
MENU="Choose one of the following options:"
|
||||||
|
|
||||||
@@ -198,7 +198,7 @@ HEIGHT=15
|
|||||||
WIDTH=200
|
WIDTH=200
|
||||||
CHOICE_HEIGHT=2
|
CHOICE_HEIGHT=2
|
||||||
CHOICE_WIDTH=200
|
CHOICE_WIDTH=200
|
||||||
BACKTITLE="Installation of Autodesk Fusion360 - Version 2.8"
|
BACKTITLE="Installation of Autodesk Fusion360 - Version 2.9"
|
||||||
TITLE="Choose setup type"
|
TITLE="Choose setup type"
|
||||||
MENU="Choose the kind of setup that best suits your needs."
|
MENU="Choose the kind of setup that best suits your needs."
|
||||||
|
|
||||||
@@ -227,15 +227,15 @@ esac
|
|||||||
|
|
||||||
|
|
||||||
function select_your_path_custom {
|
function select_your_path_custom {
|
||||||
dialog --backtitle "Installation of Autodesk Fusion360 - Version 2.8" \
|
dialog --backtitle "Installation of Autodesk Fusion360 - Version 2.9" \
|
||||||
--title "Description - Configure the installation location" \
|
--title "Description - Configure the installation location" \
|
||||||
--msgbox 'Now you have to determine where you want to install Fusion 360 and then the .fusion360 folder will be created for you automatically. For examlble you can install it on a external usb-drive: /run/media/user/usb-drive/wine/.fusion360 or you install it into your home folder: /home/YOUR-USERNAME/.wine-prefixes/fusion360).' 14 200
|
--msgbox 'Now you have to determine where you want to install Fusion 360 and then the .fusion360 folder will be created for you automatically. For examlble you can install it on a external usb-drive: /run/media/user/usb-drive/wine/.fusion360 or you install it into your home folder: /home/YOUR-USERNAME/.wine-prefixes/fusion360).' 14 200
|
||||||
|
|
||||||
filename=$(dialog --stdout --title "Enter the installation path for Fusion 360:" --backtitle "Installation of Autodesk Fusion360 - Version 2.8" --fselect $HOME/ 14 100)
|
filename=$(dialog --stdout --title "Enter the installation path for Fusion 360:" --backtitle "Installation of Autodesk Fusion360 - Version 2.9" --fselect $HOME/ 14 100)
|
||||||
}
|
}
|
||||||
|
|
||||||
function program_exit {
|
function program_exit {
|
||||||
dialog --backtitle "Installation of Autodesk Fusion360 - Version 2.8" \
|
dialog --backtitle "Installation of Autodesk Fusion360 - Version 2.9" \
|
||||||
--title "Autodesk Fusion 360 is completed." \
|
--title "Autodesk Fusion 360 is completed." \
|
||||||
--msgbox 'The installation of Autodesk Fusion 360 is completed and you can use it for your projects.' 14 200
|
--msgbox 'The installation of Autodesk Fusion 360 is completed and you can use it for your projects.' 14 200
|
||||||
|
|
||||||
@@ -273,7 +273,7 @@ function archlinux_1 {
|
|||||||
HEIGHT=15
|
HEIGHT=15
|
||||||
WIDTH=60
|
WIDTH=60
|
||||||
CHOICE_HEIGHT=2
|
CHOICE_HEIGHT=2
|
||||||
BACKTITLE="Installation of Autodesk Fusion360 - Version 2.8"
|
BACKTITLE="Installation of Autodesk Fusion360 - Version 2.9"
|
||||||
TITLE="If you have enabled multilib repository?"
|
TITLE="If you have enabled multilib repository?"
|
||||||
MENU="Choose one of the following options:"
|
MENU="Choose one of the following options:"
|
||||||
|
|
||||||
@@ -369,5 +369,6 @@ export LANG=en_US.UTF-8
|
|||||||
export LANGUAGE=en_US.UTF-8
|
export LANGUAGE=en_US.UTF-8
|
||||||
|
|
||||||
clear
|
clear
|
||||||
requirement-check-dialog
|
requirement-check-dialog+wmctrl
|
||||||
|
wmctrl -r ':ACTIVE:' -b toggle,fullscreen
|
||||||
welcome_screen
|
welcome_screen
|
||||||
|
|||||||
Reference in New Issue
Block a user