Added packaging script.
This commit is contained in:
parent
6711bee321
commit
996925ce4c
1 changed files with 26 additions and 0 deletions
26
package.sh
Executable file
26
package.sh
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
function pack() {
|
||||
local VER_IN=$1
|
||||
local NAME_IN=$2
|
||||
local NAME_OUT=$3
|
||||
local VER_OUT=$(echo ${VER_IN} | sed 's/\.//')
|
||||
local BIN="Singe-v${VER_IN}-${NAME_IN}"
|
||||
local ZIP="s${VER_OUT}${NAME_OUT}.zip"
|
||||
|
||||
echo "${BIN} => ${ZIP}"
|
||||
zip -9D ${ZIP} ${BIN} INSTALL.txt
|
||||
}
|
||||
|
||||
|
||||
pushd build
|
||||
cp ../INSTALL.txt .
|
||||
VERSION=$(ls -1 Singe-v*-Linux-x86_64 | cut -d'-' -f 2 | sed 's/v//')
|
||||
pack ${VERSION} Windows-i686.exe w32
|
||||
pack ${VERSION} Windows-x86_64.exe w64
|
||||
pack ${VERSION} Linux-i386 l32
|
||||
pack ${VERSION} Linux-x86_64 l64
|
||||
pack ${VERSION} macOS-i386 m32
|
||||
pack ${VERSION} macOS-x86_64 m64
|
||||
pack ${VERSION} Pi-armv6 p32
|
||||
popd
|
Loading…
Add table
Reference in a new issue