|
| 1 | +#!/usr/bin/env bash |
| 2 | +# Date : (02-15-2018) |
| 3 | +# Distribution used to test : Ubuntu 17.10 x64 |
| 4 | +# Author : Corbin Davenport |
| 5 | +# Licence : GPLv3 |
| 6 | +# PlayOnLinux: 4.2.12 |
| 7 | + |
| 8 | +# Based on RoninDusette's script |
| 9 | +# from https://www.playonlinux.com/en/app-2316-Adobe_Photoshop_CS6.html |
| 10 | + |
| 11 | +[ "$PLAYONLINUX" = "" ] && exit 0 |
| 12 | +source "$PLAYONLINUX/lib/sources" |
| 13 | + |
| 14 | +PREFIX="CreativeCloud2018" |
| 15 | +WINEVERSION="2.20-staging" |
| 16 | +TITLE="Adobe Creative Cloud" |
| 17 | +EDITOR="Adobe Systems Inc." |
| 18 | +GAME_URL="http://www.adobe.com" |
| 19 | +AUTHOR="Corbin Davenport" |
| 20 | + |
| 21 | +#Initialization |
| 22 | +POL_SetupWindow_Init |
| 23 | +POL_SetupWindow_SetID 3251 |
| 24 | + |
| 25 | +POL_Debug_Init |
| 26 | + |
| 27 | +# Presentation |
| 28 | +POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" |
| 29 | + |
| 30 | +# Create prefix and temporary download folder |
| 31 | +POL_Wine_SelectPrefix "$PREFIX" |
| 32 | +POL_Wine_PrefixCreate "$WINEVERSION" |
| 33 | +POL_System_TmpCreate "CreativeCloud" |
| 34 | +Set_OS "win7" |
| 35 | + |
| 36 | +# Install dependencies |
| 37 | +POL_SetupWindow_wait "Please wait while msxml3 is installed..." "$TITLE" |
| 38 | +POL_Call POL_Install_msxml3 |
| 39 | +cd "$POL_System_TmpDir" |
| 40 | +# Use winetricks, since the POL_corefonts version does not work with the installer |
| 41 | +POL_Download_Resource "https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks" |
| 42 | +POL_SetupWindow_wait "Please wait while winetricks is installed... (this might take a few minutes)" "$TITLE" |
| 43 | +chmod +x winetricks |
| 44 | +./winetricks atmlib corefonts fontsmooth=rgb gdiplus vcrun2008 vcrun2010 vcrun2012 vcrun2013 vcrun2015 atmlib msxml3 msxml6 gdiplus |
| 45 | +Set_OS "win7" |
| 46 | + |
| 47 | +# Get the installer |
| 48 | +cd "$POL_System_TmpDir" |
| 49 | +POL_Download "http://ccmdl.adobe.com/AdobeProducts/KCCC/1/win32/ACCCx4_5_0_331.zip" |
| 50 | +POL_SetupWindow_wait "Please wait while the installer is extracted..." "$TITLE" |
| 51 | +unzip *.zip |
| 52 | +INSTALLER="$POL_System_TmpDir/Set-up.exe" |
| 53 | + |
| 54 | +# Run the installer |
| 55 | +POL_Wine_WaitBefore "$TITLE" |
| 56 | +POL_Wine "$INSTALLER" |
| 57 | +POL_Shortcut "Creative Cloud.exe" "Adobe Creative Cloud" |
| 58 | +POL_System_TmpDelete |
| 59 | + |
| 60 | +# All done |
| 61 | +POL_SetupWindow_message "$(eval_gettext 'The installation is now complete, you can now use the Adobe Creative Cloud manager to download the applications you need.\n\nNOTE: The Creative Cloud manager takes a while to log in, and you may see an error meessage. That is completely normal - don't close the login window!\n\nAfter you download an app, you can add a PlayOnLinux shortcut for it by clicking ADOBE CREATIVE CLOUD in the app list, clicking CONFIGURE, and clicking MAKE A NEW SHORTCUT FROM THIS VIRTUAL DRIVE. Then look for the app, like Photoshop.exe, and add it.')" "$TITLE" |
| 62 | + |
| 63 | +POL_SetupWindow_Close |
| 64 | +exit 0 |
| 65 | +
|
0 commit comments