feat: can be compiled from anywhere
This commit is contained in:
parent
2e0b498982
commit
70f599f6db
8
make.sh
8
make.sh
@ -59,10 +59,11 @@ function restore_kfeditorconf ()
|
|||||||
mv -f "$KFEditorConfBackup" "$KFEditorConf"
|
mv -f "$KFEditorConfBackup" "$KFEditorConf"
|
||||||
}
|
}
|
||||||
|
|
||||||
function set_serverext_modpackages ()
|
function setup_modpackages ()
|
||||||
{
|
{
|
||||||
multini --set "$KFEditorConf" 'ModPackages' 'ModPackages' 'ServerExt'
|
multini --set "$KFEditorConf" 'ModPackages' 'ModPackages' 'ServerExt'
|
||||||
multini --add "$KFEditorConf" 'ModPackages' 'ModPackages' 'ServerExtMut'
|
multini --add "$KFEditorConf" 'ModPackages' 'ModPackages' 'ServerExtMut'
|
||||||
|
multini --set "$KFEditorConf" 'ModPackages' 'ModPackagesInPath' "$(unixpath2win "$MutSource")"
|
||||||
}
|
}
|
||||||
|
|
||||||
function compile ()
|
function compile ()
|
||||||
@ -71,7 +72,7 @@ function compile ()
|
|||||||
get_latest_multini
|
get_latest_multini
|
||||||
fi
|
fi
|
||||||
|
|
||||||
backup_kfeditorconf && set_serverext_modpackages
|
backup_kfeditorconf && setup_modpackages
|
||||||
|
|
||||||
rm -rf "$MutUnpublish"
|
rm -rf "$MutUnpublish"
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
@ -160,6 +161,7 @@ function game_test ()
|
|||||||
|
|
||||||
ScriptFullname=$(readlink -e "$0")
|
ScriptFullname=$(readlink -e "$0")
|
||||||
ScriptName=$(basename "$0")
|
ScriptName=$(basename "$0")
|
||||||
|
ScriptDir=$(dirname "$ScriptFullname")
|
||||||
|
|
||||||
SteamPath=$(reg_readkey "HKCU\Software\Valve\Steam" "SteamPath")
|
SteamPath=$(reg_readkey "HKCU\Software\Valve\Steam" "SteamPath")
|
||||||
DocumentsPath=$(reg_readkey "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "Personal")
|
DocumentsPath=$(reg_readkey "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "Personal")
|
||||||
@ -176,7 +178,7 @@ KFConfig="$KFDoc/KFGame/Config"
|
|||||||
KFEditorConf="$KFConfig/KFEditor.ini"
|
KFEditorConf="$KFConfig/KFEditor.ini"
|
||||||
KFEditorConfBackup="${KFEditorConf}.backup"
|
KFEditorConfBackup="${KFEditorConf}.backup"
|
||||||
|
|
||||||
MutSource="$KFDoc/KFGame/Src"
|
MutSource="$ScriptDir"
|
||||||
MutPubContent="$MutSource/PublicationContent"
|
MutPubContent="$MutSource/PublicationContent"
|
||||||
MutUnpublish="$KFDoc/KFGame/Unpublished"
|
MutUnpublish="$KFDoc/KFGame/Unpublished"
|
||||||
MutPublish="$KFDoc/KFGame/Published"
|
MutPublish="$KFDoc/KFGame/Published"
|
||||||
|
Loading…
Reference in New Issue
Block a user