From 8817f76b8a65078b5bce268857b8ff4b433d615d Mon Sep 17 00:00:00 2001 From: robojumper Date: Sat, 12 Jun 2021 11:35:07 +0200 Subject: [PATCH 1/2] Don't delete XComGame\Published in clean.ps1 --- clean.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clean.ps1 b/clean.ps1 index 5ee7ab9..95fb301 100644 --- a/clean.ps1 +++ b/clean.ps1 @@ -25,8 +25,7 @@ $folders = @( "$srcDirectory\BuildCache", "$sdkPath\Development\Src\*", "$sdkPath\XComGame\Mods\*", - "$gamePath\XComGame\Mods\$modName", - "$sdkPath\XComGame\Published" + "$gamePath\XComGame\Mods\$modName" ) $files | ForEach-Object { From adf7f69d860d0c1db730e2d7474b8866a17f34c1 Mon Sep 17 00:00:00 2001 From: robojumper Date: Sat, 12 Jun 2021 11:35:39 +0200 Subject: [PATCH 2/2] Use release tags in installation instructions instead of pulling main --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2c947e6..dcf3892 100644 --- a/README.md +++ b/README.md @@ -30,12 +30,12 @@ Open a command line prompt (cmd or powershell, does not matter) in the `[modRoot your working tree is clean and run the following command: ``` -git subtree add --prefix .scripts/X2ModBuildCommon https://github.com/X2CommunityCore/X2ModBuildCommon main --squash +git subtree add --prefix .scripts/X2ModBuildCommon https://github.com/X2CommunityCore/X2ModBuildCommon v1.0.0 --squash ``` ### Your mod does not use git -Download the source code of this repository from GitHub. Unzip it and place so that `build_commom.ps1` resides at -`[modRoot]\.scripts\X2ModBuildCommon\build_common.ps1`. +Download the source code of this repository from the latest release on the [Releases page](https://github.com/X2CommunityCore/X2ModBuildCommon/releases/latest). +Unzip it and place so that `build_common.ps1` resides at `[modRoot]\.scripts\X2ModBuildCommon\build_common.ps1`. ## Ignoring the `BuildCache` The build system will create a `[modRoot]\BuildCache` folder which is used for various file-based operations (such @@ -172,7 +172,7 @@ If you don't use git, simply download the new version and overwrite the old file If you use git, run the same command as before, replacing `add` with `pull`: ``` -git subtree pull --prefix .scripts/X2ModBuildCommon https://github.com/X2CommunityCore/X2ModBuildCommon main --squash +git subtree pull --prefix .scripts/X2ModBuildCommon https://github.com/X2CommunityCore/X2ModBuildCommon v1.0.0 --squash ``` # Configuration options