Skip to content

Commit

Permalink
Add reusing this snap instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed Jun 1, 2018
1 parent 3dd1863 commit 7a7224e
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,26 @@ distributions.</p>

## Reusing this snap

*In progress...*

If you have any questions about creating snaps of WINE compatible Windows
You can use this snap as a reference for creating snaps of other WINE
compatible Windows applications. Here are the main things you'll need to
modify:

* Change the meta data and `apps:` and `parts:` names from `tmnationsforever`.
* Modify the `command:` to reference the executable the application/game should launch.
* If you can't redistrbute the application/game use `INSTALL_URL:` to reference a web accessible installer.
* Modify the `install_app()` and `launch_app()` functions in [`snap/scripts/sommelier`](snap/scripts/sommelier) to suit the application/game you're snapping.
* If your application/game requires some winetricks to work then you can specify them via `TRICKS:` in the `environment:` of the main `command:`. For example:

```
environment:
WINEPREFIX: "$SNAP_USER_COMMON/.wine"
TRICKS: "winxp corefonts d3dx9_43"
LC_ALL: "C.UTF-8"
```

One other point of interest is that `yad` is staged in the snap and a faux
`zenity` script is included that execs `yad`. We do this because `yad` is
argument compatible with `zenity` but pulls far fewer package dependencies.

If you have any questions about creating snaps of WINE compatible Windows
applications then [post in the Snapcraft forum](https://forum.snapcraft.io).

0 comments on commit 7a7224e

Please sign in to comment.