-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcleanup_project.sh
executable file
·57 lines (44 loc) · 1.28 KB
/
cleanup_project.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
echo "Starting complete project cleanup..."
# Check if the app has been uninstalled
if [ -f "/Applications/iConvert.app" ]; then
echo "WARNING: iConvert app still exists in Applications folder."
echo "Please run uninstall_iconvert.sh first."
exit 1
fi
# Ask for confirmation
echo "This will delete ALL project files in the current directory."
echo "This includes source code, Xcode project files, and all other files."
read -p "Are you sure you want to proceed? (y/n): " confirm
if [ "$confirm" != "y" ]; then
echo "Cleanup aborted."
exit 0
fi
# Remove all project files
echo "Removing all project files..."
# Remove Xcode project
rm -rf iConvert.xcodeproj
# Remove source code directories
rm -rf "iConvert"
rm -rf "iConvert Finder Extension"
# Remove scripts
rm -f reset_extension.sh
rm -f reload_extension.sh
rm -f check_webp_tools.sh
rm -f add_files.rb
rm -f uninstall_iconvert.sh
# Remove documentation
rm -f README.md
rm -f LICENSE
rm -rf README_assets
rm -f [email protected]
rm -f icon_256x256@2x_converted.jpg
# Remove git repository
rm -rf .git
rm -f .gitignore
# Remove macOS metadata
rm -f .DS_Store
echo "Project cleanup complete. All project files have been removed."
echo "This script will now delete itself."
# Create a self-destruct command
rm -f "$0"