Skip to main content

update-branding.sh

Updates branding text throughout the entire project.

Purpose

Automated find-and-replace script to update product name across all files.

Location

Must be run from the scripts/ directory:

cd scripts
./update-branding.sh

What It Does

Searches and replaces branding text in:

  1. Markdown files (.md)
  2. Shell scripts (.sh)
  3. Dart files (.dart) - Frontend source
  4. TypeScript/JavaScript (.ts, .js) - Backend source
  5. Package manifests (package.json, pubspec.yaml)
  6. LICENSE file

Replaces:

  • AI content reporpuserAI content reporpuser
  • AI Content repurposerAI content reporpuser

Usage

cd scripts
./update-branding.sh

Output:

Updating branding to 'AI content reporpuser'...

✓ Updated: ./README.md
✓ Updated: ./backend/package.json
✓ Updated: ./frontend/pubspec.yaml
✓ Updated: ./LICENSE

✓ Branding update complete!
All instances of 'AI content reporpuser' have been changed to 'AI content reporpuser'

Excluded Directories

The script skips:

  • node_modules/
  • .dart_tool/
  • build/
  • Git metadata (.git/)

When to Use

Use this script when:

  • Rebranding the product
  • Customizing for white-label distribution
  • Preparing for CodeCanyon sale with custom name
  • Creating a fork with different branding

Customization

To change the target branding, edit the script:

# Current replacement
sed -i 's/AI content reporpuser/Your New Name/g'

# Change to your desired name
sed -i 's/AI content reporpuser/MyAI Tool/g'

Verification

After running, verify changes:

# Check a few key files
grep -r "AI content reporpuser" ./backend/package.json
grep -r "AI content reporpuser" ./frontend/pubspec.yaml
grep -r "AI content reporpuser" ./README.md

Revert Changes

If needed, undo with git:

cd ..
git checkout .

Limitations

  • Does not update binary files or images
  • Does not modify URLs or domain names
  • Case-sensitive replacements only

Source Code

Located at: scripts/update-branding.sh

Key features:

  • Recursive search and replace
  • Multiple file type support
  • Excludes build artifacts
  • Progress feedback
  • Safe execution with error handling