├── csp-linux ├── README.md ├── LICENSE └── csp-installer.sh /csp-linux: -------------------------------------------------------------------------------- 1 | export PROTON_PATH=$(cat ~/.config/csprc | grep PROTON_PATH | cut -d '=' -f 2) 2 | echo $PROTON_PATH 3 | export STEAM_COMPAT_DATA_PATH=$(cat ~/.config/csprc | grep STEAM_COMPAT_DATA_PATH | cut -d '=' -f 2) 4 | export STEAM_COMPAT_CLIENT_INSTALL_PATH=$(cat ~/.config/csprc | grep STEAM_COMPAT_CLIENT_INSTALL_PATH | cut -d '=' -f 2) 5 | 6 | echo "Setting Windows version to win81..." 7 | $PROTON_PATH/proton run winecfg -v win81 8 | if [ $? -ne 0 ]; then 9 | echo "Failed to set Windows version to win81" 10 | exit 1 11 | fi 12 | 13 | echo "Starting CSP..." 14 | $PROTON_PATH/proton run $STEAM_COMPAT_DATA_PATH/pfx/drive_c/Program\ Files/CELSYS/CLIP\ STUDIO\ 1.5/CLIP\ STUDIO\ PAINT/CLIPStudioPaint.exe -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CSP Linux 2 | This is a script to install Clip Studio Paint on Linux using the help of Valve's Proton (fork GE-Proton was used). 3 | 4 | ## Dependencies 5 | - wget 6 | - pv 7 | 8 | Arch Linux users can install them with `pacman -S wget pv` 9 | 10 | ## Installation (It's that easy!) 11 | ```bash 12 | git clone https://github.com/minsiam/csp-linux 13 | cd csp-linux 14 | chmod +x csp-installer.sh 15 | ./csp-installer.sh 16 | ``` 17 | 18 | Once it's installed, you can start CSP by running `csp-linux` in your terminal. 19 | 20 | ## Uninstallation 21 | To uninstall CSP, simply remove `~/.local/share/csp-linux` & `~/.config/csprc`. Future plans include an uninstaller. 22 | 23 | ## Made with love ❤️ by minsiam -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 minsiam 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /csp-installer.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # This script is used to install Clip Studio Paint on a Linux machine. 4 | # made with love by minsiam 5 | 6 | # Check if the script is run on a supported platform 7 | if [[ "$OSTYPE" != "linux-gnu" ]]; then 8 | echo "This script is only supported on Linux" 1>&2 9 | exit 1 10 | fi 11 | 12 | # Check if wget is installed 13 | if ! command -v wget &>/dev/null; then 14 | echo "Please install wget before running this script" 1>&2 15 | exit 1 16 | fi 17 | 18 | if ! command -v pv &>/dev/null; then 19 | echo "Please install pv before running this script" 1>&2 20 | exit 1 21 | fi 22 | 23 | export CSP_PATH=/home/$USER/.local/share/csp-linux 24 | 25 | if [ ! -d $CSP_PATH ]; then 26 | mkdir $CSP_PATH 27 | fi 28 | 29 | cd $CSP_PATH 30 | 31 | if [ -d "csp-pfx/pfx/drive_c/Program Files/CELSYS/CLIP STUDIO 1.5" ]; then 32 | echo "CSP is already installed" 33 | exit 0 34 | fi 35 | 36 | if [ ! -d GE-Proton9-20 ]; then 37 | if [ ! -f "GE-Proton9-20.tar.gz" ]; then 38 | echo "Downloading GE-Proton 9-20..." 39 | wget -q --show-progress "https://github.com/GloriousEggroll/proton-ge-custom/releases/download/GE-Proton9-20/GE-Proton9-20.tar.gz" 40 | fi 41 | 42 | echo "Extracting GE-Proton 9-20..." 43 | pv "GE-Proton9-20.tar.gz" | tar -xvz >/dev/null 44 | echo Removing GE-Proton 9-20.tar.gz... 45 | rm GE-Proton9-20.tar.gz 46 | fi 47 | 48 | if [ ! -d steam-container-runtime ]; then 49 | if [ ! -f "steam-container-runtime.tar.gz" ]; then 50 | echo "Downloading steamrt..." 51 | wget -q --show-progress "https://repo.steampowered.com/steamrt-images-sniper/snapshots/0.20220119.0/steam-container-runtime.tar.gz" 52 | fi 53 | 54 | pv steam-container-runtime.tar.gz | tar -xvz >/dev/null 55 | rm steam-container-runtime.tar.gz 56 | fi 57 | 58 | if [ ! -f CSP_314w_setup.exe ]; then 59 | echo "Downloading CSP 314w_setup.exe..." 60 | wget -q --show-progress "https://vd.clipstudio.net/clipcontent/paint/app/314/CSP_314w_setup.exe" 61 | fi 62 | 63 | echo "Installing CSP..." 64 | 65 | mkdir csp-pfx 66 | 67 | export STEAM_COMPAT_CLIENT_INSTALL_PATH="$(realpath steam-container-runtime)" 68 | export STEAM_COMPAT_DATA_PATH="$(realpath csp-pfx)" 69 | 70 | echo "Setting Windows version to win81..." 71 | "GE-Proton9-20/proton" run winecfg -v win81 72 | if [ $? -ne 0 ]; then 73 | echo "Failed to set Windows version to win81" 74 | exit 1 75 | fi 76 | echo "Starting installer..." 77 | echo "Go through the process as you usually would then press enter (on terminal) to finish" 78 | "GE-Proton9-20/proton" run "CSP_314w_setup.exe" 79 | 80 | while true; do 81 | read -r -n 1 key 82 | if [[ -z $key ]]; then 83 | break 84 | fi 85 | done 86 | 87 | if [ -f /home/$USER/.config/csprc ]; then 88 | rm /home/$USER/.config/csprc 89 | fi 90 | 91 | cat <>/home/$USER/.config/csprc 92 | [Proton] 93 | PROTON_PATH=$CSP_PATH/GE-Proton9-20 94 | STEAM_COMPAT_DATA_PATH=$STEAM_COMPAT_DATA_PATH 95 | STEAM_COMPAT_CLIENT_INSTALL_PATH=$STEAM_COMPAT_CLIENT_INSTALL_PATH 96 | EOF 97 | 98 | echo "CSP is now installed!" 99 | echo "Run csp-linux to start CSP" 100 | 101 | rm CSP_314w_setup.exe --------------------------------------------------------------------------------