Running affinity on wine or Linux
This is a tutorial how to run the image manipulation/Svg editor/publishing program affinity
Prerequisites
- A Distro with GLibc (Pretty sure this applies only to the Pre-Compiled builds And this should be in most popular distros except Alpine and Void Linux Musl)
- A Pc that supports affinity system requirments (which all can be found here: Affinity Designer: https://affinity.serif.com/designer/full-feature-list/ Affinity Photo: https://affinity.serif.com/photo/full-feature-list/ Affinity Publisher: https://affinity.serif.com/publisher/full-feature-list/)
- Git,CoreUtils and Make installed on Your favourite Linux Distro (For Compiling)
For People who dont wanna compile it
PreCompiled builds can be found in https://github.com/Twig6943/ElementalWarrior-Wine-binaries/releases (Just right click and extract) or https://github.com/daegalus/wine-tkg-affinity/releases (You're supposed to extract the usr folder inside the and then rename it to wine-tkg-affinity)
- Clone the repo of Elemental Warrior wine fork
Cd ~/documents/
git clone https://gitlab.winehq.org/ElementalWarrior/wine.git ElementalWarrior-wine
- Optionally and Recommended Change the branch to something newer
git switch affinity-photo3-wine9.13-part3
- Optionally and Recommended Change the branch to something newer
- Make some folders you will need to compile it
cd ElementalWarrior-wine/
mkdir wine32-build/ wine64-build/ wine-install/
- Cd into the wine64-build give it some time to compile
cd wine64-build/
/home/USER/Documents/ElementalWarrior-wine/configure --prefix=/home/YOUR-USER-FOLDER/Documents/ElementalWarrior-wine/wine-install --enable-win64
make
- Optionally to make the compilation faster, you can increase the cores used
make -j"putyouramountofcoresheredontputtomuch"
or you can use all the cores available withmake -j
.
- Optionally to make the compilation faster, you can increase the cores used
- Cd into the wine32-built and compile that as well
cd /home/USER/Documents/ElementalWarrior-wine/wine32-build/
PKG_CONFIG_PATH=/usr/lib32/pkgconfig /home/USER/Documents/ElementalWarrior-wine/configure --with-wine64=/home/USER/Documents/ElementalWarrior-wine/wine64-build --prefix=/home/YOUE-USER-FOLDER/Documents/ElementalWarrior-wine/wine-install
make
ormake -j
ormake -j"putyouramountofcoresheredontputtomuch"
- Now run
make install
after it finished compiling- Do the same with the 64 bit build
cd /home/USER/Documents/ElementalWarrior-wine/wine64-build
- Do the same with the 64 bit build
Warning
After you create your Wine Prefix you need to get the WinMetadata Folder from a Windows System a download for it can be found here for convenience: https://github.com/daniel080400/AffinityLinuxTut/blob/main/WinMetadata.zip you need to place it in system32 folder
Now you should be done you will have the compiled wine in /wine-install/
Use with bottles (You can use other wine runtime tools like rum but bottles is preferred in my opinion)
- Put your folder you just compiled in
/home/YOURUSER/.local/share/bottles/runners/
(If installed Natively) - Start a new bottle first restart bottles, then create a new one, click on the plus on top, click custom scroll down and select what you named your compiled wine folder
- You need to switch the renderer in settings,scroll down to display settings and select from opengl to vulkan, Now put all the settings related to your Gpu on like use discrete Gpu (if you have one), optionally turn on bottles runtime(if you start having weird issues).DO NOT TURN ON DXVK OR VK3D3 IT WILL BREAK THE CANVAS.
- Install corefonts dotnet48 and dotnet35 DO NOT USE THE BOTTLES BUILT IN ONE USE WINETRICKS INSTEAD BY
WINEPREFIX=~/home/YOURUSER/.local/share/bottles/bottles/YOURBOTTLENAME/ winetricks dotnet48 dotnet35 corefonts
or guiWINEPREFIX=~/home/YOURUSER/.local/share/bottles/bottles/YOURBOTTLENAME/ winetricks
(If installed flatpack point it to where it is) ALSO DONT USE MONO** - Now put your affinity installer and you should be done.
Troubleshooting
- Affinity installer crashing (Maybe only happens on wine-tkg-affinity)
Solution: Reopen the installer click Repair
Found a grammer mistake,A issue with this guide
Report it to https://github.com/Twig6943/AffinityOnLinux/issues and https://codeberg.org/wanesty/affinity-wine-docs/issues but its recommended to report Most issues to this Git repo
taken from: https://forum.affinity.serif.com/index.php?/topic/182758-affinity-suite-v2-on-linux-wine/&/topic/182758-affinity-suite-v204-on-linux-wine/= and https://github.com/Twig6943/AffinityOnLinux/tree/main and https://github.com/daniel080400/AffinityLinuxTut and https://affinity.liz.pet/ i added that bottle tutorial