Created
February 6, 2019 20:40
-
-
Save fritschy/001139de03e772f40a1067a4882cbac6 to your computer and use it in GitHub Desktop.
Run Anno 1503 on Linux with Wine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export WINEPREFIX=$PWD | |
case "$1" in | |
setup) | |
mkdir -p ~/Games/anno-1503 | |
cd ~/Games/anno-1503 | |
winetricks winxp directplay directmusic vd=off | |
case "$2" in | |
*setup_anno_1503*) | |
setup="$2" | |
;; | |
*) | |
setup=~/setup_anno_1503_2.0.0.5.exe | |
;; | |
esac | |
wine "$setup" | |
;; | |
*) | |
Xephyr :2 -screen 800x600x16 & P=$! # the ...x16 is important! | |
sleep 1 | |
env DISPLAY=:2 wine start /wait /affinity 1 /unix drive_c/GOG\ Games/Anno\ 1503\ AD/1503Startup.exe | |
kill $P | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment