-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·32 lines (26 loc) · 895 Bytes
/
build.sh
File metadata and controls
executable file
·32 lines (26 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
set -e
cd "$(dirname "$0")"
# Build
echo "Building..."
dotnet build CommandQueue/CommandQueue.csproj -c Release
# Package
echo "Packaging..."
rm -rf package CommandQueueWithSaveFix.zip
mkdir -p package
cp CommandQueue/bin/Release/netstandard2.1/CommandQueue.dll package/
cp manifest.json package/
cp README.md package/
cp CommandQueue/repeat-solid.png package/icon.png 2>/dev/null || echo "No icon, skipping"
cd package
zip -r ../CommandQueueWithSaveFix.zip .
cd ..
# Install to r2modman
R2_PLUGINS="$HOME/.config/r2modmanPlus-local/RiskOfRain2/profiles/Default/BepInEx/plugins"
if [ -d "$R2_PLUGINS" ]; then
mkdir -p "$R2_PLUGINS/CommandQueueWithSaveFix"
cp CommandQueue/bin/Release/netstandard2.1/CommandQueue.dll "$R2_PLUGINS/CommandQueueWithSaveFix/"
echo "Installed to r2modman profile"
fi
echo ""
echo "Done! Package: $(realpath CommandQueueWithSaveFix.zip)"