-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathChange Platform.sh
executable file
·22 lines (22 loc) · 1.05 KB
/
Change Platform.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
echo "=========================="
echo "Oculus Platform Switcher"
echo "by Turbo Button"
echo "www.turbo-button.com"
echo "=========================="
rm -f "$(pwd)/Assets/Plugins/OculusPlugin.dll"
rm -f "$(pwd)/Assets/Plugins/OculusPlugin.dll.meta"
rm -f "$(pwd)/Assets/Plugins/OculusPlugin.dll.signature"
rm -f "$(pwd)/Assets/Plugins/OculusPlugin.dll.signature.meta"
rm -f "$(pwd)/Assets/Plugins/donotdelete.txt"
rm -f "$(pwd)/Assets/Plugins/donotdelete.txt.meta"
rm -f "$(pwd)/Assets/Plugins/OculusPlugin.bundle.meta"
rm -f "$(pwd)/Assets/Plugins/x86/_x64/OculusPlugin.dll"
rm -f "$(pwd)/Assets/Plugins/x86/_x64/OculusPlugin.dll.meta"
rm -f "$(pwd)/Assets/Plugins/x86/_x64/OculusPlugin.dll.signature.meta"
rm -f "$(pwd)/Assets/Plugins/x86/_x64/OculusPlugin.dll.signature"
rm -rf "$(pwd)/Assets/Plugins/OculusPlugin.bundle"
rm -rf "$(pwd)/Assets/OVR"
rm -rf "$(pwd)/Assets/Moonlight"
read -p "Dumped files. Press any key to continue."
exec /Applications/Unity/Unity.app/Contents/MacOS/Unity -projectPath $(pwd) -executeMethod TBBuildSettings.ImportNewPlatformFiles