Massively simplified wine starter template.
parent
eadb36c133
commit
2be0daf7e0
@ -1,16 +1,6 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
configure()
|
||||
{
|
||||
# The WINEPREFIX for the program
|
||||
WINEPREFIX=""
|
||||
# The path to the exe starting from your prefix's dosdevices folder.
|
||||
# example: "c:/GOG Games/Some Game/startTheGame.exe"
|
||||
native_path=""
|
||||
}
|
||||
WINEPREFIX="${HOME}/.local"
|
||||
wine_path="C:/"
|
||||
|
||||
configure
|
||||
wine_exec_full="${WINEPREFIX}/dosdevices/${native_path}"
|
||||
# TODO: Print a useful error message when the path is wrong.
|
||||
cd "$(dirname "${wine_exec_full}")" || exit 1
|
||||
wine "./$(basename "${wine_exec_full}")"
|
||||
env WINEPREFIX="${WINEPREFIX}" wine start "${wine_path}"
|
||||
|
||||
Loading…
Reference in New Issue