diff options
| -rwxr-xr-x | tools/buildzip.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl index 09d6d87..f04d0ff 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl @@ -274,7 +274,7 @@ STOP rmdir("$rbdir/codecs"); } - find(find_copyfile(qr/\.(rock|ovl)/, abs_path("$rbdir/rocks/")), 'apps/plugins'); + find(find_copyfile(qr/\.(rock|ovl|lua)/, abs_path("$rbdir/rocks/")), 'apps/plugins'); open VIEWERS, "$ROOT/apps/plugins/viewers.config" or die "can't open viewers.config"; @@ -340,9 +340,15 @@ STOP # well move("$rbdir/rocks/${plugin}.ovl", "$rbdir/rocks/$dir"); } + if(-e "$rbdir/rocks/${plugin}.lua") { + # if this is a lua script, move it to the appropriate dir + move("$rbdir/rocks/${plugin}.lua", "$rbdir/rocks/$dir/"); + } } } + glob_unlink("$rbdir/rocks/*.lua"); # Clean up unwanted *.lua files (e.g. actions.lua, buttons.lua) + if ($bitmap) { mkdir "$rbdir/icons", 0777; copy("$viewer_bmpdir/viewers.${icon_w}x${icon_h}x$depth.bmp", "$rbdir/icons/viewers.bmp"); |