Change some paths to the files. (DXVK, ...)

This commit is contained in:
Steve Zabka
2021-11-09 08:46:22 +01:00
committed by GitHub
parent e79eba5004
commit 01410560dd

View File

@@ -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: 10:15/08.11.2021 # # Time/Date: 08:00/09.11.2021 #
# Version: 1.5.4 # # Version: 1.5.5 #
#################################################################################################### ####################################################################################################
############################################################################################################################################################### ###############################################################################################################################################################
@@ -290,54 +290,59 @@ function gentoo-linux {
function configure-dxvk-or-opengl-standard-1 { function configure-dxvk-or-opengl-standard-1 {
if [ $driver_used -eq 2 ]; then if [ $driver_used -eq 2 ]; then
WINEPREFIX=/home/$USER/.wineprefixes/fusion360 sh data/winetricks/winetricks -q dxvk && WINEPREFIX=/home/$USER/.wineprefixes/fusion360 sh data/winetricks/winetricks -q dxvk &&
wget -N https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/DXVK.reg && wget -N https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/extras/opengl_dxvk/DXVK.reg &&
WINEPREFIX=/home/$USER/.wineprefixes/fusion360 wine regedit.exe DXVK.reg WINEPREFIX=/home/$USER/.wineprefixes/fusion360 wine regedit.exe DXVK.reg
fi fi
} }
function configure-dxvk-or-opengl-standard-2 { function configure-dxvk-or-opengl-standard-2 {
if [ $driver_used -eq 2 ]; then if [ $driver_used -eq 2 ]; then
wget -N https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/DXVK.xml && wget -N https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/extras/opengl_dxvk/DXVK.xml &&
mv DXVK.xml NMachineSpecificOptions.xml mv DXVK.xml NMachineSpecificOptions.xml
else else
wget -N https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/NMachineSpecificOptions.xml wget -N https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/extras/opengl_dxvk/OpenGL.xml
mv OpenGL.xml NMachineSpecificOptions.xml
fi fi
} }
function configure-dxvk-or-opengl-standard-3 { function configure-dxvk-or-opengl-standard-3 {
if [ $driver_used -eq 2 ]; then if [ $driver_used -eq 2 ]; then
wget -N https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/DXVK.xml && wget -N https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/extras/opengl_dxvk/DXVK.xml &&
mv DXVK.xml NMachineSpecificOptions.xml mv DXVK.xml NMachineSpecificOptions.xml
else else
wget -N https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/NMachineSpecificOptions.xml wget -N https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/extras/opengl_dxvk/OpenGL.xml
mv OpenGL.xml NMachineSpecificOptions.xml
fi fi
} }
function configure-dxvk-or-opengl-custom-1 { function configure-dxvk-or-opengl-custom-1 {
if [ $driver_used -eq 2 ]; then if [ $driver_used -eq 2 ]; then
WINEPREFIX=$filename sh data/winetricks/winetricks -q dxvk && WINEPREFIX=$filename sh data/winetricks/winetricks -q dxvk &&
wget -N https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/DXVK.reg && wget -N https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/extras/opengl_dxvk/DXVK.reg &&
WINEPREFIX=$filename wine regedit.exe DXVK.reg WINEPREFIX=$filename wine regedit.exe DXVK.reg
else else
wget -N https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/NMachineSpecificOptions.xml wget -N https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/extras/opengl_dxvk/OpenGL.xml
mv OpenGL.xml NMachineSpecificOptions.xml
fi fi
} }
function configure-dxvk-or-opengl-custom-2 { function configure-dxvk-or-opengl-custom-2 {
if [ $driver_used -eq 2 ]; then if [ $driver_used -eq 2 ]; then
wget -N https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/DXVK.xml && wget -N https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/extras/opengl_dxvk/DXVK.xml &&
mv DXVK.xml NMachineSpecificOptions.xml mv DXVK.xml NMachineSpecificOptions.xml
else else
wget -N https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/NMachineSpecificOptions.xml wget -N https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/extras/opengl_dxvk/OpenGL.xml
mv OpenGL.xml NMachineSpecificOptions.xml
fi fi
} }
function configure-dxvk-or-opengl-custom-3 { function configure-dxvk-or-opengl-custom-3 {
if [ $driver_used -eq 2 ]; then if [ $driver_used -eq 2 ]; then
wget -N https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/DXVK.xml && wget -N https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/extras/opengl_dxvk/DXVK.xml &&
mv DXVK.xml NMachineSpecificOptions.xml mv DXVK.xml NMachineSpecificOptions.xml
else else
wget -N https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/NMachineSpecificOptions.xml wget -N https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/extras/opengl_dxvk/OpenGL.xml
mv OpenGL.xml NMachineSpecificOptions.xml
fi fi
} }
@@ -362,9 +367,9 @@ function winetricks-standard {
configure-dxvk-or-opengl-standard-3 configure-dxvk-or-opengl-standard-3
#Set up the program launcher for you! #Set up the program launcher for you!
rm $HOME/.local/share/applications/wine/Programs/Autodesk/Autodesk\ Fusion\ 360.desktop rm $HOME/.local/share/applications/wine/Programs/Autodesk/Autodesk\ Fusion\ 360.desktop
wget -P $HOME/.local/share/applications/wine/Programs/Autodesk https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/Autodesk%20Fusion%20360.desktop wget -P $HOME/.local/share/applications/wine/Programs/Autodesk https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/extras/desktop-starter/Autodesk%20Fusion%20360.desktop
rm $HOME/.local/share/fusion360/launcher.sh rm $HOME/.local/share/fusion360/launcher.sh
wget -P $HOME/.local/share/fusion360 https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/launcher.sh wget -P $HOME/.local/share/fusion360 https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/extras/desktop-starter/launcher.sh
chmod +x $HOME/.local/share/fusion360/launcher.sh chmod +x $HOME/.local/share/fusion360/launcher.sh
logfile-installation-standard logfile-installation-standard
manager-extensions-standard manager-extensions-standard
@@ -392,9 +397,9 @@ function winetricks-custom {
configure-dxvk-or-opengl-custom-3 configure-dxvk-or-opengl-custom-3
#Set up the program launcher for you! #Set up the program launcher for you!
rm $HOME/.local/share/applications/wine/Programs/Autodesk/Autodesk\ Fusion\ 360.desktop rm $HOME/.local/share/applications/wine/Programs/Autodesk/Autodesk\ Fusion\ 360.desktop
wget -P $HOME/.local/share/applications/wine/Programs/Autodesk https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/Autodesk%20Fusion%20360.desktop wget -P $HOME/.local/share/applications/wine/Programs/Autodesk https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/extras/desktop-starter/Autodesk%20Fusion%20360.desktop
cd $HOME/Fusion360 cd $HOME/Fusion360
wget -P $HOME/.local/share/fusion360 https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/launcher.sh wget -P $HOME/.local/share/fusion360 https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/extras/desktop-starter/launcher.sh
wget https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/launcher.sh -O Fusion360launcher wget https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/launcher.sh -O Fusion360launcher
mv Fusion360launcher data/fusion360/Fusion360launcher mv Fusion360launcher data/fusion360/Fusion360launcher
desktop-launcher-custom desktop-launcher-custom