Skip to content

Commit

Permalink
Nonsense to run GRT under Wine32, under Linux, under Docker for Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
muz committed Aug 12, 2021
0 parents commit f7b48ac
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM debian

RUN dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get install -y wine32 libwine fonts-wine \
&& rm -rf /var/lib/apt/lists/*
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
IPADDR:=$(shell ipconfig getifaddr en0)

build: Dockerfile
docker build . -t grt

run:
docker run -e DISPLAY=${IPADDR}:0 -it -v ~/grt:/opt/grt grt wine /opt/grt/GordonsReloadingTool.exe

socat:
./socat_xquartz.sh &

.PHONY: build run socat
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# grtwine

Some total nonsense I've whacked together to enable me to run
GordonsReloadingTool on MacOS given I had Docker and XQuartz installed for
Other Reasons.

## Dependencies

On the local machine;

* An extracted copy of the 32-bit Windows GRT client in `~/grt`.
* Docker for Mac 🤢
* socat
* xquartz

The latter two being via `brew`.

## Overview

1. XQuartz should be configured on the host to allow network clients
1. `make socat` starts XQuartz and `socat` to expose the X Server
1. `make build` generates a locally Docker image (`grt`) with 32-bit Wine
1. `make run` spawns GRT under Wine using the previously exposed X server

Could this be better? Oh totally.
4 changes: 4 additions & 0 deletions socat_xquartz.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

/Applications/Utilities/XQuartz.app/Contents/MacOS/X11.bin &
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\" &

0 comments on commit f7b48ac

Please sign in to comment.