diff --git a/resources/windows/libcrypto-1_1-x64.dll b/resources/windows/libcrypto-1_1-x64.dll new file mode 100644 index 0000000..5996e7e Binary files /dev/null and b/resources/windows/libcrypto-1_1-x64.dll differ diff --git a/resources/windows/libcrypto-1_1.dll b/resources/windows/libcrypto-1_1.dll new file mode 100644 index 0000000..e5247c9 Binary files /dev/null and b/resources/windows/libcrypto-1_1.dll differ diff --git a/resources/windows/libssl-1_1-x64.dll b/resources/windows/libssl-1_1-x64.dll new file mode 100644 index 0000000..530fe24 Binary files /dev/null and b/resources/windows/libssl-1_1-x64.dll differ diff --git a/resources/windows/libssl-1_1.dll b/resources/windows/libssl-1_1.dll new file mode 100644 index 0000000..050379b Binary files /dev/null and b/resources/windows/libssl-1_1.dll differ diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 0000000..21e41ec --- /dev/null +++ b/scripts/build.sh @@ -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