diff --git a/.ci/upload_win_installer.sh b/.ci/upload_win_installer.sh index 3bf6c37cf0c4dd72161b66405e5b9d8938648d71..3b2ea4aff6fd7f27ff597ca7d84eec80ad2192d5 100644 --- a/.ci/upload_win_installer.sh +++ b/.ci/upload_win_installer.sh @@ -5,5 +5,10 @@ tag=$(git describe --exact-match) [ "$tag" ] || exit curl -T 'packages\win_installer\output\Aegisub-Japan7-x64.exe' --user $FTP_USER:$FTP_PASS "$dest/Aegisub-Japan7-${tag#v}-x64.exe" + printf "${tag#v}\n$(git tag -l --format='%(contents)' $tag)" > latest curl -T latest --user "$FTP_USER:$FTP_PASS" "$dest/" + +url="Aegisub-Japan7-${tag#v}-x64.exe" +printf "<!doctype html><html><head><meta http-equiv='refresh' content='0; url=$url' /></head><body><a href='$url'>$url</a></body></html>" > Aegisub-Japan7-latest-x64.exe +curl -T Aegisub-Japan7-latest-x64.exe --user "$FTP_USER:$FTP_PASS" "$dest/"