livebook/rel/app/windows/build_installer.sh

18 lines
465 B
Bash
Raw Normal View History

2023-01-17 04:09:47 +08:00
#!/bin/sh
set -euo pipefail
. `dirname $0`/env.sh
rm -rf $target_dir
dotnet publish $build_args
(cd ../../.. && mix release app --overwrite --path=${target_dir}/rel)
vc_redist_path="bin/vc_redist.x64.exe"
if [ ! -f $vc_redist_path ]; then
url="https://aka.ms/vs/17/release/vc_redist.x64.exe"
echo "downloading $url"
curl -L --fail --output $vc_redist_path $url
fi
makensis //DERTS_VERSION=`elixir -e "IO.puts :erlang.system_info(:version)"` Installer.nsi