diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-08-19 12:24:53 -0500 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-08-19 12:24:53 -0500 |
commit | 72ec490dbd079556d2b043d65d63405fb1cc1a3b (patch) | |
tree | a5d4a6e38976ff3b1b9bf3eeb3ff761d5fdce6a7 | |
parent | d2be6ccef06f0a7174734706c669da8b2ffffad8 (diff) | |
download | luafilesystem-packaging-72ec490dbd079556d2b043d65d63405fb1cc1a3b.tar.gz luafilesystem-packaging-72ec490dbd079556d2b043d65d63405fb1cc1a3b.tar.bz2 luafilesystem-packaging-72ec490dbd079556d2b043d65d63405fb1cc1a3b.zip |
Pack distributables for release builds
-rwxr-xr-x | init | 14 | ||||
-rw-r--r-- | meta.lua | 2 |
2 files changed, 14 insertions, 2 deletions
@@ -3,4 +3,16 @@ | |||
3 | cd luafilesystem | 3 | cd luafilesystem |
4 | luarocks config variables.CFLAGS " $CFLAGS" | 4 | luarocks config variables.CFLAGS " $CFLAGS" |
5 | luarocks make --pack-binary-rock luafilesystem-scm-1.rockspec | 5 | luarocks make --pack-binary-rock luafilesystem-scm-1.rockspec |
6 | cp luafilesystem-scm-1.mingw32-x86_64.rock /root | 6 | ojb="luafilesystem-scm-1.$(luarocks config arch).rock" |
7 | cp $obj /root | ||
8 | cd /root | ||
9 | if [ -n $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then | ||
10 | # Debug build | ||
11 | else | ||
12 | # Release build, delete docs/ and tests/ | ||
13 | zip -d $obj docs/ docs/* tests/ tests/* | ||
14 | # And pack the library | ||
15 | unzip $obj lib/* | ||
16 | upx lib/* | ||
17 | zip -r -u $obj lib | ||
18 | fi | ||
@@ -33,7 +33,7 @@ for version, link, name, optimization, rel, flag, _, image in cartesian(lua_vers | |||
33 | {"cicd","lua" .. version .. "-" .. name .. "-" .. rel .. "-" .. image .. ":lua" .. version .. ".dll"}, | 33 | {"cicd","lua" .. version .. "-" .. name .. "-" .. rel .. "-" .. image .. ":lua" .. version .. ".dll"}, |
34 | }, | 34 | }, |
35 | produces = { | 35 | produces = { |
36 | "luafilesystem-scm-1.mingw32-x86_64.rock" | 36 | ["luafilesystem-scm-1.mingw32-x86_64.rock"] = image .. "/" .. rel .. "/" .. name .. "/" .. version |
37 | }, | 37 | }, |
38 | env = { | 38 | env = { |
39 | CFLAGS = optimization .. " " .. flag, | 39 | CFLAGS = optimization .. " " .. flag, |