-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathdeploy-plugin.sh
More file actions
23 lines (16 loc) · 635 Bytes
/
deploy-plugin.sh
File metadata and controls
23 lines (16 loc) · 635 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
DESTINATION_PATH="${1:-C:/Program Files (x86)/Steam/steamapps/common/VoiceAttack 2/Apps/EliteAPI}"
echo "Building plugin..."
dotnet clean VoiceAttack/VoiceAttack.csproj -c Debug
dotnet build VoiceAttack/VoiceAttack.csproj -c Debug
if [ $? -ne 0 ]; then
echo "Build failed!"
exit 1
fi
echo ""
echo "Copying plugin files..."
# Create destination directory if it doesn't exist
mkdir -p "$DESTINATION_PATH"
cp -f VoiceAttack/bin/Debug/net8.0/VoiceAttack.dll "$DESTINATION_PATH/VoiceAttack.dll"
cp -f VoiceAttack/bin/Debug/net8.0/EliteAPI.dll "$DESTINATION_PATH/EliteAPI.dll"
echo "Plugin deployed successfully."