- Shell 100%
| .gitignore | ||
| .SRCINFO | ||
| affinity.desktop | ||
| affinity.png | ||
| affinity.sh | ||
| install.sh | ||
| LICENSE | ||
| PKGBUILD | ||
| README.md | ||
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
- Clone this repository or download the files
- Navigate to the directory containing the
PKGBUILD - Build and install the package:
makepkg -sifc
- Run the installer:
affinity
Or from the application menu: Affinity
What Does the Installer Do?
The installation process includes:
- Creates Wine Prefix in
/opt/affinity/prefix - Downloads Affinity installer (~500MB) from official source
- Installs Dependencies:
- Removes Mono (not needed)
- Installs Visual C++ 2022 Runtime
- Installs .NET Framework 4.8
- Installs core fonts
- Sets Windows 11 compatibility
- Runs Affinity Installer (interactive - you need to complete it)
- Downloads and Installs Required Files:
wintypes.dll(Windows Runtime shim for Affinity)Windows.winmd(Windows metadata file)
- Configures Wine:
- Sets up Vulkan renderer
- Installs Tahoma font
- Cleans Up Wine-created desktop files
- Launches Affinity
Usage
Starting Affinity
After installation, you can launch Affinity in several ways:
-
Command line:
affinity -
Application menu: Look for "Affinity" in your application launcher
-
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
-
Check if the executable exists:
ls "/opt/affinity/prefix/drive_c/Program Files/Affinity/Affinity/Affinity.exe" -
Try running with verbose output:
WINEPREFIX="/opt/affinity/prefix" wine "/opt/affinity/prefix/drive_c/Program Files/Affinity/Affinity/Affinity.exe" -
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.