├── Adobe-Photoshop-Gui-Installer
├── readme.md
├── src
│ ├── readme.md
│ ├── Assets
│ │ └── photoshop.png
│ ├── preload.js
│ ├── index.html
│ ├── index.css
│ ├── renderer.js
│ └── index.js
├── package.json
└── .gitignore
├── uninstaller.sh
├── .github
└── ISSUE_TEMPLATE
│ └── bug_report.md
├── LICENSE.md
├── installer.sh.old.DONT-USE
├── scripts
├── photoshop2021installcr.sh
├── photoshop2021install.sh
└── photoshop2022install.sh
└── README.md
/Adobe-Photoshop-Gui-Installer/readme.md:
--------------------------------------------------------------------------------
1 | ## Do not copy for other projects
2 |
3 | Not clean due to experimentation please do not contribute to GUI
4 |
--------------------------------------------------------------------------------
/Adobe-Photoshop-Gui-Installer/src/readme.md:
--------------------------------------------------------------------------------
1 | ## Do not copy for other projects
2 |
3 | Not clean due to experimentation please do not contribute to GUI
4 |
--------------------------------------------------------------------------------
/Adobe-Photoshop-Gui-Installer/src/Assets/photoshop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LinSoftWin/Photoshop-CC2022-Linux/HEAD/Adobe-Photoshop-Gui-Installer/src/Assets/photoshop.png
--------------------------------------------------------------------------------
/uninstaller.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | rm -rf ~/.WineApps/Adobe-Photoshop
3 | rm -rf ~/.local/share/icons/photoshop.png
4 | rm -rf ~/.local/share/applications/photoshop.desktop
5 |
6 | zenity --info --text="Photoshop uninstalled."
7 |
--------------------------------------------------------------------------------
/Adobe-Photoshop-Gui-Installer/src/preload.js:
--------------------------------------------------------------------------------
1 | const {
2 | contextBridge,
3 | ipcRenderer
4 | } = require("electron");
5 |
6 | // Expose protected methods that allow the renderer process to use
7 | // the ipcRenderer without exposing the entire object
8 | contextBridge.exposeInMainWorld(
9 | "api", {
10 | send: (channel, data) => {
11 | // whitelist channels
12 | let validChannels = ["toMain", "installdir", "args", "argstitle"];
13 | if (validChannels.includes(channel)) {
14 | ipcRenderer.send(channel, data);
15 | }
16 | },
17 | receive: (channel, func) => {
18 | let validChannels = ["fromMain", "progress"];
19 | if (validChannels.includes(channel)) {
20 | // Deliberately strip event as it includes `sender`
21 | ipcRenderer.on(channel, (event, ...args) => func(...args));
22 | }
23 | }
24 | }
25 | );
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help and improve this software
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **PLEASE READ THE REQUIREMENT BEFORE FILLING A BUG. ALSO PLEASE CHECK IF A SIMILLAR ISSUE ISN'T OPEN**
11 |
12 | **Photoshop version**
13 | eg : CC2021
14 |
15 | **Describe the bug**
16 | A clear and concise description of what the bug is.
17 |
18 | **To Reproduce**
19 | Steps to reproduce the behavior:
20 | 1. Go to '...'
21 | 2. Click on '....'
22 | 3. Scroll down to '....'
23 | 4. See error
24 |
25 | **Expected behavior**
26 | A clear and concise description of what you expected to happen.
27 |
28 | **Screenshots**
29 | If applicable, add screenshots to help explain your problem.
30 |
31 | **System informations**
32 | - Distro :
33 | - GPU : (AMD, NVIDIA, INTEL)
34 | - WINE version :
35 |
36 | **Additional context**
37 | Add any other context about the problem here.
38 |
39 | **Is some information are missing it might take longer to find the issue so please complete carefully**
40 |
--------------------------------------------------------------------------------
/Adobe-Photoshop-Gui-Installer/src/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Photoshop Installer
6 |
7 |
8 |
9 |
10 |
14 |
15 |
16 |

17 |
18 | Photoshop 2022
By MiMillieuh
19 | Please use this software only if you own an active Photoshop subscription, I'm not responsable of any use without licenses.
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/Adobe-Photoshop-Gui-Installer/src/index.css:
--------------------------------------------------------------------------------
1 | html{
2 | height: 100%;
3 | width: 100%;
4 | margin: 0;
5 | padding: 0;
6 | box-sizing: border-box;
7 | }
8 |
9 | body{
10 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
11 | margin: 0;
12 | padding: 0;
13 | position: absolute;
14 | top: -24px;
15 | }
16 |
17 | #container{
18 | top: 0px;
19 | margin-top: 0px;
20 | }
21 |
22 | #header{
23 | background-color: rgb(26, 26, 26);
24 | top: 0px;
25 | margin-top: 0px;
26 | padding: 10px;
27 | }
28 |
29 | h3{
30 | color: rgb(182, 182, 182);
31 | font-weight: normal;
32 | font-size: 12px;
33 | margin-bottom: 5px;
34 | }
35 |
36 | #Status{
37 | color: white;
38 | font-size: 24px;
39 | margin-bottom: 5px;
40 | }
41 |
42 | #statusbar{
43 | height: 5px;
44 | width: 0%;
45 | background-color: blue;
46 | }
47 |
48 | #productinfo{
49 | display: flex;
50 | justify-content: center;
51 | align-items: center;
52 | flex-wrap: wrap;
53 | height: 70vh;
54 | }
55 |
56 | #productinfo img{
57 | width: 150px;
58 | }
59 |
60 | h2{
61 | font-size: 40px;
62 | font-weight: normal;
63 | }
64 |
65 | h4{
66 | text-align: center;
67 | width: 90%;
68 | font-weight: normal;
69 | }
70 |
71 | #installbtn{
72 | background-color: rgb(0, 102, 255);
73 | border-radius: 10px;
74 | font-size: 14px;
75 | height: 50px;
76 | width: 150px;
77 | border-style: none;
78 | box-shadow: none;
79 | color: white;
80 | font-weight: bold;
81 | }
--------------------------------------------------------------------------------
/Adobe-Photoshop-Gui-Installer/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ps-installer",
3 | "productName": "ps-installer",
4 | "version": "1.0.0",
5 | "description": "Install photoshop",
6 | "main": "src/index.js",
7 | "scripts": {
8 | "start": "electron-forge start",
9 | "package": "electron-forge package",
10 | "make": "electron-forge make",
11 | "publish": "electron-forge publish",
12 | "lint": "echo \"No linting configured\""
13 | },
14 | "keywords": [],
15 | "author": "mimillie",
16 | "license": "MIT",
17 | "config": {
18 | "forge": {
19 | "packagerConfig": {},
20 | "makers": [
21 | {
22 | "name": "@electron-forge/maker-squirrel",
23 | "config": {
24 | "name": "ps-installer"
25 | }
26 | },
27 | {
28 | "name": "@electron-forge/maker-zip",
29 | "config": {}
30 | }
31 | ]
32 | }
33 | },
34 | "dependencies": {
35 | "@electron-forge/maker-wix": "^6.0.0-beta.63",
36 | "dialog": "^0.3.1",
37 | "electron-forge-maker-appimage": "^23.0.7",
38 | "electron-squirrel-startup": "^1.0.0",
39 | "fs": "^0.0.1-security",
40 | "remote": "^0.2.6"
41 | },
42 | "devDependencies": {
43 | "@electron-forge/cli": "^6.0.0-beta.63",
44 | "@electron-forge/maker-deb": "^6.0.0-beta.63",
45 | "@electron-forge/maker-rpm": "^6.0.0-beta.63",
46 | "@electron-forge/maker-squirrel": "^6.0.0-beta.63",
47 | "@electron-forge/maker-zip": "^6.0.0-beta.63",
48 | "@electron-forge/publisher-github": "^6.0.0-beta.63",
49 | "electron": "18.0.0"
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | BSD 3-Clause License
2 |
3 | Copyright (c) 2022, MiMillieuh
4 | All rights reserved.
5 |
6 | Redistribution and use in source and binary forms, with or without
7 | modification, are permitted provided that the following conditions are met:
8 |
9 | 1. Redistributions of source code must retain the above copyright notice, this
10 | list of conditions and the following disclaimer.
11 |
12 | 2. Redistributions in binary form must reproduce the above copyright notice,
13 | this list of conditions and the following disclaimer in the documentation
14 | and/or other materials provided with the distribution.
15 |
16 | 3. Neither the name of the copyright holder nor the names of its
17 | contributors may be used to endorse or promote products derived from
18 | this software without specific prior written permission.
19 |
20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 |
--------------------------------------------------------------------------------
/Adobe-Photoshop-Gui-Installer/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 |
9 | # Diagnostic reports (https://nodejs.org/api/report.html)
10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11 |
12 | # Runtime data
13 | pids
14 | *.pid
15 | *.seed
16 | *.pid.lock
17 | .DS_Store
18 |
19 | # Directory for instrumented libs generated by jscoverage/JSCover
20 | lib-cov
21 |
22 | # Coverage directory used by tools like istanbul
23 | coverage
24 | *.lcov
25 |
26 | # nyc test coverage
27 | .nyc_output
28 |
29 | # node-waf configuration
30 | .lock-wscript
31 |
32 | # Compiled binary addons (https://nodejs.org/api/addons.html)
33 | build/Release
34 |
35 | # Dependency directories
36 | node_modules/
37 | jspm_packages/
38 |
39 | # TypeScript v1 declaration files
40 | typings/
41 |
42 | # TypeScript cache
43 | *.tsbuildinfo
44 |
45 | # Optional npm cache directory
46 | .npm
47 |
48 | # Optional eslint cache
49 | .eslintcache
50 |
51 | # Optional REPL history
52 | .node_repl_history
53 |
54 | # Output of 'npm pack'
55 | *.tgz
56 |
57 | # Yarn Integrity file
58 | .yarn-integrity
59 |
60 | # dotenv environment variables file
61 | .env
62 | .env.test
63 |
64 | # parcel-bundler cache (https://parceljs.org/)
65 | .cache
66 |
67 | # next.js build output
68 | .next
69 |
70 | # nuxt.js build output
71 | .nuxt
72 |
73 | # vuepress build output
74 | .vuepress/dist
75 |
76 | # Serverless directories
77 | .serverless/
78 |
79 | # FuseBox cache
80 | .fusebox/
81 |
82 | # DynamoDB Local files
83 | .dynamodb/
84 |
85 | # Webpack
86 | .webpack/
87 |
88 | # Electron-Forge
89 | out/
90 |
--------------------------------------------------------------------------------
/Adobe-Photoshop-Gui-Installer/src/renderer.js:
--------------------------------------------------------------------------------
1 |
2 | window.api.receive("progress", (data) => {
3 |
4 | console.log(data)
5 |
6 | if(data == 10){
7 | document.getElementById("Status").innerHTML = "Preparing environement ("+data+"%)"
8 | document.getElementById("statusbar").style.width = "10%"
9 | }else if(data == 20){
10 | document.getElementById("Status").innerHTML = "Extracting redist ("+data+"%)"
11 | document.getElementById("statusbar").style.width = "20%"
12 | }else if(data == 25){
13 | document.getElementById("Status").innerHTML = "Downloading Photoshop ("+data+"%)"
14 | document.getElementById("statusbar").style.width = "25%"
15 | }else if(data == 50){
16 | document.getElementById("Status").innerHTML = "Extracting Photoshop ("+data+"%)"
17 | document.getElementById("statusbar").style.width = "50%"
18 | }else if(data == 70){
19 | document.getElementById("Status").innerHTML = "Extracting redist ("+data+"%)"
20 | document.getElementById("statusbar").style.width = "70%"
21 | }else if(data == 80){
22 | document.getElementById("Status").innerHTML = "Installing redist ("+data+"%)"
23 | document.getElementById("statusbar").style.width = "80%"
24 | }else if(data == 90){
25 | document.getElementById("Status").innerHTML = "Editing some files ("+data+"%)"
26 | document.getElementById("statusbar").style.width = "90%"
27 | }else if(data == 95){
28 | document.getElementById("Status").innerHTML = "CameraRaw (follow setup) ("+data+"%)"
29 | document.getElementById("statusbar").style.width = "95%"
30 | }else if(data == 100){
31 | document.getElementById("Status").innerHTML = "Done, You can close this window("+data+"%)"
32 | document.getElementById("statusbar").style.width = "100%"
33 | document.getElementById("installbtn").innerHTML = "Done"
34 | }else{
35 | document.getElementById("Status").innerHTML = "Starting (0%)"
36 | }
37 |
38 | })
39 |
40 | function OpenFile() {
41 | /*document.getElementById("cameraraw").disabled = true;
42 | if(document.getElementById("cameraraw").checked = true){
43 | window.api.send("toMain", "cameraraw")
44 | }*/
45 | window.api.send("toMain", "openfile")
46 | document.getElementById("installbtn").disabled = true;
47 | document.getElementById("installbtn").innerHTML = "Installing"
48 | }
49 |
--------------------------------------------------------------------------------
/installer.sh.old.DONT-USE:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | echo "Welcome to Photoshop installer"
3 | echo "Would you like to install Camera Raw with photoshop? (This will prompt the camera raw installer at the end)"
4 | echo "1 - Yes, 0 - No"
5 | cameraraw=1
6 | read cameraraw
7 |
8 | mkdir ~/.WineApps
9 | mkdir ~/.WineApps/Adobe-Photoshop
10 |
11 | wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
12 | chmod +x winetricks
13 |
14 | WINEPREFIX=~/.WineApps/Adobe-Photoshop wineboot
15 |
16 | WINEPREFIX=~/.WineApps/Adobe-Photoshop ./winetricks win10
17 |
18 | curl -L "https://drive.google.com/uc?export=download&id=1qcmyHzWerZ39OhW0y4VQ-hOy7639bJPO" > allredist.tar.xz
19 | mkdir allredist
20 | tar -xf allredist.tar.xz
21 | rm -rf allredist.tar.xz
22 | curl -L "https://lulucloud.mywire.org/FileHosting/GithubProjects/AdobePhotoshop2021.tar.xz" > AdobePhotoshop2021.tar.xz
23 | tar -xf AdobePhotoshop2021.tar.xz
24 | rm -rf AdobePhotoshop2021.tar.xz
25 |
26 |
27 | WINEPREFIX=~/.WineApps/Adobe-Photoshop ./winetricks fontsmooth=rgb gdiplus msxml3 msxml6 atmlib corefonts dxvk
28 | WINEPREFIX=~/.WineApps/Adobe-Photoshop wine allredist/redist/2010/vcredist_x64.exe /q /norestart
29 | WINEPREFIX=~/.WineApps/Adobe-Photoshop wine allredist/redist/2010/vcredist_x86.exe /q /norestart
30 |
31 | WINEPREFIX=~/.WineApps/Adobe-Photoshop wine allredist/redist/2012/vcredist_x86.exe /install /quiet /norestart
32 | WINEPREFIX=~/.WineApps/Adobe-Photoshop wine allredist/redist/2012/vcredist_x64.exe /install /quiet /norestart
33 |
34 | WINEPREFIX=~/.WineApps/Adobe-Photoshop wine allredist/redist/2013/vcredist_x86.exe /install /quiet /norestart
35 | WINEPREFIX=~/.WineApps/Adobe-Photoshop wine allredist/redist/2013/vcredist_x64.exe /install /quiet /norestart
36 |
37 | WINEPREFIX=~/.WineApps/Adobe-Photoshop wine allredist/redist/2019/VC_redist.x64.exe /install /quiet /norestart
38 | WINEPREFIX=~/.WineApps/Adobe-Photoshop wine allredist/redist/2019/VC_redist.x86.exe /install /quiet /norestart
39 |
40 | WINEPREFIX=~/.WineApps/Adobe-Photoshop sh allredist/setup_vkd3d_proton.sh install
41 | mkdir ~/.WineApps/Adobe-Photoshop/drive_c/Program\ Files/Adobe
42 | mv Adobe\ Photoshop\ 2021 ~/.WineApps/Adobe-Photoshop/drive_c/Program\ Files/Adobe/Adobe\ Photoshop\ 2021
43 | mv allredist/launcher.sh ~/.WineApps/Adobe-Photoshop/drive_c
44 | mv allredist/photoshop.png ~/.local/share/icons
45 | mv allredist/photoshop.desktop ~/.local/share/applications
46 |
47 | rm -rf allredist
48 | rm -rf winetricks
49 | if [ $cameraraw = "1" ]
50 | then
51 | echo "Just follow the setup from Camera Raw..."
52 | curl -L "https://download.adobe.com/pub/adobe/photoshop/cameraraw/win/12.x/CameraRaw_12_2_1.exe" > CameraRaw_12_2_1.exe
53 | WINEPREFIX=~/.WineApps/Adobe-Photoshop wine CameraRaw_12_2_1.exe
54 | rm -rf CameraRaw_12_2_1.exe
55 | else
56 | echo ""
57 | fi
58 |
59 | zenity --info --text="Installation finished, Have fun with Photoshop!"
60 |
--------------------------------------------------------------------------------
/Adobe-Photoshop-Gui-Installer/src/index.js:
--------------------------------------------------------------------------------
1 | const {
2 | app,
3 | BrowserWindow,
4 | ipcMain,
5 | electron,
6 | dialog,
7 | remote,
8 | globalShortcut
9 | } = require("electron");const path = require('path');
10 | const { webContents } = require('electron');
11 | let os = require('os');
12 | var fs = require('fs'); // Load the File System to execute our common tasks (CRUD)
13 |
14 |
15 | // Handle creating/removing shortcuts on Windows when installing/uninstalling.
16 | if (require('electron-squirrel-startup')) {
17 | // eslint-disable-line global-require
18 | app.quit();
19 | }
20 |
21 | const createWindow = () => {
22 | // Create the browser window.
23 | const mainWindow = new BrowserWindow({
24 | width: 480,
25 | height: 720,
26 | webPreferences: {
27 | nodeIntegration: true, // is default value after Electron v5
28 | contextIsolation: true, // protect against prototype pollution
29 | enableRemoteModule: true, // turn on remote
30 | preload: path.join(__dirname, "preload.js") // use a preload script
31 | }
32 | });
33 | mainWindow.setMenu(null)
34 | mainWindow.setResizable(false)
35 | // and load the index.html of the app.
36 | mainWindow.loadFile(path.join(__dirname, 'index.html'));
37 |
38 | // Open the DevTools.
39 | //mainWindow.webContents.openDevTools();
40 |
41 | const { exec } = require("child_process");
42 |
43 |
44 | function savedocs() {
45 | mainWindow.webContents.send("SaveDocs", "save");
46 | }
47 |
48 | ipcMain.on("args", (event, args) => {
49 | console.log(args)
50 | mainWindow.webContents.send("fromMain", "back from main :" + args);
51 | fs.writeFileSync(websiteindex, args, 'utf-8');
52 | })
53 |
54 |
55 | ipcMain.on("toMain", (event, args) => {
56 | if(args == "openfile"){
57 | dialog.showOpenDialog(mainWindow, {
58 | properties: ['openDirectory']
59 | }).then(result => {
60 | console.log(result.filePaths)
61 | installdir = result.filePaths
62 | progressfile = installdir + "/progress.mimifile"
63 | if( installdir == ""){
64 | console.log("Dir : "+installdir)
65 | }
66 | else{
67 | /*if(args == "cameraraw"){
68 | exec('cd '+installdir+' ; wget CAMERARAWSCRIPT.SH '+installdir);
69 | loopcheck()
70 | }else{*/
71 | exec('cd '+installdir+' ; wget https://raw.githubusercontent.com/MiMillieuh/Photoshop-CC2022-Linux/main/scripts/photoshop2022install.sh ; chmod+x photoshop2022install.sh ; sh photoshop2022install.sh '+installdir);
72 | loopcheck()
73 | }
74 | //}
75 |
76 | nbtestinstall = 0;
77 |
78 | function loopcheck(){
79 |
80 | fs.readFile(progressfile, 'utf-8', (err, data) => {
81 | if(err){
82 | nbtestinstall++
83 | console.log("Init Install "+ nbtestinstall/2 + "Seconds");
84 | }
85 |
86 | mainWindow.webContents.send("progress", data);
87 | if(data == 100){
88 | exec('rm -rf ' + progressfile);
89 | }else{
90 | setTimeout(loopcheck,500)
91 | }
92 |
93 |
94 | //https://stackoverflow.com/questions/43722450/electron-function-to-read-a-local-file-fs-not-reading
95 | });
96 | }}
97 | )}
98 | });
99 |
100 |
101 |
102 | };
103 |
104 |
105 |
106 | // This method will be called when Electron has finished
107 | // initialization and is ready to create browser windows.
108 | // Some APIs can only be used after this event occurs.
109 | app.on('ready', async () => {
110 | createWindow();
111 | })
112 |
113 | // Quit when all windows are closed, except on macOS. There, it's common
114 | // for applications and their menu bar to stay active until the user quits
115 | // explicitly with Cmd + Q.
116 | app.on('window-all-closed', () => {
117 | if (process.platform !== 'darwin') {
118 | app.quit();
119 | }
120 | });
121 |
122 | app.on('activate', () => {
123 | // On OS X it's common to re-create a window in the app when the
124 | // dock icon is clicked and there are no other windows open.
125 | if (BrowserWindow.getAllWindows().length === 0) {
126 | createWindow();
127 | }
128 | });
129 |
130 | // In this file you can include the rest of your app's specific main process
131 | // code. You can also put them in separate files and import them here.
132 |
--------------------------------------------------------------------------------
/scripts/photoshop2021installcr.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | mkdir $1/Adobe-Photoshop
4 |
5 | wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
6 | chmod +x winetricks
7 |
8 | WINEPREFIX=$1/Adobe-Photoshop wineboot
9 |
10 | rm -rf $1/progress.mimifile
11 | touch $1/progress.mimifile
12 | echo "10" >> $1/progress.mimifile
13 |
14 | WINEPREFIX=$1/Adobe-Photoshop ./winetricks win10
15 |
16 | curl -L -P0 "https://lulucloud.mywire.org/FileHosting/GithubProjects/allredist.tar.xz" > allredist.tar.xz
17 | mkdir allredist
18 |
19 | rm -rf $1/progress.mimifile
20 | touch $1/progress.mimifile
21 | echo "20" >> $1/progress.mimifile
22 |
23 | tar -xf allredist.tar.xz
24 | rm -rf allredist.tar.xz
25 |
26 | rm -rf $1/progress.mimifile
27 | touch $1/progress.mimifile
28 | echo "25" >> $1/progress.mimifile
29 |
30 | curl -L -P0 "https://lulucloud.mywire.org/FileHosting/GithubProjects/AdobePhotoshop2021.tar.xz" > AdobePhotoshop2021.tar.xz
31 |
32 | rm -rf $1/progress.mimifile
33 | touch $1/progress.mimifile
34 | echo "50" >> $1/progress.mimifile
35 |
36 | tar -xf AdobePhotoshop2021.tar.xz
37 | rm -rf AdobePhotoshop2021.tar.xz
38 |
39 |
40 | rm -rf $1/progress.mimifile
41 | touch $1/progress.mimifile
42 | echo "70" >> $1/progress.mimifile
43 |
44 |
45 | WINEPREFIX=$1/Adobe-Photoshop ./winetricks fontsmooth=rgb gdiplus msxml3 msxml6 atmlib corefonts dxvk win10 vkd3d
46 |
47 | rm -rf $1/progress.mimifile
48 | touch $1/progress.mimifile
49 | echo "80" >> $1/progress.mimifile
50 |
51 |
52 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2010/vcredist_x64.exe /q /norestart
53 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2010/vcredist_x86.exe /q /norestart
54 |
55 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2012/vcredist_x86.exe /install /quiet /norestart
56 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2012/vcredist_x64.exe /install /quiet /norestart
57 |
58 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2013/vcredist_x86.exe /install /quiet /norestart
59 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2013/vcredist_x64.exe /install /quiet /norestart
60 |
61 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2019/VC_redist.x64.exe /install /quiet /norestart
62 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2019/VC_redist.x86.exe /install /quiet /norestart
63 |
64 |
65 | rm -rf $1/progress.mimifile
66 | touch $1/progress.mimifile
67 | echo "90" >> $1/progress.mimifile
68 |
69 |
70 | mkdir $1/Adobe-Photoshop/drive_c/Program\ Files/Adobe
71 | mv Adobe\ Photoshop\ 2021 $1/Adobe-Photoshop/drive_c/Program\ Files/Adobe/Adobe\ Photoshop\ 2021
72 |
73 | touch $1/Adobe-Photoshop/drive_c/launcher.sh
74 | echo '#!/usr/bin/env bash' >> $1/Adobe-Photoshop/drive_c/launcher.sh
75 | echo 'SCR_PATH="pspath"' >> $1/Adobe-Photoshop/drive_c/launcher.sh
76 | echo 'CACHE_PATH="pscache"' >> $1/Adobe-Photoshop/drive_c/launcher.sh
77 | echo 'RESOURCES_PATH="$SCR_PATH/resources"' >> $1/Adobe-Photoshop/drive_c/launcher.sh
78 | echo 'WINE_PREFIX="$SCR_PATH/prefix"' >> $1/Adobe-Photoshop/drive_c/launcher.sh
79 | echo 'FILE_PATH=$(winepath -w "$1")' >> $1/Adobe-Photoshop/drive_c/launcher.sh
80 | echo 'export WINEPREFIX="'$1'/Adobe-Photoshop"' >> $1/Adobe-Photoshop/drive_c/launcher.sh
81 | echo 'WINEPREFIX='$1'/Adobe-Photoshop DXVK_LOG_PATH='$1'/Adobe-Photoshop DXVK_STATE_CACHE_PATH='$1'/Adobe-Photoshop wine64 ' $1'/Adobe-Photoshop/drive_c/Program\ Files/Adobe/Adobe\ Photoshop\ 2021/photoshop.exe "$FILE_PATH"' >> $1/Adobe-Photoshop/drive_c/launcher.sh
82 |
83 | chmod +x $1/Adobe-Photoshop/drive_c/launcher.sh
84 |
85 | WINEPREFIX=$1/Adobe-Photoshop winecfg -v win10
86 |
87 |
88 | mv allredist/photoshop.png ~/.local/share/icons/photoshop.png
89 |
90 |
91 | touch ~/.local/share/applications/photoshop.desktop
92 | echo '[Desktop Entry]' >> ~/.local/share/applications/photoshop.desktop
93 | echo 'Name=Photoshop CC 2021' >> ~/.local/share/applications/photoshop.desktop
94 | echo 'Exec=bash -c "'$1'/Adobe-Photoshop/drive_c/launcher.sh %F"' >> ~/.local/share/applications/photoshop.desktop
95 | echo 'Type=Application' >> ~/.local/share/applications/photoshop.desktop
96 | echo 'Comment=Photoshop CC 2021 (Wine)' >> ~/.local/share/applications/photoshop.desktop
97 | echo 'Categories=Graphics;' >> ~/.local/share/applications/photoshop.desktop
98 | echo 'Icon=photoshop' >> ~/.local/share/applications/photoshop.desktop
99 | echo 'StartupWMClass=photoshop.exe' >> ~/.local/share/applications/photoshop.desktop
100 |
101 | rm -rf allredist
102 | rm -rf winetricks
103 |
104 |
105 | rm -rf $1/progress.mimifile
106 | touch $1/progress.mimifile
107 | echo "95" >> $1/progress.mimifile
108 |
109 | curl -L "https://download.adobe.com/pub/adobe/photoshop/cameraraw/win/12.x/CameraRaw_12_2_1.exe" > CameraRaw_12_2_1.exe
110 | WINEPREFIX=$1/Adobe-Photoshop wine CameraRaw_12_2_1.exe
111 | rm -rf CameraRaw_12_2_1.exe
112 |
113 | rm -rf $1/progress.mimifile
114 | touch $1/progress.mimifile
115 | echo "100" >> $1/progress.mimifile
116 |
--------------------------------------------------------------------------------
/scripts/photoshop2021install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # Seems that mimifile is a placeholder for the progress bar
3 | # This script is a modified version of the original script by LinSoftWin
4 |
5 | mkdir $1/Adobe-Photoshop
6 |
7 | wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
8 | chmod +x winetricks
9 |
10 | WINEPREFIX=$1/Adobe-Photoshop wineboot
11 |
12 | rm -rf $1/progress.mimifile
13 | touch $1/progress.mimifile
14 | echo "10" >> $1/progress.mimifile
15 |
16 | WINEPREFIX=$1/Adobe-Photoshop ./winetricks win10
17 |
18 | curl -L "https://drive.google.com/uc?export=download&id=1qcmyHzWerZ39OhW0y4VQ-hOy7639bJPO" > allredist.tar.xz
19 | mkdir allredist
20 |
21 | rm -rf $1/progress.mimifile
22 | touch $1/progress.mimifile
23 | echo "20" >> $1/progress.mimifile
24 |
25 | tar -xf allredist.tar.xz
26 | rm -rf allredist.tar.xz
27 |
28 | rm -rf $1/progress.mimifile
29 | touch $1/progress.mimifile
30 | echo "25" >> $1/progress.mimifile
31 |
32 | # Removed download link on purpose
33 | # Make sure you have the file AdobePhotoshop2021.tar.xz in the same directory as this script
34 |
35 | # Refer to this github comment for a blazing-fast alternative download source:
36 | # https://github.com/LinSoftWin/Photoshop-CC2022-Linux/pull/128#issuecomment-2043562369
37 |
38 | touch $1/progress.mimifile
39 | echo "50" >> $1/progress.mimifile
40 |
41 | tar -xf AdobePhotoshop2021.tar.xz
42 | rm -rf AdobePhotoshop2021.tar.xz
43 |
44 | rm -rf $1/progress.mimifile
45 | touch $1/progress.mimifile
46 | echo "70" >> $1/progress.mimifile
47 |
48 | WINEPREFIX=$1/Adobe-Photoshop ./winetricks fontsmooth=rgb gdiplus msxml3 msxml6 atmlib corefonts dxvk win10 vkd3d
49 |
50 | rm -rf $1/progress.mimifile
51 | touch $1/progress.mimifile
52 | echo "80" >> $1/progress.mimifile
53 |
54 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2010/vcredist_x64.exe /q /norestart
55 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2010/vcredist_x86.exe /q /norestart
56 |
57 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2012/vcredist_x86.exe /install /quiet /norestart
58 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2012/vcredist_x64.exe /install /quiet /norestart
59 |
60 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2013/vcredist_x86.exe /install /quiet /norestart
61 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2013/vcredist_x64.exe /install /quiet /norestart
62 |
63 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2019/VC_redist.x64.exe /install /quiet /norestart
64 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2019/VC_redist.x86.exe /install /quiet /norestart
65 |
66 | rm -rf $1/progress.mimifile
67 | touch $1/progress.mimifile
68 | echo "90" >> $1/progress.mimifile
69 |
70 |
71 | mkdir $1/Adobe-Photoshop/drive_c/Program\ Files/Adobe
72 | mv Adobe\ Photoshop\ 2021 $1/Adobe-Photoshop/drive_c/Program\ Files/Adobe/Adobe\ Photoshop\ 2021
73 |
74 | touch $1/Adobe-Photoshop/drive_c/launcher.sh
75 | echo '#!/usr/bin/env bash' >> $1/Adobe-Photoshop/drive_c/launcher.sh
76 | echo 'SCR_PATH="pspath"' >> $1/Adobe-Photoshop/drive_c/launcher.sh
77 | echo 'CACHE_PATH="pscache"' >> $1/Adobe-Photoshop/drive_c/launcher.sh
78 | echo 'RESOURCES_PATH="$SCR_PATH/resources"' >> $1/Adobe-Photoshop/drive_c/launcher.sh
79 | echo 'WINE_PREFIX="$SCR_PATH/prefix"' >> $1/Adobe-Photoshop/drive_c/launcher.sh
80 | echo 'FILE_PATH=$(winepath -w "$1")' >> $1/Adobe-Photoshop/drive_c/launcher.sh
81 | echo 'export WINEPREFIX="'$1'/Adobe-Photoshop"' >> $1/Adobe-Photoshop/drive_c/launcher.sh
82 | echo 'WINEPREFIX='$1'/Adobe-Photoshop DXVK_LOG_PATH='$1'/Adobe-Photoshop DXVK_STATE_CACHE_PATH='$1'/Adobe-Photoshop wine64 ' $1'/Adobe-Photoshop/drive_c/Program\ Files/Adobe/Adobe\ Photoshop\ 2021/photoshop.exe $FILE_PATH' >> $1/Adobe-Photoshop/drive_c/launcher.sh
83 |
84 | chmod +x $1/Adobe-Photoshop/drive_c/launcher.sh
85 |
86 | WINEPREFIX=$1/Adobe-Photoshop winecfg -v win10
87 |
88 | mv allredist/photoshop.png ~/.local/share/icons/photoshop.png
89 |
90 | # Included mimetypes for default handlers
91 | # Updated name, comment and categories
92 |
93 | touch ~/.local/share/applications/photoshop.desktop
94 | echo '[Desktop Entry]' >> ~/.local/share/applications/photoshop.desktop
95 | echo 'Name=Adobe Photoshop CC 2021' >> ~/.local/share/applications/photoshop.desktop
96 | echo 'Exec=bash -c "'$1'/Adobe-Photoshop/drive_c/launcher.sh %F"' >> ~/.local/share/applications/photoshop.desktop
97 | echo 'Type=Application' >> ~/.local/share/applications/photoshop.desktop
98 | echo 'Comment=The industry-standard photo editing software (Wine)' >> ~/.local/share/applications/photoshop.desktop
99 | echo 'Categories=Graphics;Photography;' >> ~/.local/share/applications/photoshop.desktop
100 | echo 'Icon=$HOME/.local/share/icons/photoshop.png' >> ~/.local/share/applications/photoshop.desktop
101 | echo 'MimeType=image/psd;image/x-psd;' >> ~/.local/share/applications/photoshop.desktop
102 | echo 'StartupWMClass=photoshop.exe' >> ~/.local/share/applications/photoshop.desktop
103 |
104 | rm -rf allredist
105 | rm -rf winetricks
106 |
107 | echo "100" >> $1/progress.mimifile
108 | rm -rf $1/progress.mimifile
109 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Photoshop-CC2022-Linux
2 |
3 | ### Updated fork. **MUST DOWNLOAD** manually the file AdobePhotoshop2021.tar.xz
4 |
5 | ### Make sure you place AdobePhotoshop2021.tar.xz in the same directory as this script
6 |
7 | #### **Refer to this [GitHub comment](https://github.com/LinSoftWin/Photoshop-CC2022-Linux/pull/128#issuecomment-2043562369) for a blazing-fast alternative download source**
8 |
9 | - **SHA256 SUM for checking file authenticity:** 8321b969161f2d2ad736067320d493c5b6ae579eaab9400cd1fda6871af2c033
10 |
11 |
12 | ## Important
13 |
14 | #### PLEASE WHEN OPENING AN ISSUE FILL THE TEMPLATE OR GIVE ENOUGHT INFORMATION !!! "It doesn't work" ISN'T ENOUGH **
15 |
16 | **Please note that the GUI version might not work on your distribution. it worked with some older packager and has broken since. if you used the GUI and it hasn't worked, please try to use the CLI installer with a sh file in the RELEASE section. (avoid cloning as master branche can have experimental changes)**
17 |
18 | **DISCLAIMER:**
19 | **Please use this software only if you have an active Photoshop subscription. I'm not responsable of any use without subscription.**
20 |
21 | This git repo contains an installer for photoshop CC 2022 on linux with wine.
22 |
23 | Note that Photoshop CC 2022 isn't as stable as the CC2021 version on linux. If you need a production environement, concidere using PS2021 instead
24 |
25 | If you use something from my repo in your project please credit me
26 |
27 | | Version | Rating |
28 | | ------------- | ------------- |
29 | | [CC 2021](https://github.com/MiMillieuh/Photoshop-CC2022-Linux/releases/tag/2.1.3) | Works almost like on Windows |
30 | | [CC 2022](https://github.com/MiMillieuh/Photoshop-CC2022-Linux/releases/tag/2.1.1) | Not ready for production... Basic functions works, No GPU acceleration |
31 |
32 | 
33 |
34 | *File download is about 2GB*
35 |
36 | ## Requirements
37 |
38 | **Tested CC2021 on openSUSE Tumbleweed** using Wine-9.6, no problems so far
39 | - wine >=6.1 (Avoid 6.20 to 6.22 **DON'T USE STAGING**)
40 |
41 | (Wine 8.0+ are causing an issue with the windows version see workaround [here](https://github.com/MiMillieuh/Photoshop-CC2022-Linux/issues/94#issuecomment-1426776219))
42 | - zenity
43 | - appmenu-gtk-module
44 | - tar
45 | - wget
46 | - curl
47 | - All R/W rights on your home folder and the installer folder
48 | - Vulkan capable GPU or APU (Older GPUs might encounter [This issue #100](https://github.com/MiMillieuh/Photoshop-CC2022-Linux/issues/100))
49 |
50 |
51 | ## Usage:
52 |
53 | **CLI:**
54 |
55 | `sh photoshop2022install.sh /path/to/your/install/folder`
56 |
57 | **Camera Raw**
58 | You can install Camera Raw this way:
59 |
60 | `curl -L "https://download.adobe.com/pub/adobe/photoshop/cameraraw/win/12.x/CameraRaw_12_2_1.exe" > CameraRaw_12_2_1.exe`
61 | `WINEPREFIX=/Path/To/Your/Photoshop/Install/Adobe-Photoshop wine CameraRaw_12_2_1.exe`
62 |
63 | To use camera raw you need to change a settings
64 | Edit -> preferences -> Camera raw... -> performance -> Use graphic processor: Off
65 |
66 | If camera raw is sometimes grayed out, just go to: Edit -> preferences -> Tools, and uncheck show Tooltips.
67 |
68 |
69 |
70 | **GUI:**
71 |
72 | **THIS METHODE IS DEPRECATED PLEASE USE CLI**
73 |
74 | Open photoshop installer:
75 |
76 | 
77 |
78 | Click on install and chose the install folder (You must have acces to it):
79 |
80 | 
81 |
82 | Wait for the install (It can take a long time depending on your internet and computer speed):
83 |
84 | 
85 |
86 | Once it's done you can close the window:
87 |
88 | 
89 |
90 | Then you can launch Photoshop:
91 |
92 | 
93 |
94 | **Uninstalling:**
95 |
96 | To uninstall remove the photoshop desktop file in *~/.local/share/applications/* then your installation folder
97 |
98 |
99 | ## Special thanks to
100 | - The WineHQ team: For making wine
101 | - Gictorbit: For initial inspiration
102 | - HansKristian-Work: For making VKD3D-Proton
103 | - Adobe: For making Photoshop (also please release an official version for linux...)
104 |
105 |
106 |
107 |
108 | ## Donate
109 |
110 | This isn't necessary but it helps paying the hosting server
111 |
112 |
113 |
114 | BTC: 1LDKrdTKGHtGRjDSL2ULxGGzX4onL5YUsp
115 |
116 | ETH: 0x57bf06a94ead7b18beb237e9aec9ae3ef06fe29a
117 |
118 | BUSD: 0x57bf06a94ead7b18beb237e9aec9ae3ef06fe29a
119 |
--------------------------------------------------------------------------------
/scripts/photoshop2022install.sh:
--------------------------------------------------------------------------------
1 |
2 | mkdir $1/Adobe-Photoshop
3 |
4 | wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
5 | chmod +x winetricks
6 |
7 | WINEPREFIX=$1/Adobe-Photoshop wineboot
8 |
9 | rm -rf $1/progress.mimifile
10 | touch $1/progress.mimifile
11 | echo "10" >> $1/progress.mimifile
12 |
13 | WINEPREFIX=$1/Adobe-Photoshop ./winetricks win10
14 |
15 | curl -L -P0 "https://lulucloud.mywire.org/FileHosting/GithubProjects/PS2022/allredist.tar.xz" > allredist.tar.xz
16 | mkdir allredist
17 |
18 | rm -rf $1/progress.mimifile
19 | touch $1/progress.mimifile
20 | echo "20" >> $1/progress.mimifile
21 |
22 | tar -xf allredist.tar.xz
23 | rm -rf allredist.tar.xz
24 |
25 | rm -rf $1/progress.mimifile
26 | touch $1/progress.mimifile
27 | echo "25" >> $1/progress.mimifile
28 |
29 | curl -L -P0 "https://lulucloud.mywire.org/FileHosting/GithubProjects/PS2022/AdobePhotoshop2022.tar.xz" > AdobePhotoshop2022.tar.xz
30 |
31 | curl -L -P0 "https://lulucloud.mywire.org/FileHosting/GithubProjects/PS2022/Adobe.tar.xz" > Adobe.tar.xz
32 | tar -xf Adobe.tar.xz
33 | mv Adobe $1/Adobe-Photoshop/drive_c/Program\ Files\ \(x86\)/Common\ Files
34 | rm -rf Adobe.tar.xz
35 | rm -rf Adobe
36 |
37 | rm -rf $1/progress.mimifile
38 | touch $1/progress.mimifile
39 | echo "50" >> $1/progress.mimifile
40 |
41 | tar -xf AdobePhotoshop2022.tar.xz
42 | rm -rf AdobePhotoshop2022.tar.xz
43 |
44 |
45 | rm -rf $1/progress.mimifile
46 | touch $1/progress.mimifile
47 | echo "70" >> $1/progress.mimifile
48 |
49 |
50 | WINEPREFIX=$1/Adobe-Photoshop ./winetricks fontsmooth=rgb gdiplus msxml3 msxml6 atmlib corefonts dxvk win10 vkd3d
51 |
52 | rm -rf $1/progress.mimifile
53 | touch $1/progress.mimifile
54 | echo "80" >> $1/progress.mimifile
55 |
56 |
57 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2010/vcredist_x64.exe /q /norestart
58 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2010/vcredist_x86.exe /q /norestart
59 |
60 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2012/vcredist_x86.exe /install /quiet /norestart
61 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2012/vcredist_x64.exe /install /quiet /norestart
62 |
63 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2013/vcredist_x86.exe /install /quiet /norestart
64 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2013/vcredist_x64.exe /install /quiet /norestart
65 |
66 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2019/VC_redist.x64.exe /install /quiet /norestart
67 | WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2019/VC_redist.x86.exe /install /quiet /norestart
68 |
69 | curl -L -P0 "https://lulucloud.mywire.org/FileHosting/GithubProjects/PS2022/wine-tkg-staging-pspatch.tar.xz" > wine-tkg-staging-pspatch.tar.xz
70 | tar -xf wine-tkg-staging-pspatch.tar.xz
71 | mv wine-tkg-staging-pspatch/ $1/Adobe-Photoshop/drive_c/
72 | rm -rf wine-tkg-staging-pspatch.tar.xz
73 |
74 | rm -rf $1/progress.mimifile
75 | touch $1/progress.mimifile
76 | echo "90" >> $1/progress.mimifile
77 |
78 | #WINEPREFIX=$1/Adobe-Photoshop sh allredist/setup_vkd3d_proton.sh install
79 |
80 | mkdir $1/Adobe-Photoshop/drive_c/Program\ Files/Adobe
81 | mv Adobe\ Photoshop\ 2022 $1/Adobe-Photoshop/drive_c/Program\ Files/Adobe/Adobe\ Photoshop\ 2022
82 |
83 | touch $1/Adobe-Photoshop/drive_c/launcher.sh
84 | echo '#!/usr/bin/env bash' >> $1/Adobe-Photoshop/drive_c/launcher.sh
85 | echo 'SCR_PATH="pspath"' >> $1/Adobe-Photoshop/drive_c/launcher.sh
86 | echo 'CACHE_PATH="pscache"' >> $1/Adobe-Photoshop/drive_c/launcher.sh
87 | echo 'RESOURCES_PATH="$SCR_PATH/resources"' >> $1/Adobe-Photoshop/drive_c/launcher.sh
88 | echo 'WINE_PREFIX="$SCR_PATH/prefix"' >> $1/Adobe-Photoshop/drive_c/launcher.sh
89 | echo 'FILE_PATH=$(winepath -w "$1")' >> $1/Adobe-Photoshop/drive_c/launcher.sh
90 | echo 'export WINEPREFIX="'$1'/Adobe-Photoshop"' >> $1/Adobe-Photoshop/drive_c/launcher.sh
91 | echo 'WINEPREFIX='$1'/Adobe-Photoshop DXVK_LOG_PATH='$1'/Adobe-Photoshop DXVK_STATE_CACHE_PATH='$1'/Adobe-Photoshop '$1'/Adobe-Photoshop/drive_c/wine-tkg-staging-pspatch/bin/wine64 ' $1'/Adobe-Photoshop/drive_c/Program\ Files/Adobe/Adobe\ Photoshop\ 2022/photoshop.exe "$FILE_PATH"' >> $1/Adobe-Photoshop/drive_c/launcher.sh
92 |
93 | chmod +x $1/Adobe-Photoshop/drive_c/launcher.sh
94 |
95 | rm -rf Adobe\ Photoshop\ 2022
96 |
97 | WINEPREFIX=$1/Adobe-Photoshop winecfg -v win10
98 |
99 |
100 | mv allredist/photoshop.png ~/.local/share/icons/photoshop.png
101 |
102 |
103 | curl -L -P0 "https://lulucloud.mywire.org/FileHosting/GithubProjects/PS2022/Adobe_Photoshop_2022_Settings.tar.xz" > Adobe_Photoshop_2022_Settings.tar.xz
104 | tar -xf Adobe_Photoshop_2022_Settings.tar.xz
105 | mkdir $1/Adobe-Photoshop/drive_c/users/$USER/AppData/Roaming/Adobe
106 | mkdir $1/Adobe-Photoshop/drive_c/users/$USER/AppData/Roaming/Adobe/Adobe\ Photoshop\ 2022/
107 | mv Adobe\ Photoshop\ 2022\ Settings $1/Adobe-Photoshop/drive_c/users/$USER/AppData/Roaming/Adobe/Adobe\ Photoshop\ 2022/
108 | rm -rf Adobe_Photoshop_2022_Settings.tar.xz
109 | rm -rf Adobe\ Photoshop\ 2022\ Settings
110 |
111 |
112 | touch ~/.local/share/applications/photoshop.desktop
113 | echo '[Desktop Entry]' >> ~/.local/share/applications/photoshop.desktop
114 | echo 'Name=Photoshop CC 2022' >> ~/.local/share/applications/photoshop.desktop
115 | echo 'Exec=bash -c "'$1'/Adobe-Photoshop/drive_c/launcher.sh %F"' >> ~/.local/share/applications/photoshop.desktop
116 | echo 'Type=Application' >> ~/.local/share/applications/photoshop.desktop
117 | echo 'Comment=Photoshop CC 2022 (Wine)' >> ~/.local/share/applications/photoshop.desktop
118 | echo 'Categories=Graphics;' >> ~/.local/share/applications/photoshop.desktop
119 | echo 'Icon=photoshop' >> ~/.local/share/applications/photoshop.desktop
120 | echo 'StartupWMClass=photoshop.exe' >> ~/.local/share/applications/photoshop.desktop
121 |
122 |
123 | rm -rf allredist
124 | rm -rf winetricks
125 |
126 | rm -rf $1/progress.mimifile
127 | touch $1/progress.mimifile
128 | echo "100" >> $1/progress.mimifile
129 |
130 | sleep 5
131 |
132 | rm -rf $1/progress.mimifile
133 | rm -rf $1/photoshop2022install.sh
134 |
--------------------------------------------------------------------------------