Appimageを使ったwineをインストールする方法。

Appimageを使ったwineのインストール

#!/bin/sh

install=~/image
fname=wine-staging_7.19-x86_64.AppImage

mkdir -p ${install}
cd ${install}
# https://github.com/mmtrt/WINE_AppImage
wget https://github.com/mmtrt/WINE_AppImage/releases/download/continuous-staging/${fname}
chmod +x ${fname}

#WINEPREFIX=~/.

rm /usr/local/bin/wine
cat <<EOM > /usr/local/bin/wine
#!/bin/sh
WINEARCH=win32 ${install}/${fname} "${@}"
EOM
chmod +x /usr/local/bin/wine

rm /usr/local/bin/wine64
cat <<EOM > /usr/local/bin/wine64
#!/bin/sh
WINEARCH=win64 ${install}/${fname} "${@}"
EOM
chmod +x /usr/local/bin/wine64

rm /usr/local/bin/winetricks
cat <<EOM > /usr/local/bin/winetricks
#!/bin/sh
wine winetricks
EOM
chmod +x /usr/local/bin/winetricks
rm /usr/local/bin/winetricks

cat <<EOM > /usr/local/bin/wineboot
#!/bin/sh
wine wineboot "${@}"
EOM
chmod +x /usr/local/bin/wineboot

#sudo ln -s ${install}/${fname} /usr/local/bin/wine
#sudo ln -s ${install}/${fname} /usr/local/bin/wine64
sudo ln -s ${install}/${fname} /usr/local/bin/winecfg
sudo ln -s ${install}/${fname} /usr/local/bin/wineserver

# 文字化け対策
#cp -aus /usr/share/fonts/ja/TrueType/BIZUD* ~/.wine-appimage/drive_c/windows/Fonts/
#wine64 ~/.wine-appimage/drive_c/windows/regedit.exe wine-japanese.reg 
wine64 ~/.wine-appimage/drive_c/windows/regedit.exe wine-fontlink.reg 

wine winecfg
wine winetricks
wine winetricks cjkfonts

#cd /tmp && wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
#sudo chmod +x winetricks && sudo mv winetricks /usr/local/bin/

./wine-staging_7.18-x86_64.AppImage explorer /desktop=shell,800x600 explorer.exe

# avoid NTLM error
dnf install samba-winbind
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"Tahoma"=hex(7):42,00,49,00,5a,00,55,00,44,00,47,00,6f,00,74,00,68,00,69,00,63,\
  00,2d,00,52,00,65,00,67,00,75,00,6c,00,61,00,72,00,2e,00,74,00,74,00,66,00,\
  2c,00,20,00,42,00,49,00,5a,00,20,00,55,00,44,00,47,00,6f,00,74,00,68,00,69,\
  00,63,00,00,00,69,00,70,00,61,00,67,00,70,00,2e,00,74,00,74,00,66,00,2c,00,\
  49,00,50,00,41,00,20,00,50,00,b4,30,b7,30,c3,30,af,30,00,00,4d,00,53,00,47,\
  00,4f,00,54,00,48,00,49,00,43,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,53,00,\
  20,00,55,00,49,00,20,00,47,00,6f,00,74,00,68,00,69,00,63,00,00,00,4d,00,49,\
  00,4e,00,47,00,4c,00,49,00,55,00,2e,00,54,00,54,00,43,00,2c,00,50,00,4d,00,\
  69,00,6e,00,67,00,4c,00,69,00,55,00,00,00,53,00,49,00,4d,00,53,00,55,00,4e,\
  00,2e,00,54,00,54,00,43,00,2c,00,53,00,69,00,6d,00,53,00,75,00,6e,00,00,00,\
  47,00,55,00,4c,00,49,00,4d,00,2e,00,54,00,54,00,43,00,2c,00,47,00,75,00,6c,\
  00,69,00,6d,00,00,00,00,00

あぷりのインストール

# DXVK dxgi(native,builtin)
cd /tmp
wget https://github.com/doitsujin/dxvk/releases/download/v1.10.3/dxvk-1.10.3.tar.gz
tar xvzf dxvk-1.10.3.tar.gz
cd dxvk-1.10.3
export WINEPREFIX=~/.photoshopCCV19/prefix
./setup_dxvk.sh install
#./setup_dxvk.sh uninstall


# VKD3D-Proton
cd /tmp
wget https://github.com/HansKristian-Work/vkd3d-proton/releases/download/v2.7/vkd3d-proton-2.7.tar.zst
unzstd vkd3d-proton-2.7.tar.zst
tar xvf vkd3d-proton-2.7.tar
cd vkd3d-proton-2.7
export WINEPREFIX=~/.photoshopCCV19/prefix
./setup_vkd3d_proton.sh install
#./setup_vkd3d_proton.sh uninstall

LANG=C wine64 regsvr32 ~/.photoshopCCV19/prefix/drive_c/windows/syswow64/d3d11.dll
LANG=C wine64 regsvr32 ~/.photoshopCCV19/prefix/drive_c/windows/syswow64/dxgi.dll


# Photoshop
git clone https://github.com/Gictorbit/photoshopCClinux.git
cd photoshopCClinux

chmod +x setup.sh
./setup.sh

#./PhotoshopSetup.sh -d /mnt/myfiles/photoshop -c /mnt/cache
~/.photoshopCCV19/launcher/launcher.sh

#~/.photoshopCCV19