File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,7 +70,12 @@ restore() {
7070
7171# Initialise a fresh Wine prefix with all required dependencies.
7272init () {
73- print_info " Initializing Wine prefix..."
73+ if [ -d " ${WINEPREFIX:- } " ]; then
74+ print_info " Prefix already exists at $WINEPREFIX — re-running dependencies non-destructively"
75+ print_info " (Use './setup full' to start completely fresh)"
76+ else
77+ print_info " Initializing Wine prefix..."
78+ fi
7479
7580 # Install system-level apt packages required by wine-gaming tooling.
7681 # icoutils: wrestool + icotool — extract and convert .exe icons for desktop shortcuts.
@@ -85,7 +90,7 @@ init() {
8590 mkdir -p " ${HOME} /.config/winetricks"
8691 touch " ${HOME} /.config/winetricks/enable-latest-version-check"
8792
88- wineboot -u
93+ wineboot -u 2> /dev/null
8994
9095 print_info " Installing Wine dependencies via winetricks..."
9196 # vcrun*: Visual C++ runtimes | d3dcompiler/d3dx: DirectX | dxvk/vkd3d/d9vk: GPU layers
You can’t perform that action at this time.
0 commit comments