This repository was archived by the owner on Jul 18, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.sh
More file actions
62 lines (51 loc) · 1.31 KB
/
config.sh
File metadata and controls
62 lines (51 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#! /bin/bash
autorespond() {
if [[ -z $WINEDLLOVERRIDES ]]; then
echo ".."
waitAndEnter "Wine Mono Installer"
echo "..."
waitAndEnter "Wine Gecko Installer"
else
echo "Mono and Gecko install skipped"
fi;
echo "...."
waitAndEnter "Wine configuration"
echo "....."
}
waitAndEnter() {
title="$1"
local window
while [[ -z "$window" ]]; do
sleep 10
echo "waiting for $title..."
set +e
window=`xdotool search --name "$title"`
set -e
done
echo "found: $window"
xdotool windowfocus --sync $window
xdotool key Return
}
startVirtualFrameBuffer() {
# uncomment to force Xvfb
# export DISPLAY=:1
if [[ $DISPLAY == ":1" ]]; then
echo "starting virtual frame buffer as display 1"
Xvfb :1 &
else
echo "$DISPLAY != 1, assuming external X running"
fi
}
# comment to enable mono and gecko install popup
export WINEDLLOVERRIDES="mscoree,mshtml="
startVirtualFrameBuffer
autorespond &
winecfg
while (( $(ps | grep wineserver | grep -vc grep) != 0 )); do
echo "waiting for wineserver to terminate..."
sleep 5
done
echo "Installing Python..."
./winew.sh python.exe /quiet InstallAllUsers=1 PrependPath=1
echo "Installing Pyinstaller..."
./winew.sh pip3 install pyinstaller