-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
29 lines (23 loc) · 987 Bytes
/
build.sh
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
#!/bin/bash
echo 'Building Environment'
# If WiiBalanceWalker isn't installed, try to install it
if [ ! -d "WiiBalanceWalker" ]; then
read -p "Directory WiiBalanceWalker does not exist. Install from GitHub (https://github.com/lshachar/WiiBalanceWalker).Y/N" install
if [[ $install == [yY] ]]; then
git clone https://github.com/lshachar/WiiBalanceWalker
fi
fi
echo 'Moving Files'
cp -f FormMain_edit.cs WiiBalanceWalker/FormMain.cs
cp -f WiiBalanceWalker_edit.csproj WiiBalanceWalker/WiiBalanceWalker.csproj
cp -f FormMain.Designer_edit.cs WiiBalanceWalker/FormMain.Designer.cs
cp -f ActionManager_edit.cs WiiBalanceWalker/ActionManager.cs
cp -f Data.cs WiiBalanceWalker/Data.cs
echo 'Building'
# Assumes .NET msbuild is here
'C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe' ./WiiBalanceWalker.sln
echo 'Done!'
read -p "Do you want to run the program? (Y)/N" run
if [[ $run == [yY] || -z "$run" ]]; then
WiiBalanceWalker/bin/x64/Debug/WiiBalanceWalker.exe
fi