Files
Leeksov 4647310322 GLEGram 12.5 — Initial public release
Based on Swiftgram 12.5 (Telegram iOS 12.5).
All GLEGram features ported and organized in GLEGram/ folder.

Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass,
Font Replacement, Fake Profile, Chat Export, Plugin System, and more.

See CHANGELOG_12.5.md for full details.
2026-04-06 09:48:12 +03:00

44 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# Usage: ./macos-copy-and-cleanup.sh /source/folder /target/folder
SOURCE_DIR="$1"
TARGET_DIR="$2"
if [ -z "$SOURCE_DIR" ] || [ -z "$TARGET_DIR" ]; then
echo "Usage: $0 /source/folder /target/folder"
exit 1
fi
# Ensure source exists
if [ ! -d "$SOURCE_DIR" ]; then
echo "Source directory not found: $SOURCE_DIR"
exit 1
fi
# Clean up the entire target folder first
if [ -d "$TARGET_DIR" ]; then
echo "Cleaning target directory: $TARGET_DIR"
rm -rf "$TARGET_DIR"
fi
# Recreate the target directory
mkdir -p "$TARGET_DIR"
# Get the base folder name from the source (e.g., "td")
SOURCE_BASENAME=$(basename "$SOURCE_DIR")
# Copy the entire source folder into the target
cp -R "$SOURCE_DIR" "$TARGET_DIR/"
# Path to the copied folder
COPIED_DIR="$TARGET_DIR/$SOURCE_BASENAME"
# Delete everything inside the copied folder except .h files
find "$COPIED_DIR" \( ! -name "*.h" -a ! -type d \) -delete
# Remove all empty directories inside, except the root
find "$COPIED_DIR" -type d -empty -not -path "$COPIED_DIR" -delete
echo "✅ Copied $SOURCE_BASENAME into $TARGET_DIR and kept only .h files."