summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-10-11 12:36:23 -0500
committerAlexander M Pickering <alex@cogarr.net>2024-10-11 12:36:23 -0500
commitce0c322562bdcd6fd8c84b2cddcc7fd38f833b5f (patch)
tree1ae31f6dedcb2478bd33e5df4e02a41b1805586d
parent6d3f17bc31e34067f5bf7c62b072d4fdd1457156 (diff)
downloadlua4win-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.wxs6
-rwxr-xr-xtest12
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>
diff --git a/test b/test
index 48049a4..37e62d4 100755
--- a/test
+++ b/test
@@ -9,19 +9,23 @@ DISPLAY=:99 msiexec /i lua4win.msi &
9WIN="Lua4Win Installer 1.0 Setup" 9WIN="Lua4Win Installer 1.0 Setup"
10DISPLAY=:99 xdotool sleep 3 10DISPLAY=:99 xdotool sleep 3
11win=$(DISPLAY=:99 xdotool search --sync --name "Installer") 11win=$(DISPLAY=:99 xdotool search --sync --name "Installer")
12# Click agree to terms 12# Click Next
13DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/1.png 13DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/1.png
14DISPLAY=:99 xdotool mousemove --window "$win" --sync 180 285 14DISPLAY=:99 xdotool mousemove --window "$win" --sync 346 334
15DISPLAY=:99 xdotool sleep 1 15DISPLAY=:99 xdotool sleep 1
16DISPLAY=:99 xdotool click 1 16DISPLAY=:99 xdotool click 1
17DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/2.png 17DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/2.png
18DISPLAY=:99 xdotool sleep 1 18DISPLAY=:99 xdotool sleep 1
19# Click Install 19# Click agree to liscense
20DISPLAY=:99 xdotool mousemove --window "$win" --sync 333 333 20DISPLAY=:99 xdotool mousemove --window "$win" --sync 34 286
21DISPLAY=:99 xdotool sleep 1 21DISPLAY=:99 xdotool sleep 1
22DISPLAY=:99 xdotool click 1 22DISPLAY=:99 xdotool click 1
23DISPLAY=:99 xdotool sleep 1 23DISPLAY=:99 xdotool sleep 1
24DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/3.png 24DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/3.png
25# Click next
26DISPLAY=:99 xdotool sleep 1
27DISPLAY=:99 xdotool mousemove --window "$win" --sync 350 337
28DISPLAY=:99 xdotool sleep 1
25DISPLAY=:99 xdotool click 1 29DISPLAY=:99 xdotool click 1
26DISPLAY=:99 xdotool sleep 1 30DISPLAY=:99 xdotool sleep 1
27DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/4.png 31DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/4.png