wine platform snap that provides WINE base for win application snaps. Snap developers that create WINE snaps can leverage this base snap to connect it to their WINE snaps.
You can use this snap as a reference for creating snaps of other WINE compatible 32-bit Windows applications or games. Here are the main things you'll need to use in your snaps:
plugs:
wine-platform-plug:
content: wine-base-stable
interface: content
target: $SNAP/wine-platform
default-provider: wine-platform
apps:
foo:
command: bar
plugs:
- wine-platform-plug
Here's an example that shows how to use some of the capabilities outlined above:
wine-platform-plug
is used by user snap to connect it's plug to wine-platform
snapwine-base-stable
uses the slots of `wine-platform
each slot has different WINE versionswine-base-stable
uses wine-stable
wine-base-devel
uses wine-devel
wine-base-staging
uses wine-staging
WINE
base per snap is used$SNAP/wine-platform
where wine-base
data will be mounted though Developers have to ship that empty DIR in root
PATH
of their snapsexport WINEVERPATH=$SNAP/wine-platform/wine-stable
export WINESERVER=$SNAP/wine-platform/wine-stable/bin/wineserver
export WINELOADER=$SNAP/wine-platform/wine-stable/bin/wine
export WINEDLLPATH=$SNAP/wine-platform/wine-stable/lib/wine/fakedlls
export WINETRICKS=$SNAP/wine-platform/bin/winetricks
export LD_LIBRARY_PATH="$SNAP/wine-platform/lib:$SNAP/wine-platform/lib/$ARCH:$SNAP/wine-platform/usr/lib:$SNAP/wine-platform/usr/lib/$ARCH:$LD_LIBRARY_PATH"
export PATH=$PATH:$SNAP/wine-platform/bin:$SNAP/wine-platform/usr/bin:$SNAP/wine-platform/wine-stable/bin
PATH``$SNAP/wine-platform
earlier defined in plugs is used as well as the wine-base
which has full PATH
$SNAP/wine-platform/wine-stable
which can be different depending on wine-base-xxxxx
used by the snaps so in this exp we are using wine-base-stable
PATH
in other libraries CONFIG
envfoo
snap to wine platform snap manually with wine-base-stable
slot of wine-platform
to use wine-stable
snap connect foo:wine-platform-plug wine-platform:wine-base-stable
Check out wrapper scripts that are using this snap env
Also check snapcraft.yamls
for further refrences
If you have any questions about creating snaps of WINE compatible Windows applications then post in the Snapcraft forum.