vault backup: 2025-07-21 19:17:56

This commit is contained in:
2025-07-21 19:17:56 +01:00
parent 28102efb79
commit 69822126b0
3 changed files with 33 additions and 7 deletions

View File

@@ -11,7 +11,7 @@
4. Rename `Mono.Cecil.dll` to `Mono.Cecil.dll.bak`
5. Symlink all files from $STEAM_COMPAT_INSTALL_PATH/Modules/Bannerlord.Harmony/bin/Win64_Shipping_Client/ to the current directory. You can use this script:
5. Download `symlink-bannerlord.sh`, place in the same directory. This will symlink all files from `$STEAM_COMPAT_INSTALL_PATH/Modules/Bannerlord.Harmony/bin/Win64_Shipping_Client/`(Files from the Harmony mod) to the current directory.
```
#!/bin/bash

View File

@@ -0,0 +1,24 @@
#!/bin/bash
SOURCE_DIR=../../Modules/Bannerlord.Harmony/bin/Win64_Shipping_Client
LOG_FILE=symlinks-created.txt
> "$LOG_FILE" # Empty the log file
for file in "$SOURCE_DIR"/*; do
base=$(basename "$file")
if [ ! -e "$base" ]; then
ln -s "$file" .
echo "$base" >> "$LOG_FILE"
echo "Linked: $base"
else
if [ -L "$base" ]; then
echo "$base" >> "$LOG_FILE"
echo "Skipped (symlink already exists): $base"
else
echo "SHOULD NOT HAPPEN"
fi
fi
done
echo "Symlinking complete. Reversible via: xargs rm < $LOG_FILE"