Changeset

4181:fcc6b92869d4

mod_admin_web: Really fix luarocks build spec
author Kim Alvefur <zash@zash.se>
date Thu, 08 Oct 2020 13:49:08 +0200
parents 4180:a8aacfbdaea9
children 4182:1890115b2773
files mod_admin_web/README.markdown mod_admin_web/admin_web/mod_admin_web.lua
diffstat 2 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mod_admin_web/README.markdown	Thu Oct 08 12:26:56 2020 +0200
+++ b/mod_admin_web/README.markdown	Thu Oct 08 13:49:08 2020 +0200
@@ -6,11 +6,12 @@
   build:
     platforms:
       unix:
-        copy_directories:
-          - admin_web/www_files
         type: command
-        build_command: sh admin_web/get_deps.sh
-        install_command: cp admin_web/mod_admin_web.lua $(LUADIR)
+        build_command: cd admin_web; sh get_deps.sh
+        install_command: |
+          cd admin_web;
+          cp mod_admin_web.lua $(LUADIR);
+          cp -r www_files $(PREFIX);
 ...
 
 Introduction
--- a/mod_admin_web/admin_web/mod_admin_web.lua	Thu Oct 08 12:26:56 2020 +0200
+++ b/mod_admin_web/admin_web/mod_admin_web.lua	Thu Oct 08 13:49:08 2020 +0200
@@ -133,7 +133,7 @@
 	local path = module:get_directory() .. "/www_files";
 	if module.resource_path then
 		-- Available from trunk be73df6765b9 if installed via luarocks
-		path = module.resource_path .. "/admin_web/www_files";
+		path = module.resource_path .. "/www_files";
 	end
 	local serve_file = serve {
 		path = path;