mmtrt / wine-platform

WINE platform snap provides WINE base for snaps that are depended on WINE
https://snapcraft.io/wine-platform
GNU Lesser General Public License v2.1
8 stars 0 forks source link


Wine Platform

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.

Using this snap base

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:

Getting plugs to user snap

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:

Getting wine-base env PATHs to user snap

export 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

Connecting the plugs

snap connect foo:wine-platform-plug wine-platform:wine-base-stable

Check out wrapper scripts that are using this snap env

notepad-plus-plus - cncra

Also check snapcraft.yamls for further refrences

notepad-plus-plus - cncra

If you have any questions about creating snaps of WINE compatible Windows applications then post in the Snapcraft forum.