Affinity Studio installer script
Find a file
2026-03-09 17:58:50 +01:00
.gitignore initial commit 2026-03-09 17:23:17 +01:00
.SRCINFO update icon 2026-03-09 17:58:50 +01:00
affinity.desktop update 2026-03-09 17:56:15 +01:00
affinity.png update icon 2026-03-09 17:58:50 +01:00
affinity.sh initial commit 2026-03-09 17:23:17 +01:00
install.sh initial commit 2026-03-09 17:23:17 +01:00
LICENSE Create LICENSE 2026-03-09 17:24:25 +01:00
PKGBUILD update icon 2026-03-09 17:58:50 +01:00
README.md Update README.md 2026-03-09 17:32:57 +01:00

Affinity Logo

Affinity Installer

An automated installer for the Affinity Suite

Requirements

  • Wine (latest stable version recommended)
  • Winetricks
  • KDialog (KDE dialog utility)
  • curl
  • pkexec (for privileged operations)
  • Optional: Vulkan drivers for better performance

Installation

  1. Clone this repository or download the files
  2. Navigate to the directory containing the PKGBUILD
  3. Build and install the package:
makepkg -sifc
  1. Run the installer:
affinity

Or from the application menu: Affinity

What Does the Installer Do?

The installation process includes:

  1. Creates Wine Prefix in /opt/affinity/prefix
  2. Downloads Affinity installer (~500MB) from official source
  3. Installs Dependencies:
    • Removes Mono (not needed)
    • Installs Visual C++ 2022 Runtime
    • Installs .NET Framework 4.8
    • Installs core fonts
    • Sets Windows 11 compatibility
  4. Runs Affinity Installer (interactive - you need to complete it)
  5. Downloads and Installs Required Files:
    • wintypes.dll (Windows Runtime shim for Affinity)
    • Windows.winmd (Windows metadata file)
  6. Configures Wine:
    • Sets up Vulkan renderer
    • Installs Tahoma font
  7. Cleans Up Wine-created desktop files
  8. Launches Affinity

Usage

Starting Affinity

After installation, you can launch Affinity in several ways:

  1. Command line:

    affinity
    
  2. Application menu: Look for "Affinity" in your application launcher

  3. Direct Wine command:

    WINEPREFIX="/opt/affinity/prefix" wine "/opt/affinity/prefix/drive_c/Program Files/Affinity/Affinity/Affinity.exe"
    

Troubleshooting

Installation fails at dependency step

If winetricks fails to install dependencies, try running it manually:

WINEPREFIX="/opt/affinity/prefix" winetricks --unattended --force remove_mono vcrun2022 dotnet48 corefonts win11

Affinity won't start

  1. Check if the executable exists:

    ls "/opt/affinity/prefix/drive_c/Program Files/Affinity/Affinity/Affinity.exe"
    
  2. Try running with verbose output:

    WINEPREFIX="/opt/affinity/prefix" wine "/opt/affinity/prefix/drive_c/Program Files/Affinity/Affinity/Affinity.exe"
    
  3. Check Wine logs:

    tail -f ~/.wine/affinity.log
    

Permission errors

If you get permission errors with /opt/affinity, ensure the directory is owned by your user:

sudo chown -R $USER:$USER /opt/affinity

Vulkan not working

Install Vulkan drivers for your GPU:

NVIDIA:

sudo pacman -S nvidia-utils vulkan-icd-loader

AMD:

sudo pacman -S vulkan-radeon vulkan-icd-loader

Intel:

sudo pacman -S vulkan-intel vulkan-icd-loader

Dialog doesn't appear (non-KDE desktops)

While this installer is designed for KDE/Plasma, you can install kdialog on other desktops:

sudo pacman -S kdialog

Technical Details

Wine Prefix Location

The Wine prefix is located at /opt/affinity/prefix to avoid conflicts with other Wine applications and your default Wine prefix.

Required DLL Files

  • wintypes.dll: A shim that allows Affinity to resolve Windows Runtime (.winmd) files without requiring a forked version of Wine
  • Windows.winmd: Windows metadata file required by Affinity for Windows Runtime API resolution

Renderer

The installer configures Wine to use OpenGL rendering for better performance. You can change this manually:

WINEPREFIX="/opt/affinity/prefix" winetricks renderer=vulkan

or

WINEPREFIX="/opt/affinity/prefix" winetricks renderer=gl

A KCM to configure the renderer is planned.

Credits

  • Affinity Suite by Canva
  • wintypes.dll shim by ElementalWarrior
  • Windows.winmd from Microsoft's windows-rs project
  • Wine and Winetricks communities

License

This installer script is provided as-is. Please ensure you have a valid license for Affinity software.

The Affinity Suite is proprietary software owned by Canva. This installer does not include or distribute Affinity software, it downloads the official installer from Affinity's website.

Contributing

Contributions are welcome! Feel free to:

  • Report issues
  • Submit pull requests
  • Add translations for additional languages
  • Improve documentation

Disclaimer

This is an unofficial installer. It is not affiliated with, endorsed by, or supported by Canva. Use at your own risk.