aboutsummaryrefslogtreecommitdiff
path: root/makedist
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2020-01-06 17:47:37 -0300
committerHisham Muhammad <hisham@gobolinux.org>2020-01-14 21:56:55 -0300
commit613b66c271e8b6d4c060668bfe3ca055fc35b166 (patch)
tree525fc6e8df94704671262a3a205c83e3b0de87c0 /makedist
parent525c41f2024422808a72ca832f41ab1c6e32b6b3 (diff)
downloadluarocks-613b66c271e8b6d4c060668bfe3ca055fc35b166.tar.gz
luarocks-613b66c271e8b6d4c060668bfe3ca055fc35b166.tar.bz2
luarocks-613b66c271e8b6d4c060668bfe3ca055fc35b166.zip
support for building 64-bit Windows all-in-one binary
Diffstat (limited to 'makedist')
-rwxr-xr-xmakedist14
1 files changed, 12 insertions, 2 deletions
diff --git a/makedist b/makedist
index 57c92695..c28e9247 100755
--- a/makedist
+++ b/makedist
@@ -167,8 +167,8 @@ then
167 cd .. 167 cd ..
168 rm -f "$out-linux-x86_64.zip.asc" 168 rm -f "$out-linux-x86_64.zip.asc"
169 169
170 make windows-binary 170 make windows-binary-32
171 cd build-windows-binary 171 cd build-windows-binary-i686-w64-mingw32
172 mkdir "$out-windows-32" 172 mkdir "$out-windows-32"
173 cp luarocks.exe "$out-windows-32/luarocks.exe" 173 cp luarocks.exe "$out-windows-32/luarocks.exe"
174 cp luarocks-admin.exe "$out-windows-32/luarocks-admin.exe" 174 cp luarocks-admin.exe "$out-windows-32/luarocks-admin.exe"
@@ -176,6 +176,15 @@ then
176 cd .. 176 cd ..
177 rm -f "$out-windows-32.zip.asc" 177 rm -f "$out-windows-32.zip.asc"
178 178
179 make windows-binary-64
180 cd build-windows-binary-x86_64-w64-mingw32
181 mkdir "$out-windows-64"
182 cp luarocks.exe "$out-windows-64/luarocks.exe"
183 cp luarocks-admin.exe "$out-windows-64/luarocks-admin.exe"
184 zip "../$out-windows-64.zip" "$out-windows-64"/*
185 cd ..
186 rm -f "$out-windows-64.zip.asc"
187
179fi 188fi
180 189
181if [ "$1" = "sign" ] 190if [ "$1" = "sign" ]
@@ -184,6 +193,7 @@ then
184 193
185 for f in \ 194 for f in \
186 $out-windows-32.zip \ 195 $out-windows-32.zip \
196 $out-windows-64.zip \
187 $out-linux-x86_64.zip \ 197 $out-linux-x86_64.zip \
188 $out-win32.zip \ 198 $out-win32.zip \
189 $out.tar.gz 199 $out.tar.gz