mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-18 05:10:00 +10:00
AutoPatcher: Add preinstall script
This commit is contained in:
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
app_path="/Library/Application Support/Dortania/OpenCore-Patcher.app"
|
||||
launch_agent_path="/Library/LaunchAgents/com.dortania.opencore-legacy-patcher.auto-patch.plist"
|
||||
if [ -d "$app_path" ]; then
|
||||
echo "Found OpenCore-Patcher.app, removing..."
|
||||
rm -rf "$app_path"
|
||||
fi
|
||||
|
||||
if [ -f "$launch_agent_path" ]; then
|
||||
echo "Found launch agent, removing..."
|
||||
rm -f "$launch_agent_path"
|
||||
fi
|
||||
Reference in New Issue
Block a user