-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enviromentIssues caused by local system configuration , not by affinity-cli itself.Issues caused by local system configuration , not by affinity-cli itself.wine-prefixIssues related to Wine/Proton prefix state, winetricks, .NET, DXVK or GPU stack inside the prefixIssues related to Wine/Proton prefix state, winetricks, .NET, DXVK or GPU stack inside the prefix
Description
I tried installing affinity-cli in a Docker environment for reproducibility. This is the file:
FROM python:slim
RUN apt-get update
RUN apt-get install -y git curl tar wget cabextract wine make unzip vulkan-tools
WORKDIR /tmp
ARG WINETRICKS_VERSION="20250102"
RUN wget https://github.com/Winetricks/winetricks/archive/refs/tags/$WINETRICKS_VERSION.zip
RUN unzip $WINETRICKS_VERSION.zip
WORKDIR winetricks-$WINETRICKS_VERSION
RUN make install
RUN useradd -ms /bin/bash affinity
USER affinity
RUN mkdir -p ~/.cache/affinity-cli
RUN chmod 700 ~/.cache/affinity-cli
WORKDIR /home/affinity
RUN git clone https://github.com/ind4skylivey/affinity-cli.git
WORKDIR affinity-cli
RUN python3 -m venv .venv
RUN .venv/bin/python -m pip install --upgrade pip
RUN .venv/bin/python -m pip install -e .I then executed the install command manually because I don't think it can be installed non-interactively. This happened:
Detected Debian GNU/Linux 13 (trixie) 13 • auto-selecting available Wine/Proton from PATH
╭──────────────────────────────────────────────────────────────────────────────╮
│ No local Affinity Universal installer detected. Attempting smart download... │
╰──────────────────────────────────────────────────────────────────────────────╯
Downloading Affinity Universal installer (official)...
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 644M/644M [02:22<00:00, 4.51MB/s]
Saved to /home/affinity/.cache/affinity-cli/Affinity_Universal.exe
Install plan (Universal)
┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Installer ┃ File ┃ Size ┃
┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Affinity Universal │ /home/affinity/.cache/affinity-cli/Affinity_Universal.exe │ 613.9 MB │
└────────────────────┴───────────────────────────────────────────────────────────┴──────────┘
Continue with installation? [y/n] (y): y
Preparing Wine prefix for Affinity (win11, DXVK/vkd3d, core runtimes)...
2025-12-24 09:25:36,777 [INFO] Setting Windows version to win11: /usr/bin/wine winecfg /v win11
Wine profile: standard
Installing Wine components: win11, corefonts, tahoma, crypt32, d3dcompiler_47, vcrun2022
2025-12-24 09:25:38,555 [INFO] Installing winetricks components: win11, corefonts, tahoma, crypt32, d3dcompiler_47, vcrun2022
Executing cd /usr/bin
------------------------------------------------------
warning: Unknown file arch of /usr/bin/wine.
------------------------------------------------------
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a
clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
------------------------------------------------------
warning: WoW64 type could not be detected.
------------------------------------------------------
Using winetricks 20250102 - sha256sum: 53194dead910f8a5eb1deacaa4773d4e48f5873633d18ab1ecd6fdb0cb92243b with wine-10.0 (Debian 10.0~repack-6) and
WINEARCH=win64
Executing w_do_call win11
------------------------------------------------------
warning: Unknown file arch of /usr/bin/wine.
------------------------------------------------------
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a
clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
------------------------------------------------------
warning: WoW64 type could not be detected.
------------------------------------------------------
Executing load_win11
Executing wine winecfg -v win11
------------------------------------------------------
warning: Running /usr/bin/wineserver -w. This will hang until all wine processes in prefix=/home/affinity/.wine-affinity terminate
------------------------------------------------------
Executing w_do_call corefonts
------------------------------------------------------
warning: Unknown file arch of /usr/bin/wine.
------------------------------------------------------
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a
clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
------------------------------------------------------
warning: WoW64 type could not be detected.
------------------------------------------------------
Executing load_corefonts
Executing w_do_call andale
------------------------------------------------------
warning: Unknown file arch of /usr/bin/wine.
------------------------------------------------------
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a
clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
------------------------------------------------------
warning: WoW64 type could not be detected.
------------------------------------------------------
Executing load_andale
Executing mkdir -p /home/affinity/.cache/winetricks/corefonts
Executing cd /home/affinity/.cache/winetricks/corefonts
Downloading https://github.com/pushcx/corefonts/raw/master/andale32.exe to /home/affinity/.cache/winetricks/corefonts
--2025-12-24 09:25:47-- https://github.com/pushcx/corefonts/raw/master/andale32.exe
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/pushcx/corefonts/master/andale32.exe
--2025-12-24 09:25:48-- https://raw.githubusercontent.com/pushcx/corefonts/master/andale32.exe
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.109.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 198384 (194K)
Saving to: ‘andale32.exe’
winetricks is still running... please wait
0K .......... .......... .......... .......... .......... 25% 2.54M 0s
50K .......... .......... .......... .......... .......... 51% 2.17M 0s
100K .......... .......... .......... .......... .......... 77% 4.47M 0s
150K .......... .......... .......... .......... ... 100% 6.69M=0.06s
winetricks is still running... please wait
2025-12-24 09:25:48 (3.21 MB/s) - ‘andale32.exe’ saved [198384/198384]
winetricks is still running... please wait
Executing cd /home/affinity/affinity-cli
Executing cabextract -q -d /home/affinity/.wine-affinity/dosdevices/c:/windows/temp /home/affinity/.cache/winetricks/corefonts/andale32.exe
------------------------------------------------------
warning: Running /usr/bin/wineserver -w. This will hang until all wine processes in prefix=/home/affinity/.wine-affinity terminate
------------------------------------------------------
Executing wine C:\windows\syswow64\regedit.exe /S C:\windows\Temp\_register-font.reg
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
wine: failed to open "C:\\windows\\syswow64\\regedit.exe": c0000135
------------------------------------------------------
warning: Note: command wine C:\windows\syswow64
egedit.exe /S C:\windows\Temp\_register-font.reg returned status 53. Aborting.
------------------------------------------------------
╭──────────────────────────────────────────────────────────────────────────────────╮
│ Prefix preparation failed: │
│ winetricks failed with exit code 1. Please retry or install components manually. │
│ │
│ Install winetricks and ensure Vulkan/DXVK prerequisites are present, then retry. │
╰──────────────────────────────────────────────────────────────────────────────────╯
Since the XDG_RUNTIME_DIR thing was the first error, I retried using XDG_RUNTIME_DIR=$HOME .venv/bin/affinity-cli install. The final error remains:
------------------------------------------------------
warning: Running /usr/bin/wineserver -w. This will hang until all wine processes in prefix=/home/affinity/.wine-affinity terminate
------------------------------------------------------
Executing wine C:\windows\syswow64\regedit.exe /S C:\windows\Temp\_register-font.reg
wine: failed to open "C:\\windows\\syswow64\\regedit.exe": c0000135
------------------------------------------------------
warning: Note: command wine C:\windows\syswow64
egedit.exe /S C:\windows\Temp\_register-font.reg returned status 53. Aborting.
------------------------------------------------------
Can you diagnose this issue based on the log? Is it related to affinity-cli, winetricks or something else?
ind4skylivey
Metadata
Metadata
Assignees
Labels
enviromentIssues caused by local system configuration , not by affinity-cli itself.Issues caused by local system configuration , not by affinity-cli itself.wine-prefixIssues related to Wine/Proton prefix state, winetricks, .NET, DXVK or GPU stack inside the prefixIssues related to Wine/Proton prefix state, winetricks, .NET, DXVK or GPU stack inside the prefix