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:
- Markdown files (
.md) - Shell scripts (
.sh) - Dart files (
.dart) - Frontend source - TypeScript/JavaScript (
.ts,.js) - Backend source - Package manifests (
package.json,pubspec.yaml) - LICENSE file
Replaces:
AI content reporpuser→AI content reporpuserAI Content repurposer→AI 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