|
| 1 | +#!/bin/bash |
| 2 | + |
| 3 | +instdir="$1" |
| 4 | +if [ $1 = $2 ] |
| 5 | +then |
| 6 | +echo "." |
| 7 | +echo "." |
| 8 | +echo "." |
| 9 | +echo "." |
| 10 | +echo "." |
| 11 | +echo "." |
| 12 | +echo "." |
| 13 | +echo "." |
| 14 | +echo "Without any arguments, it will install in ~/.WineApps/" |
| 15 | +echo "If you want to install it in another dir use the script that way :" |
| 16 | +echo " " |
| 17 | +echo "'Scriptfile /path/to/dir/'" |
| 18 | +echo " " |
| 19 | +echo "If you want to change the directory, you have 5 seconds to cancel with CTRL + C" |
| 20 | +sleep 5 |
| 21 | +mkdir ~/.WineApps |
| 22 | +instdir=$HOME/.WineApps |
| 23 | +fi |
| 24 | + |
| 25 | + |
| 26 | +mkdir $instdir/Adobe-Illustrator-2021/ |
| 27 | + |
| 28 | + |
| 29 | +wget https://lulucloud.mywire.org/FileHosting/GithubProjects/Illustrator/wine-illustrator-custom.tar.xz -O /tmp/wine-illustrator-custom.tar.xz |
| 30 | +tar -xf /tmp/wine-illustrator-custom.tar.xz -C /tmp/ |
| 31 | +rm -rf /tmp/wine-illustrator-custom.tar.xz |
| 32 | + |
| 33 | +cp -r /tmp/wine-illustrator-custom $instdir/Adobe-Illustrator-2021/ |
| 34 | +rm -rf /tmp/wine-illustrator-custom |
| 35 | + |
| 36 | +WINEPREFIX=$instdir/Adobe-Illustrator-2021 $instdir/Adobe-Illustrator-2021/wine-illustrator-custom/bin/wineboot |
| 37 | + |
| 38 | +echo "Downloading Illustrator..." |
| 39 | + |
| 40 | +wget https://lulucloud.mywire.org/FileHosting/GithubProjects/Illustrator/AdobeIllustrator2021.tar.xz -O /tmp/AdobeIllustrator2021.tar.xz |
| 41 | +tar -xf /tmp/AdobeIllustrator2021.tar.xz -C /tmp/ |
| 42 | +rm -rf /tmp/AdobeIllustrator2021.tar.xz |
| 43 | + |
| 44 | +wget https://lulucloud.mywire.org/FileHosting/GithubProjects/Illustrator/vcredist.tar.xz -O /tmp/vcredist.tar.xz |
| 45 | +tar -xf /tmp/vcredist.tar.xz -C /tmp/ |
| 46 | +rm -rf /tmp/vcredist.tar.xz |
| 47 | + |
| 48 | +WINEPREFIX=$instdir/Adobe-Illustrator-2021 wine /tmp/vcredist/2010/vcredist_x64.exe /q /norestart |
| 49 | +WINEPREFIX=$instdir/Adobe-Illustrator-2021 wine /tmp/vcredist/2010/vcredist_x86.exe /q /norestart |
| 50 | + |
| 51 | +WINEPREFIX=$instdir/Adobe-Illustrator-2021 wine /tmp/vcredist/2012/vcredist_x86.exe /install /quiet /norestart |
| 52 | +WINEPREFIX=$instdir/Adobe-Illustrator-2021 wine /tmp/vcredist/2012/vcredist_x64.exe /install /quiet /norestart |
| 53 | + |
| 54 | +WINEPREFIX=$instdir/Adobe-Illustrator-2021 wine /tmp/vcredist/2013/vcredist_x86.exe /install /quiet /norestart |
| 55 | +WINEPREFIX=$instdir/Adobe-Illustrator-2021 wine /tmp/vcredist/2013/vcredist_x64.exe /install /quiet /norestart |
| 56 | + |
| 57 | +WINEPREFIX=$instdir/Adobe-Illustrator-2021 wine /tmp/vcredist/2019/VC_redist.x64.exe /install /quiet /norestart |
| 58 | +WINEPREFIX=$instdir/Adobe-Illustrator-2021 wine /tmp/vcredist/2019/VC_redist.x86.exe /install /quiet /norestart |
| 59 | +rm -rf /tmp/vcredist |
| 60 | + |
| 61 | +cp -r /tmp/Adobe\ Illustrator\ 2021 $instdir/Adobe-Illustrator-2021/drive_c/Program\ Files/ |
| 62 | +rm -rf /tmp/Adobe\ Illustrator\ 2021 |
| 63 | + |
| 64 | +touch $instdir/Adobe-Illustrator-2021/drive_c/launcher.sh |
| 65 | +echo 'export WINEPREFIX="'$instdir'/Adobe-Illustrator-2021"' >> $instdir/Adobe-Illustrator-2021/drive_c/launcher.sh |
| 66 | +echo 'WINEPREFIX='$instdir'/Adobe-Illustrator-2021 DXVK_LOG_PATH='$instdir'/Adobe-Illustrator-2021 DXVK_STATE_CACHE_PATH='$instdir'/Adobe-Illustrator-2021 '$instdir'/Adobe-Illustrator-2021/wine-illustrator-custom/bin/wine64 ' $instdir'/Adobe-Illustrator-2021/drive_c/Program\ Files/Adobe\ Illustrator\ 2021/Support\ Files/Contents/Windows/Illustrator.exe $FILE_PATH' >> $instdir/Adobe-Illustrator-2021/drive_c/launcher.sh |
| 67 | + |
| 68 | +chmod +x $instdir/Adobe-Illustrator-2021/drive_c/launcher.sh |
| 69 | + |
| 70 | +rm ~/.local/share/icons/illustrator2021.png |
| 71 | + |
| 72 | +wget https://lulucloud.mywire.org/FileHosting/GithubProjects/Illustrator/illustrator2021.png -O ~/.local/share/icons/illustrator2021.png |
| 73 | + |
| 74 | +touch ~/.local/share/applications/illustrator.desktop |
| 75 | +echo '[Desktop Entry]' >> ~/.local/share/applications/illustrator.desktop |
| 76 | +echo 'Name=Illustrator CC 2021' >> ~/.local/share/applications/illustrator.desktop |
| 77 | +echo 'Exec=bash -c "'$instdir'/Adobe-Illustrator-2021/drive_c/launcher.sh %F"' >> ~/.local/share/applications/illustrator.desktop |
| 78 | +echo 'Type=Application' >> ~/.local/share/applications/illustrator.desktop |
| 79 | +echo 'Comment=Illustrator CC 2021 (Wine)' >> ~/.local/share/applications/illustrator.desktop |
| 80 | +echo 'Categories=Graphics;' >> ~/.local/share/applications/illustrator.desktop |
| 81 | +echo 'Icon=illustrator2021' >> ~/.local/share/applications/illustrator.desktop |
| 82 | +echo 'StartupWMClass=illustrator.exe' >> ~/.local/share/applications/illustrator.desktop |
| 83 | + |
| 84 | +echo "." |
| 85 | +echo "." |
| 86 | +echo "." |
| 87 | +echo "." |
| 88 | +echo "." |
| 89 | +echo "." |
| 90 | +echo "." |
| 91 | +echo "." |
| 92 | +echo "." |
| 93 | +echo "." |
| 94 | +echo "." |
| 95 | +echo "." |
| 96 | +echo "." |
| 97 | +echo "." |
| 98 | +echo "." |
| 99 | +echo "." |
| 100 | +echo "." |
| 101 | +echo "." |
| 102 | +echo "." |
| 103 | +echo "." |
| 104 | +echo "." |
| 105 | +echo "." |
| 106 | +echo "." |
| 107 | +echo "." |
| 108 | +echo "Illustrator installed, you can close this window" |
0 commit comments