diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2024-10-11 12:36:23 -0500 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2024-10-11 12:36:23 -0500 |
| commit | ce0c322562bdcd6fd8c84b2cddcc7fd38f833b5f (patch) | |
| tree | 1ae31f6dedcb2478bd33e5df4e02a41b1805586d | |
| parent | 6d3f17bc31e34067f5bf7c62b072d4fdd1457156 (diff) | |
| download | lua4win-dist-lua-ce0c322562bdcd6fd8c84b2cddcc7fd38f833b5f.tar.gz lua4win-dist-lua-ce0c322562bdcd6fd8c84b2cddcc7fd38f833b5f.tar.bz2 lua4win-dist-lua-ce0c322562bdcd6fd8c84b2cddcc7fd38f833b5f.zip | |
Add environment variables
Add PATH and LUAROCKS_SYSCONFDIR
| -rw-r--r-- | lua4win.wxs | 6 | ||||
| -rwxr-xr-x | test | 12 |
2 files changed, 14 insertions, 4 deletions
diff --git a/lua4win.wxs b/lua4win.wxs index 7012f96..b524e15 100644 --- a/lua4win.wxs +++ b/lua4win.wxs | |||
| @@ -39,6 +39,12 @@ | |||
| 39 | <File Id="config.lua" Source="config.lua" /> | 39 | <File Id="config.lua" Source="config.lua" /> |
| 40 | </Component> | 40 | </Component> |
| 41 | </Directory> | 41 | </Directory> |
| 42 | <Component Id="EnvironmentPath"> | ||
| 43 | <Environment Id="AddPath" Name="PATH" Action="set" System="yes" Part="last" Value="[INSTALLDIR]"/> | ||
| 44 | </Component> | ||
| 45 | <Component Id="SysConfigPath"> | ||
| 46 | <Environment Id="AddPath" Name="LUAROCKS_SYSCONFDIR" Action="set" System="yes" Part="last" Value="[INSTALLDIR]/config"/> | ||
| 47 | </Component> | ||
| 42 | </Directory> | 48 | </Directory> |
| 43 | </Directory> | 49 | </Directory> |
| 44 | </Directory> | 50 | </Directory> |
| @@ -9,19 +9,23 @@ DISPLAY=:99 msiexec /i lua4win.msi & | |||
| 9 | WIN="Lua4Win Installer 1.0 Setup" | 9 | WIN="Lua4Win Installer 1.0 Setup" |
| 10 | DISPLAY=:99 xdotool sleep 3 | 10 | DISPLAY=:99 xdotool sleep 3 |
| 11 | win=$(DISPLAY=:99 xdotool search --sync --name "Installer") | 11 | win=$(DISPLAY=:99 xdotool search --sync --name "Installer") |
| 12 | # Click agree to terms | 12 | # Click Next |
| 13 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/1.png | 13 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/1.png |
| 14 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 180 285 | 14 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 346 334 |
| 15 | DISPLAY=:99 xdotool sleep 1 | 15 | DISPLAY=:99 xdotool sleep 1 |
| 16 | DISPLAY=:99 xdotool click 1 | 16 | DISPLAY=:99 xdotool click 1 |
| 17 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/2.png | 17 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/2.png |
| 18 | DISPLAY=:99 xdotool sleep 1 | 18 | DISPLAY=:99 xdotool sleep 1 |
| 19 | # Click Install | 19 | # Click agree to liscense |
| 20 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 333 333 | 20 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 34 286 |
| 21 | DISPLAY=:99 xdotool sleep 1 | 21 | DISPLAY=:99 xdotool sleep 1 |
| 22 | DISPLAY=:99 xdotool click 1 | 22 | DISPLAY=:99 xdotool click 1 |
| 23 | DISPLAY=:99 xdotool sleep 1 | 23 | DISPLAY=:99 xdotool sleep 1 |
| 24 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/3.png | 24 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/3.png |
| 25 | # Click next | ||
| 26 | DISPLAY=:99 xdotool sleep 1 | ||
| 27 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 350 337 | ||
| 28 | DISPLAY=:99 xdotool sleep 1 | ||
| 25 | DISPLAY=:99 xdotool click 1 | 29 | DISPLAY=:99 xdotool click 1 |
| 26 | DISPLAY=:99 xdotool sleep 1 | 30 | DISPLAY=:99 xdotool sleep 1 |
| 27 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/4.png | 31 | DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/4.png |
