fix: wsinfo relative path

WorkshopUserTool.exe requires a relative path (not absolute)
This commit is contained in:
GenZmeY 2020-06-24 08:09:29 +03:00
parent 1d9cd9cab2
commit 4413b9aa0b

View File

@ -98,7 +98,7 @@ function upload ()
PackageDir=$(mktemp -d -u -p "$KFDoc") PackageDir=$(mktemp -d -u -p "$KFDoc")
prepare_package_dir "$PackageDir" prepare_package_dir "$PackageDir"
generate_wsinfo "$PackageDir" generate_wsinfo "$PackageDir"
CMD //C $(unixpath2win "$KFWorkshop") "$MutWsInfo" CMD //C $(unixpath2win "$KFWorkshop") "$MutWsInfoName"
rm -rf "$PackageDir" rm -rf "$PackageDir"
rm -f "$MutWsInfo" rm -f "$MutWsInfo"
} }
@ -141,7 +141,8 @@ MutPublish="$KFDoc/KFGame/Published"
MutBinUnpublish="$MutUnpublish/BrewedPC/Script" MutBinUnpublish="$MutUnpublish/BrewedPC/Script"
MutBinPublish="$MutPublish/BrewedPC/Script" MutBinPublish="$MutPublish/BrewedPC/Script"
MutTestingIni="$MutSource/testing.ini" MutTestingIni="$MutSource/testing.ini"
MutWsInfo="$KFDoc/wsinfo_serverext.txt" MutWsInfoName="wsinfo_serverext.txt"
MutWsInfo="$KFDoc/$MutWsInfoName"
MutPubContent="$MutSource/PublicationContent" MutPubContent="$MutSource/PublicationContent"
if [[ $# -eq 0 ]]; then show_help; exit 0; fi if [[ $# -eq 0 ]]; then show_help; exit 0; fi