added compile script
This commit is contained in:
parent
d0997234b6
commit
fa64cf55f4
5 changed files with 38 additions and 0 deletions
BIN
resources/windows/libcrypto-1_1-x64.dll
Normal file
BIN
resources/windows/libcrypto-1_1-x64.dll
Normal file
Binary file not shown.
BIN
resources/windows/libcrypto-1_1.dll
Normal file
BIN
resources/windows/libcrypto-1_1.dll
Normal file
Binary file not shown.
BIN
resources/windows/libssl-1_1-x64.dll
Normal file
BIN
resources/windows/libssl-1_1-x64.dll
Normal file
Binary file not shown.
BIN
resources/windows/libssl-1_1.dll
Normal file
BIN
resources/windows/libssl-1_1.dll
Normal file
Binary file not shown.
38
scripts/build.sh
Executable file
38
scripts/build.sh
Executable file
|
@ -0,0 +1,38 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
version=$(grep -i version norg.nimble | awk '{print $3}' | sed "s/\"//g" | sed "s/\./_/g")
|
||||||
|
dir=$(pwd)
|
||||||
|
echo Building for Linux
|
||||||
|
nimble build -d:linux
|
||||||
|
if [ $? != 1 ]; then
|
||||||
|
echo "Compressing..."
|
||||||
|
cd bin || exit
|
||||||
|
tar cvzf "norg_linux_$version.tar.gz" norg
|
||||||
|
rm norg
|
||||||
|
cd "$dir" || exit
|
||||||
|
echo Done.
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo Building for FreeBSD
|
||||||
|
nimble build -d:freebsd
|
||||||
|
if [ $? != 1 ]; then
|
||||||
|
echo "Compressing..."
|
||||||
|
cd bin || exit
|
||||||
|
tar cvzf "norg_freebsd_$version.tar.gz" norg
|
||||||
|
rm norg
|
||||||
|
cd "$dir" || exit
|
||||||
|
echo Done.
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo Building for Windows
|
||||||
|
nimble build -d:mingw
|
||||||
|
if [ $? != 1 ]; then
|
||||||
|
echo "Zipping..."
|
||||||
|
cd bin || exit
|
||||||
|
cp ../resources/windows/lib* ./
|
||||||
|
zip "norg_windows_$version.zip" norg.exe lib*
|
||||||
|
rm ./lib*
|
||||||
|
cd "$dir" || exit
|
||||||
|
rm bin/norg.exe
|
||||||
|
echo Done.
|
||||||
|
fi
|
Loading…
Reference in a new issue