#!/usr/bin/env bash # Setup script for guillaumemeyer/watermarks-remover on Linux, from https://gitmanual.com/guillaumemeyer/watermarks-remover # Read it before you run it: the commands come from the repo's own README and files. # Run: bash setup.sh set -eo pipefail trap 'echo "Setup stopped at the step above. Steps and fixes: https://gitmanual.com/guillaumemeyer/watermarks-remover" >&2' ERR step() { printf '\n\033[1m==> %s\033[0m\n' "$1"; } have() { command -v "$1" >/dev/null 2>&1; } # Installers put programs here; make them usable right away. export PATH="$HOME/.local/share/mise/shims:$HOME/.cargo/bin:$HOME/.local/bin:$HOME/.deno/bin:$HOME/.bun/bin:$PATH" # nvm is a shell function, so load it into this script when it's installed. export NVM_DIR="${NVM_DIR:-$HOME/.nvm}" load_nvm() { [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"; } have_nvm() { load_nvm >/dev/null 2>&1; type nvm >/dev/null 2>&1; } step '1/4 Clone the repository' [ -d 'watermarks-remover' ] || git clone https://github.com/guillaumemeyer/watermarks-remover.git cd 'watermarks-remover' step '2/4 Install the required tools' # make, Python 3 have make || sudo apt install -y make have python3 || sudo apt install -y python3 python3-pip step '3/4 Configure environment variables' # Optional, add them when you need them: WATERMARKS_SERVER_API_KEY, HF_TOKEN [ -f .env ] || cp .env.example .env step '4/4 Follow the README: Install (agent skill)' # In the maintainers' order. Do the README instructions above first — they cover steps outside the terminal. python3 install_skill.py --skill remove-ai-marks --target claude-code python3 install_skill.py --skill remove-ai-marks --target codex python3 install_skill.py --skill clean-user-facing-text --target codex python3 install_skill.py --skill remove-ai-marks --target codex-project --project-dir /path/to/project /plugin marketplace add guillaumemeyer/watermarks-remover /plugin install watermarks-remover@watermarks-remover python3 install_skill.py --skill remove-ai-marks --target claude-code python3 install_skill.py --skill remove-ai-marks --target claude-project \ --project-dir /path/to/project python3 install_skill.py --skill remove-ai-marks --target cowork python3 install_skill.py --skill clean-user-facing-text --target cowork mkdir -p .grok/skills ln -sfn "$(pwd)/skills/remove-ai-marks" .grok/skills/remove-ai-marks mkdir -p ~/.grok/skills ln -sfn "$(pwd)/skills/remove-ai-marks" ~/.grok/skills/remove-ai-marks python3 install_skill.py --skill clean-user-facing-text --target claude-code python3 install_skill.py --skill clean-user-facing-text --target cursor mkdir -p /path/to/project/.cursor/rules [ -f \ ] || cp integrations/cursor/clean-user-facing-text.mdc \ /path/to/project/.cursor/rules/clean-user-facing-text.mdc # http://127.0.0.1:8765 make serve python3 service/scripts/server.py --host 127.0.0.1 --port 8765 echo 'Set up guillaumemeyer/watermarks-remover.' echo 'Optional, add them when you need them: WATERMARKS_SERVER_API_KEY, HF_TOKEN' echo 'Manual: https://gitmanual.com/guillaumemeyer/watermarks-remover'