diff options
-rwxr-xr-x | init | 2 | ||||
-rw-r--r-- | lua4win.wxs | 39 | ||||
-rw-r--r-- | meta.lua | 19 |
3 files changed, 59 insertions, 1 deletions
@@ -1 +1,3 @@ | |||
1 | #!/bin/sh -ex | 1 | #!/bin/sh -ex |
2 | |||
3 | exit -1 | ||
diff --git a/lua4win.wxs b/lua4win.wxs new file mode 100644 index 0000000..c1411ca --- /dev/null +++ b/lua4win.wxs | |||
@@ -0,0 +1,39 @@ | |||
1 | <?xml version='1.0' encoding='windows-1252'?> | ||
2 | <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | ||
3 | <Product Id="*" UpgradeCode="GUID-GOES-HERE" | ||
4 | Name="LuaJit Installer" | ||
5 | Version="1.0.0.0" | ||
6 | Manufacturer="Your Company" | ||
7 | Language="1033"> | ||
8 | <Package Id="*" Description="LuaJit Installation Package" | ||
9 | InstallerVersion="200" Compressed="yes" /> | ||
10 | |||
11 | <!-- Add UI dialog to select install folder --> | ||
12 | <UI> | ||
13 | <DialogRef Id="WixUI_InstallDir"/> | ||
14 | </UI> | ||
15 | |||
16 | <Media Id="1" Cabinet="product.cab" EmbedCab="yes"/> | ||
17 | |||
18 | <Directory Id="TARGETDIR" Name="SourceDir"> | ||
19 | <Directory Id="ProgramFilesFolder"> | ||
20 | <!-- Use WIXUI_INSTALLDIR to get the selected install folder --> | ||
21 | <Directory Id="WIXUI_INSTALLDIR" Name="LuaJit"> | ||
22 | <Component Id="MainExecutable" Guid="GUID-GOES-HERE"> | ||
23 | <File Id="luajit.exe" Source="path_to_your_file\luajit.exe" /> | ||
24 | <Shortcut Id="LuaJitShortcut" Directory="ProgramMenuDir" Name="LuaJit" Target="[WIXUI_INSTALLDIR]luajit.exe" WorkingDirectory="WIXUI_INSTALLDIR"/> | ||
25 | </Component> | ||
26 | </Directory> | ||
27 | </Directory> | ||
28 | </Directory> | ||
29 | |||
30 | <Feature Id="MainApplication" Title="LuaJit" Description="The main LuaJit application." Level="1"> | ||
31 | <ComponentRef Id="MainExecutable" /> | ||
32 | |||
33 | <!-- Create the symbolic link using WIXUI_INSTALLDIR --> | ||
34 | <RegistryKey Root="HKLM" Key="SYSTEM\CurrentControlSet\Services\lua.exe"> | ||
35 | <RegistryValue Name="" Type="string" Value="[NETFRAMEWORK20]\v2.0.50727\InstallUtil.exe /LogToConsole=false [WIXUI_INSTALLDIR]luajit.exe"/> | ||
36 | </RegistryKey> | ||
37 | </Feature> | ||
38 | </Product> | ||
39 | </Wix> | ||
@@ -1,6 +1,23 @@ | |||
1 | return { | 1 | return { |
2 | ["lua4win-dist-lua"] = { | 2 | ["lua4win-dist-lua"] = { |
3 | requires = {}, | 3 | image = "image-msi", |
4 | requires = { | ||
5 | {"cicd","luajit-three-debug-mingw64:luajit.exe"}, | ||
6 | {"cicd","luajit-three-debug-mingw64:lua51.dll"}, | ||
7 | {"cicd","luarocks-three-debug-mingw64:luarocks.exe"}, | ||
8 | }, | ||
9 | produces = { | ||
10 | ["lua4win.msi"] = true, | ||
11 | }, | ||
12 | }, | ||
13 | --[[ | ||
14 | ["lua4win-dist-lua-test"] = { | ||
15 | image = "image-wine", | ||
16 | entrypoint="test", | ||
17 | requires = { | ||
18 | {"cicd", "lua4win-dist-lua:lua4win.msi"} | ||
19 | }, | ||
4 | produces = {}, | 20 | produces = {}, |
5 | } | 21 | } |
22 | ]] | ||
6 | } | 23 | } |