feat: examples, standalone, monitor-install, quickstart
- auto-bypass-usb.sh: one-click bypass from SSD - prepare-ssd.sh: prepare the SSD before you need it - build-standalone.sh: now bundles all 12 lib modules (+check, +monitor) - unleash-standalone.sh: v1.2.0, 1958 lines, all commands included - monitor-install / monitor-uninstall: monitor as persistent LaunchDaemon - QUICKSTART.md: Portuguese/English quick reference for SSD - Responded to 8 more bypass-mdm issues (#136, #137, #139, #145, #148, #153, #155, #172) - Attached standalone to GitHub Release v1.2.0
This commit is contained in:
@@ -1,35 +1,22 @@
|
||||
#!/bin/bash
|
||||
# Build a standalone unleash.sh (single file) from modular source.
|
||||
# Usage: bash build-standalone.sh
|
||||
# Output: unleash-standalone.sh
|
||||
|
||||
OUT="unleash-standalone.sh"
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
|
||||
cat > "$OUT" << 'HEADER'
|
||||
VERSION="$(grep '^VERSION=' "$SCRIPT_DIR/unleash" | head -1 | cut -d'"' -f2)"
|
||||
[ -z "$VERSION" ] && VERSION="1.0.0"
|
||||
|
||||
cat > "$OUT" << HEADER
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
# unleash — Unified MDM bypass tool for macOS (standalone).
|
||||
# Auto-detects Recovery/dualboot mode. One file, zero dependencies.
|
||||
#
|
||||
# Usage:
|
||||
# ./unleash [bypass|suppress|backup|restore|dualboot|status|version|help]
|
||||
|
||||
VERSION="1.0.0"
|
||||
VERSION="$VERSION"
|
||||
HEADER
|
||||
|
||||
echo "" >> "$OUT"
|
||||
|
||||
for lib in colors detect validate dscl suppress backup status; do
|
||||
echo "# === lib/$lib.sh ===" >> "$OUT"
|
||||
# Remove shebang lines (first line of each lib)
|
||||
tail -n +2 "$SCRIPT_DIR/lib/$lib.sh" >> "$OUT"
|
||||
for lib in colors detect validate dscl suppress backup status heal firewall harden whitelist check monitor; do
|
||||
tail -n +1 "$SCRIPT_DIR/lib/$lib.sh" >> "$OUT"
|
||||
echo "" >> "$OUT"
|
||||
done
|
||||
|
||||
# Append the main script body (skip shebang, skip lib sourcing)
|
||||
sed -e '1d' -e '/^LIB_DIR=/d' -e '/^for _lib in/,/^done$/d' "$SCRIPT_DIR/unleash" >> "$OUT"
|
||||
sed -e '1,/_lib in /d' -e '/^done$/,$!d' -e '/^done$/d' "$SCRIPT_DIR/unleash" >> "$OUT"
|
||||
|
||||
chmod +x "$OUT"
|
||||
echo "Created: $OUT ($(wc -c < "$OUT") bytes, $(wc -l < "$OUT") lines)"
|
||||
echo "Created: $OUT (v$VERSION, $(wc -c < "$OUT") bytes, $(wc -l < "$OUT") lines)"
|
||||
|
||||
Reference in New Issue
Block a user