Skip to content

Commit

Permalink
Initial commit - 32-bit DipTrace Freeware edition, version 2.4.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
devanlai committed Jul 13, 2015
0 parents commit abb0aff
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.git/
.gitignore
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM tianon/wine:32

MAINTAINER Devan Lai <devan.lai@gmail.com>

RUN apt-get -y update && apt-get install -y xvfb

COPY bin/* /tmp/bin/

ENV WINEDLLOVERRIDES="mscoree,mshtml="
RUN if [ ! -d ${WINEPREFIX:-~/.wine/} ]; then \
xvfb-run -a wine winecfg /D && \
/tmp/bin/waitfor.sh wineserver; \
fi

RUN wine reg ADD "HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion" \
/v "ProductName" /t REG_SZ /d "Microsoft Windows Vista";

COPY exe/*.exe /tmp/exe/


RUN xvfb-run -a wine \
/tmp/exe/dipfree_en.exe /silent /hide; \
/tmp/bin/waitfor.sh wineserver; \
test -f "`winepath 'C:\\Program Files\\DipTrace\\Schematic.exe'`" && \
test -f "`winepath 'C:\\Program Files\\DipTrace\\Pcb.exe'`";

RUN rm -rf /tmp/exe/
RUN rm -rf /tmp/bin/
9 changes: 9 additions & 0 deletions bin/waitfor.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
PID=`pgrep $1`
if [ -n "$PID" ]; then
while ps -p $PID > /dev/null;
do sleep 1;
done;
else
>&2 echo "Could not find process \"$1\"";
fi
Binary file added exe/dipfree_en.exe
Binary file not shown.

0 comments on commit abb0aff

Please sign in to comment.