-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
#!/bin/bash | ||
UNINSTALLER="/Library/Application Support/Blackmagic Design/DaVinci Resolve/Fusion/AutoSubs-Uninstaller.sh" | ||
cat <<EOF > "$UNINSTALLER" | ||
#!/bin/bash | ||
echo "Removing AutoSubs files..." | ||
rm -rf "/Library/Application Support/Blackmagic Design/DaVinci Resolve/Fusion/Scripts/Utility/AutoSubs" | ||
echo "AutoSubs uninstalled successfully!" | ||
EOF | ||
chmod +x "$UNINSTALLER" | ||
echo "Uninstaller created at: $UNINSTALLER" | ||
exit 0 | ||
|
||
# Path to the uninstaller script | ||
UNINSTALLER_SCRIPT="/tmp/uninstaller.sh" | ||
|
||
# Copy the uninstaller script to a temporary location | ||
cp "${PWD}/uninstaller.sh" "$UNINSTALLER_SCRIPT" | ||
|
||
# Execute the uninstaller script | ||
bash "$UNINSTALLER_SCRIPT" | ||
|
||
# Clean up | ||
rm -f "$UNINSTALLER_SCRIPT" | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
echo "Uninstalling AutoSubs..." | ||
|
||
# Define paths to remove | ||
AUTOSUBS_DIR="/Library/Application Support/Blackmagic Design/DaVinci Resolve/Fusion/AutoSubs" | ||
LUA_SCRIPT="/Library/Application Support/Blackmagic Design/DaVinci Resolve/Fusion/Scripts/Utility/AutoSubs V2.lua" | ||
|
||
# Remove the AutoSubs directory | ||
if [ -d "$AUTOSUBS_DIR" ]; then | ||
rm -rf "$AUTOSUBS_DIR" | ||
echo "Removed directory: $AUTOSUBS_DIR" | ||
else | ||
echo "Directory not found: $AUTOSUBS_DIR" | ||
fi | ||
|
||
# Remove the Lua script | ||
if [ -f "$LUA_SCRIPT" ]; then | ||
rm -f "$LUA_SCRIPT" | ||
echo "Removed file: $LUA_SCRIPT" | ||
else | ||
echo "File not found: $LUA_SCRIPT" | ||
fi | ||
|
||
echo "Uninstallation complete." | ||
exit 0 |