apply tips from emmanuel

This commit is contained in:
Chris Kruining 2025-04-23 20:46:27 +02:00
parent 88489339c0
commit a62b4fc8a8
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg

View file

@ -22,14 +22,15 @@ in mkWindowsApp rec {
enableInstallNotification = true; enableInstallNotification = true;
fileMap = { fileMap = {
"$HOME/.cache/${pname}" = "drive_c/${pname}/${pname}-cache"; "$HOME/.config/${pname}/Stud.io" = "drive_c/users/$USER/AppData/Local/Stud.io";
"$HOME/.config/${pname}/Bricklink" = "drive_c/users/$USER/AppData/LocalLow/Bricklink";
}; };
fileMapDuringAppInstall = false; fileMapDuringAppInstall = false;
persistRegistry = false; persistRegistry = false;
persistRuntimeLayer = false; persistRuntimeLayer = true;
inputHashMethod = "store-path"; inputHashMethod = "version";
# Can be used to precisely select the Direct3D implementation. # Can be used to precisely select the Direct3D implementation.
# #
@ -50,19 +51,16 @@ in mkWindowsApp rec {
inhibitIdle = false; inhibitIdle = false;
winAppInstall = '' winAppInstall = ''
d="$WINEPREFIX/drive_c/${pname}" wine64 ${src}
config_dir="$HOME/.config/studio"
mkdir -p "$d" wine64 reg add 'HKCU\Software\Wine\Explorer' /v Desktop /d "Default"
mkdir -p "$config_dir" wine64 reg add 'HKCU\Software\Wine\Explorer\Desktops' /v Default /d "1920x1080"
wine ${src}
''; '';
winAppPreRun = ''''; winAppPreRun = '''';
winAppRun = '' winAppRun = ''
wine "$WINEPREFIX/drive_c/${pname}/studio-${version}-64.exe" "$ARGS" wine64 "$WINEPREFIX/drive_c/Program Files/Studio 2.0/Studio.exe" "$ARGS"
''; '';
winAppPostRun = ""; winAppPostRun = "";