Installer adobe-photoshop-ps-2-ps2021

该脚本仅供阅读,不能直接用来在Wine游戏助手中安装游戏。
要通过命令安装游戏,请下载完整脚本
安装命令:/opt/apps/net.winegame.client/files/bin/winegame -i ./xxx.json

custom-name: Adobe Photoshop CC 2021
files:
- exec: N/A:请选择PS安装目录中的Photoshop.exe
- wineinit: https://file.winegame.net/games/common/wineinit.sh
- cmdfonts: https://file.winegame.net/cache/wine/fonts/MicrosoftYaHeiMono-20210208.tar.gz
- vclib: https://file.winegame.net/libs/msvc140/VC_redist.x64.exe
game:
  exe: $exec
  prefix: $GAMEDIR
installer:
- execute:
    command: bash "$wineinit" win64 6.4
    description: 下载字体和运行库
- task:
    arch: win64
    description: 创建64位Wine前缀
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    description: 解压CMD字体
    dst: $GAMEDIR/drive_c/windows/Fonts
    file: cmdfonts
- task:
    description: 安装CMD字体
    filename: $GAMEDIR/drive_c/windows/Fonts/MicrosoftYaHeiMono.reg
    name: set_regedit_file
- execute:
    command: rm -f "$GAMEDIR/dosdevices/m::"; ln -sf "$HOME" "$GAMEDIR/dosdevices/m:"
    description: 添加主目录($HOME)为M盘
- task:
    arch: win64
    description: 'Wine Staging: 启用 DXVA2'
    key: backend
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\DXVA2
    prefix: $GAMEDIR
    value: va
- task:
    app: fontsmooth=rgb gdiplus msxml3 msxml6 atmlib cjkfonts corefonts
    arch: win64
    description: 安装字体
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- task:
    name: winekill
    prefix: $GAMEDIR
- task:
    name: winekill
    prefix: $GAMEDIR
- task:
    description: 安装运行库
    executable: vclib
    name: wineexec
    prefix: $GAMEDIR
- task:
    name: winekill
    prefix: $GAMEDIR
- write_file:
    content: |
      if not exist "%CommonProgramW6432%\Adobe" md "%CommonProgramW6432%\Adobe"
      if not exist "%CommonProgramFiles(x86)%\Adobe" md "%CommonProgramFiles(x86)%\Adobe"
      echo f|xcopy /c/e/i/h/r/y "Data\CommonProgramW6432\Adobe" "%CommonProgramW6432%\Adobe"
      echo f|xcopy /c/e/i/h/r/y "Data\CommonProgramFiles(x86)\Adobe" "%CommonProgramFiles(x86)%\Adobe"

      if not exist "%AppData%\Adobe\UXP\PluginsStorage\PHSP\22" md "%AppData%\Adobe\UXP\PluginsStorage\PHSP\22"
      echo f|xcopy /c/e/i/h/r/y "Data\AppData\UXP" "%AppData%\Adobe\UXP"

      start "" /wait "%~dp0PhotoshopPrefsManager.exe" --migrationFlag=[prefMigration] "--installDir=%~dp0\"

      rundll32 setupapi.dll,InstallHinfSection DefaultInstall 132 .\ProductsRegInfo.inf

      reg add "HKCU\SOFTWARE\Adobe\Photoshop\150.0\PermanentPrefs" /f
      reg add "HKCU\SOFTWARE\Adobe\Photoshop\150.0\uxp_com.adobe.ccx.lrimporter" /f
      reg add "HKCU\SOFTWARE\Adobe\Photoshop\150.0\uxp_com.adobe.ccx.start" /f
      reg add "HKCU\SOFTWARE\Classes\.3fr" /f /ve /d "Photoshop.3FRFile.150"
      reg add "HKCU\SOFTWARE\Classes\.3fr" /f /v "PerceivedType" /d "Image"
      reg add "HKCU\SOFTWARE\Classes\.dcr" /f /ve /d "Photoshop.CameraRawFileKodak.150"
      reg add "HKCU\SOFTWARE\Classes\.exr" /f /ve /d "Photoshop.OpenEXRFile.150"
      reg add "HKCU\SOFTWARE\Classes\.fff" /f /ve /d "Photoshop.FFFFile.150"
      reg add "HKCU\SOFTWARE\Classes\.fff" /f /v "PerceivedType" /d "Image"
      reg add "HKCU\SOFTWARE\Classes\.hdr" /f /ve /d "Photoshop.PortableBitMapFile.150"
      reg add "HKCU\SOFTWARE\Classes\.iff" /f /ve /d "Photoshop.IFFFileType.150"
      reg add "HKCU\SOFTWARE\Classes\.iiq" /f /ve /d "Photoshop.IIQFile.150"
      reg add "HKCU\SOFTWARE\Classes\.iiq" /f /v "PerceivedType" /d "Image"
      reg add "HKCU\SOFTWARE\Classes\.mef" /f /ve /d "Photoshop.MEFFile.150"
      reg add "HKCU\SOFTWARE\Classes\.mef" /f /v "PerceivedType" /d "Image"
      reg add "HKCU\SOFTWARE\Classes\.mos" /f /ve /d "Photoshop.CameraRawFileLeaf.150"
      reg add "HKCU\SOFTWARE\Classes\.nrw" /f /v "PerceivedType" /d "Image"
      reg add "HKCU\SOFTWARE\Classes\.pcd" /f /ve /d "Photoshop.PCDFile.150"
      reg add "HKCU\SOFTWARE\Classes\.raw" /f /ve /d "Photoshop.RAWFile.150"
      reg add "HKCU\SOFTWARE\Classes\.raw" /f /v "PerceivedType" /d "Image"
      reg add "HKCU\SOFTWARE\Classes\.x3f" /f /ve /d "Photoshop.CameraRawFileFoveon.150"

      regsvr32 /s MysticThumbs.dll
    file: $exec.init.bat
- task:
    description: 导入注册表
    executable: $exec.init.bat
    name: wineexec
    prefix: $GAMEDIR
- task:
    name: winekill
    prefix: $GAMEDIR
- write_file:
    content: dxgi.nvapiHack = False
    file: $GAMEDIR/dxvk.conf
system:
  env:
    DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
    DXVK_HUD: compiler
    DXVK_STATE_CACHE_PATH: $GAMEDIR
    MESA_GL_VERSION_OVERRIDE: 4.4COMPAT
    STAGING_SHARED_MEMORY: 1
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
wine:
  dxvk: true
  esync: true
  overrides:
    winedbg.exe: disabled
  version: lutris-6.4-x86_64
  vkd3d: true
{
  "custom-name": "Adobe Photoshop CC 2021",
  "files": [
    {
      "exec": "N/A:\u8bf7\u9009\u62e9PS\u5b89\u88c5\u76ee\u5f55\u4e2d\u7684Photoshop.exe"
    },
    {
      "wineinit": "https://file.winegame.net/games/common/wineinit.sh"
    },
    {
      "cmdfonts": "https://file.winegame.net/cache/wine/fonts/MicrosoftYaHeiMono-20210208.tar.gz"
    },
    {
      "vclib": "https://file.winegame.net/libs/msvc140/VC_redist.x64.exe"
    }
  ],
  "game": {
    "exe": "$exec",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "execute": {
        "command": "bash \"$wineinit\" win64 6.4",
        "description": "\u4e0b\u8f7d\u5b57\u4f53\u548c\u8fd0\u884c\u5e93"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "\u521b\u5efa64\u4f4dWine\u524d\u7f00",
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "extract": {
        "description": "\u89e3\u538bCMD\u5b57\u4f53",
        "dst": "$GAMEDIR/drive_c/windows/Fonts",
        "file": "cmdfonts"
      }
    },
    {
      "task": {
        "description": "\u5b89\u88c5CMD\u5b57\u4f53",
        "filename": "$GAMEDIR/drive_c/windows/Fonts/MicrosoftYaHeiMono.reg",
        "name": "set_regedit_file"
      }
    },
    {
      "execute": {
        "command": "rm -f \"$GAMEDIR/dosdevices/m::\"; ln -sf \"$HOME\" \"$GAMEDIR/dosdevices/m:\"",
        "description": "\u6dfb\u52a0\u4e3b\u76ee\u5f55($HOME)\u4e3aM\u76d8"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Wine Staging: \u542f\u7528 DXVA2",
        "key": "backend",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\DXVA2",
        "prefix": "$GAMEDIR",
        "value": "va"
      }
    },
    {
      "task": {
        "app": "fontsmooth=rgb gdiplus msxml3 msxml6 atmlib cjkfonts corefonts",
        "arch": "win64",
        "description": "\u5b89\u88c5\u5b57\u4f53",
        "name": "winetricks",
        "prefix": "$GAMEDIR",
        "silent": true
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "description": "\u5b89\u88c5\u8fd0\u884c\u5e93",
        "executable": "vclib",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "write_file": {
        "content": "if not exist \"%CommonProgramW6432%\\Adobe\" md \"%CommonProgramW6432%\\Adobe\"\nif not exist \"%CommonProgramFiles(x86)%\\Adobe\" md \"%CommonProgramFiles(x86)%\\Adobe\"\necho f|xcopy /c/e/i/h/r/y \"Data\\CommonProgramW6432\\Adobe\" \"%CommonProgramW6432%\\Adobe\"\necho f|xcopy /c/e/i/h/r/y \"Data\\CommonProgramFiles(x86)\\Adobe\" \"%CommonProgramFiles(x86)%\\Adobe\"\n\nif not exist \"%AppData%\\Adobe\\UXP\\PluginsStorage\\PHSP\\22\" md \"%AppData%\\Adobe\\UXP\\PluginsStorage\\PHSP\\22\"\necho f|xcopy /c/e/i/h/r/y \"Data\\AppData\\UXP\" \"%AppData%\\Adobe\\UXP\"\n\nstart \"\" /wait \"%~dp0PhotoshopPrefsManager.exe\" --migrationFlag=[prefMigration] \"--installDir=%~dp0\\\"\n\nrundll32 setupapi.dll,InstallHinfSection DefaultInstall 132 .\\ProductsRegInfo.inf\n\nreg add \"HKCU\\SOFTWARE\\Adobe\\Photoshop\\150.0\\PermanentPrefs\" /f\nreg add \"HKCU\\SOFTWARE\\Adobe\\Photoshop\\150.0\\uxp_com.adobe.ccx.lrimporter\" /f\nreg add \"HKCU\\SOFTWARE\\Adobe\\Photoshop\\150.0\\uxp_com.adobe.ccx.start\" /f\nreg add \"HKCU\\SOFTWARE\\Classes\\.3fr\" /f /ve /d \"Photoshop.3FRFile.150\"\nreg add \"HKCU\\SOFTWARE\\Classes\\.3fr\" /f /v \"PerceivedType\" /d \"Image\"\nreg add \"HKCU\\SOFTWARE\\Classes\\.dcr\" /f /ve /d \"Photoshop.CameraRawFileKodak.150\"\nreg add \"HKCU\\SOFTWARE\\Classes\\.exr\" /f /ve /d \"Photoshop.OpenEXRFile.150\"\nreg add \"HKCU\\SOFTWARE\\Classes\\.fff\" /f /ve /d \"Photoshop.FFFFile.150\"\nreg add \"HKCU\\SOFTWARE\\Classes\\.fff\" /f /v \"PerceivedType\" /d \"Image\"\nreg add \"HKCU\\SOFTWARE\\Classes\\.hdr\" /f /ve /d \"Photoshop.PortableBitMapFile.150\"\nreg add \"HKCU\\SOFTWARE\\Classes\\.iff\" /f /ve /d \"Photoshop.IFFFileType.150\"\nreg add \"HKCU\\SOFTWARE\\Classes\\.iiq\" /f /ve /d \"Photoshop.IIQFile.150\"\nreg add \"HKCU\\SOFTWARE\\Classes\\.iiq\" /f /v \"PerceivedType\" /d \"Image\"\nreg add \"HKCU\\SOFTWARE\\Classes\\.mef\" /f /ve /d \"Photoshop.MEFFile.150\"\nreg add \"HKCU\\SOFTWARE\\Classes\\.mef\" /f /v \"PerceivedType\" /d \"Image\"\nreg add \"HKCU\\SOFTWARE\\Classes\\.mos\" /f /ve /d \"Photoshop.CameraRawFileLeaf.150\"\nreg add \"HKCU\\SOFTWARE\\Classes\\.nrw\" /f /v \"PerceivedType\" /d \"Image\"\nreg add \"HKCU\\SOFTWARE\\Classes\\.pcd\" /f /ve /d \"Photoshop.PCDFile.150\"\nreg add \"HKCU\\SOFTWARE\\Classes\\.raw\" /f /ve /d \"Photoshop.RAWFile.150\"\nreg add \"HKCU\\SOFTWARE\\Classes\\.raw\" /f /v \"PerceivedType\" /d \"Image\"\nreg add \"HKCU\\SOFTWARE\\Classes\\.x3f\" /f /ve /d \"Photoshop.CameraRawFileFoveon.150\"\n\nregsvr32 /s MysticThumbs.dll\n",
        "file": "$exec.init.bat"
      }
    },
    {
      "task": {
        "description": "\u5bfc\u5165\u6ce8\u518c\u8868",
        "executable": "$exec.init.bat",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "write_file": {
        "content": "dxgi.nvapiHack = False",
        "file": "$GAMEDIR/dxvk.conf"
      }
    }
  ],
  "system": {
    "env": {
      "DXVK_CONFIG_FILE": "$GAMEDIR/dxvk.conf",
      "DXVK_HUD": "compiler",
      "DXVK_STATE_CACHE_PATH": "$GAMEDIR",
      "MESA_GL_VERSION_OVERRIDE": "4.4COMPAT",
      "STAGING_SHARED_MEMORY": 1,
      "__GL_SHADER_DISK_CACHE": 1,
      "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR"
    }
  },
  "wine": {
    "dxvk": true,
    "esync": true,
    "overrides": {
      "winedbg.exe": "disabled"
    },
    "version": "lutris-6.4-x86_64",
    "vkd3d": true
  }
}
返回游戏