From 046aad4f68d42d50284412a4aa3be9ceb9f5c6fe Mon Sep 17 00:00:00 2001 From: strongleong Date: Tue, 7 Feb 2023 04:56:51 +1100 Subject: [PATCH] README.md in mods folders no longer in .pakced --- README.md | 2 +- build.ps1 | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eaf4a12..e741a8f 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/build.ps1 b/build.ps1 index b08b834..4f96365 100644 --- a/build.ps1 +++ b/build.ps1 @@ -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; } }