README.md in mods folders no longer in .pakced

This commit is contained in:
strongleong 2023-02-07 04:56:51 +11:00
parent 6319d05b8f
commit 046aad4f68
2 changed files with 3 additions and 1 deletions

View File

@ -55,7 +55,7 @@ There is 2 types of "configuration" of mod folder: *simple* and *with misc*
### Simple mod
Everyting in mod folder will be packed in `.packed` file. That's it. Pretty
Everyting in mod folder except `README.md` will be packed in `.packed` file. That's it. Pretty
simple.
### Mod with misc

View File

@ -102,8 +102,10 @@ function pack_mod($mod) {
if (Test-Path $mod\packed\) {
& $pack_expl_path "$output_path\$mod.packed" add -s $mod\packed;
return;
} else {
& $pack_expl_path "$output_path\$mod.packed" add -s $mod\;
& $pack_expl_path "$output_path\$mod.packed" remove -d README.md;
}
}