diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2024-10-02 18:13:45 -0500 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2024-10-02 18:13:45 -0500 |
| commit | 5110cf35ae7b880eccbbae0b0493c23e6329a583 (patch) | |
| tree | 4f1489904475995be5d70014bebc399a0f349c2b | |
| parent | 9aecf1de66617f0863c804f398a6ed1194d45535 (diff) | |
| download | lua4win-dist-lua-5110cf35ae7b880eccbbae0b0493c23e6329a583.tar.gz lua4win-dist-lua-5110cf35ae7b880eccbbae0b0493c23e6329a583.tar.bz2 lua4win-dist-lua-5110cf35ae7b880eccbbae0b0493c23e6329a583.zip | |
Use quotes
| -rwxr-xr-x | test | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -7,14 +7,16 @@ DISPLAY=:99 WINEDLLOVERRIDES="mscoree,mshtml=" wineboot -i | |||
| 7 | # For some reason we have to set this here, having set .. ^ is not enough | 7 | # For some reason we have to set this here, having set .. ^ is not enough |
| 8 | DISPLAY=:99 msiexec /i lua4win.msi & | 8 | DISPLAY=:99 msiexec /i lua4win.msi & |
| 9 | win=$(DISPLAY=:99 xdotool search --sync --name "Installer") | 9 | win=$(DISPLAY=:99 xdotool search --sync --name "Installer") |
| 10 | WIN="Lua4Win Installer 1.0 Setup" | ||
| 11 | DISPLAY=:99 xdotool sleep 0.1 | ||
| 10 | # Click agree to terms | 12 | # Click agree to terms |
| 11 | DISPLAY=:99 xwd -name $win | magick xwd:- png:/root/1.png | 13 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/1.png |
| 12 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 180 285 | 14 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 180 285 |
| 13 | DISPLAY=:99 xdotool sleep 0.1 | 15 | DISPLAY=:99 xdotool sleep 0.1 |
| 14 | DISPLAY=:99 xdotool click 1 | 16 | DISPLAY=:99 xdotool click 1 |
| 15 | DISPLAY=:99 xwd -name $win | magick xwd:- png:/root/2.png | 17 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/2.png |
| 16 | # Click Install | 18 | # Click Install |
| 17 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 333 333 | 19 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 333 333 |
| 18 | DISPLAY=:99 xdotool sleep 0.1 | 20 | DISPLAY=:99 xdotool sleep 0.1 |
| 19 | DISPLAY=:99 xdotool click 1 | 21 | DISPLAY=:99 xdotool click 1 |
| 20 | DISPLAY=:99 xwd -name $win | magick xwd:- png:/root/3.png | 22 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/3.png |
