Skip to content

Commit

Permalink
Always build the old harmonyx version to be sure.
Browse files Browse the repository at this point in the history
  • Loading branch information
CptMoore committed Dec 4, 2024
1 parent dd071bd commit 0a5287e
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,28 @@ jobs:
with:
checkout-directory: 'ModTek'
build-script: |
dotnet build --verbosity normal --configuration Release -p:BattleTechGameDir="$BATTLETECH_DIR"
cd "$BATTLETECH_DIR"
rm -fr "BattleTech_Data/"
find . -type f -printf "%m:%p\n"
# set permissions and also check if files exist (chmod 644)
chmod 755 run.sh
chmod 644 winhttp.dll
chmod 644 Mods/ModTek/lib/*.dll
7z a -tzip -mx9 "$DIST_DIR/ModTek.zip" -ir!.
build_modtek() {
btdir="$1"
zipname="$2"
dotnet build --verbosity normal --configuration Release -p:BattleTechGameDir="$btdir"
cd "$btdir"
rm -fr "BattleTech_Data/"
find . -type f -printf "%m:%p\n"
# set permissions and also check if files exist (chmod 644)
chmod 755 run.sh
chmod 644 winhttp.dll
chmod 644 Mods/ModTek/lib/*.dll
7z a -tzip -mx9 "$DIST_DIR/$zipname" -ir!.
cd -
}
BATTLETECH_DIR_OLD_HARMONY="${BATTLETECH_DIR}oldharmony"
cp -a "$BATTLETECH_DIR" "$BATTLETECH_DIR_OLD_HARMONY"
build_modtek "$BATTLETECH_DIR" "ModTek.zip"
OLD_HARMONYX_VERSION="2.10.2"
sed -i -r -e 's/Include="HarmonyX" Version="[^"]+?"/Include="HarmonyX" Version="'$OLD_HARMONYX_VERSION'"/g' Directory.Packages.props
build_modtek "$BATTLETECH_DIR_OLD_HARMONY" "ModTek-old-HarmonyX-${OLD_HARMONYX_VERSION}.zip"
release-notes: |
> **Note**
> **ModTekInjector.exe was replaced by [UnityDoorstop](https://github.com/NeighTools/UnityDoorstop)**.
Expand Down

0 comments on commit 0a5287e

Please sign in to comment.