Generate version string before creating modversion gsc file.

master v0.0.3
Icedream 2019-08-29 01:05:36 +02:00
parent 144747c1d8
commit d829a79333
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,8 @@ iwd_files server | tee "$iwd_sv_filelist"
echo "" echo ""
modversion_txt_file="maps/mp/mods/_modversion.gsc" modversion_txt_file="maps/mp/mods/_modversion.gsc"
echo "getModVersionString(){return \"$(git describe --tags --always --dirty)\";}" > "$modversion_txt_file" version="$(git describe --tags --always --dirty)"
echo "getModVersionString(){return \"$version\";}" > "$modversion_txt_file"
(echo "LICENSE.txt") >> "$iwd_cl_filelist" (echo "LICENSE.txt") >> "$iwd_cl_filelist"
(echo "$modversion_txt_file" && echo "LICENSE.txt") >> "$iwd_sv_filelist" (echo "$modversion_txt_file" && echo "LICENSE.txt") >> "$iwd_sv_filelist"