Affinity Wine Documentation

Warning

You are on the v1 of the guide.
This version helps you build wine from scratch.
The up to date version of this guide is available at the bottom on the sidemenu as the v2.

Wineprefix Setup

Setting Up Your Build and Wineprefix

Refer to the "Wine User Guide documentation" for more information about using Wine.

  1. Copy Your Build to the Default Directory

    Since this guide uses rum, you need to copy your custom Wine build to /opt/wines/, which is the default directory used by rum:

    mkdir /opt/wines
    
    cp "$HOME/Documents/ElementalWarrior-wine/wine-install" "/opt/wines/affinity-photo3-wine9.13-part3"
    
  2. Create a Symlink for wine64

    The custom version of Wine built here might not include a binary named wine64, which can cause issues when using Winetricks. To avoid these problems, create a symbolic link (symlink) for wine as wine64:

    ln -s /opt/wines/affinity-photo3-wine9.13-part3/bin/wine /opt/wines/affinity-photo3-wine9.13-part3/bin/wine64
    
  3. Create Your Wineprefix:

    Use rum to create your WINEPREFIX ($HOME/.wineAffinity):

    rum affinity-photo3-wine9.13-part3 $HOME/.wineAffinity wineboot --init
    
  4. Install Dependencies with winetricks:

    rum affinity-photo3-wine9.13-part3 $HOME/.wineAffinity winetricks --unattended dotnet48 corefonts
    
  5. Set the Wineprefix to Windows 11 if Needed:

    Winetricks might set your prefix to Win7 after installing dotnet, so you may need to set it back to Win11 with the following command

    rum affinity-photo3-wine9.13-part3 $HOME/.wineAffinity wine winecfg -v win11
    
  6. Copy .winmd Files if Using Affinity Version Newer than 1.10.3:

    As mentioned in the preamble, you will need winmd files from a Windows install if you wish to use an Affinity version newer than 1.10.3. They are located in C:/windows/system32/WinMetadata and need to go in $HOME/.wineAffinity/drive_c/windows/system32/WinMetadata.

    cp [WinMetadata folder path] "$HOME/.wineAffinity/drive_c/windows/system32/WinMetadata"
    
  7. Run Any Affinity Installer .exe with rum:

    rum affinity-photo3-wine9.13-part3 $HOME/.wineAffinity wine [Path to the installer].exe
    
  8. Launch Installed Affinity Software:

    To launch the desired Affinity software, use the following commands:

    Publisher

    rum affinity-photo3-wine9.13-part3 $HOME/.wineAffinity wine "$HOME/.wineAffinity/drive_c/Program Files/Affinity/Publisher 2/Publisher.exe"
    

    Designer

    rum affinity-photo3-wine9.13-part3 $HOME/.wineAffinity wine "$HOME/.wineAffinity/drive_c/Program Files/Affinity/Designer 2/Designer.exe"
    

    Photo

    rum affinity-photo3-wine9.13-part3 $HOME/.wineAffinity wine "$HOME/.wineAffinity/drive_c/Program Files/Affinity/Photo 2/Photo.exe"