@@ -28,23 +28,33 @@ cd "$VSCODE_DIR" || exit 1
2828# though we already updated product.json to point to Codesphere's own URLs.
2929
3030echo " Replacing 'VSCodium' -> 'Codesphere'..."
31- find . -type f \( -name " *.ts" -o -name " *.js" -o -name " *.html" -o -name " *.json" -o -name " *.md" \) \
31+ find . -type f \( -name " *.ts" -o -name " *.js" -o -name " *.html" -o -name " *.json" -o -name " *.md" -o -name " *.iss " -o -name " *.xml " -o -name " *.spec.template " -o -name " *.yaml " -o -name " *.template " \) \
3232 -not -path " */node_modules/*" -not -path " */.git/*" \
3333 -exec perl -pi -e ' s/(?<!github.com\/)(?<!\@)VSCodium/Codesphere/g' {} +
3434
3535echo " Replacing 'vscodium' -> 'codesphere'..."
36- find . -type f \( -name " *.ts" -o -name " *.js" -o -name " *.html" -o -name " *.json" -o -name " *.md" \) \
36+ find . -type f \( -name " *.ts" -o -name " *.js" -o -name " *.html" -o -name " *.json" -o -name " *.md" -o -name " *.iss " -o -name " *.xml " -o -name " *.spec.template " -o -name " *.yaml " -o -name " *.template " \) \
3737 -not -path " */node_modules/*" -not -path " */.git/*" \
3838 -exec perl -pi -e ' s/(?<!github.com\/)(?<!\@)vscodium/codesphere/g' {} +
3939
4040echo " Replacing 'Visual Studio Code' -> 'Codesphere IDE'..."
41- find . -type f \( -name " *.ts" -o -name " *.js" -o -name " *.html" -o -name " *.json" -o -name " *.md" \) \
41+ find . -type f \( -name " *.ts" -o -name " *.js" -o -name " *.html" -o -name " *.json" -o -name " *.md" -o -name " *.iss " -o -name " *.xml " -o -name " *.spec.template " -o -name " *.yaml " -o -name " *.template " \) \
4242 -not -path " */node_modules/*" -not -path " */.git/*" \
4343 -exec perl -pi -e ' s/Visual Studio Code/Codesphere IDE/g' {} +
4444
4545echo " Replacing 'VS Code' -> 'Codesphere'..."
46- find . -type f \( -name " *.ts" -o -name " *.js" -o -name " *.html" -o -name " *.json" -o -name " *.md" \) \
46+ find . -type f \( -name " *.ts" -o -name " *.js" -o -name " *.html" -o -name " *.json" -o -name " *.md" -o -name " *.iss " -o -name " *.xml " -o -name " *.spec.template " -o -name " *.yaml " -o -name " *.template " \) \
4747 -not -path " */node_modules/*" -not -path " */.git/*" \
4848 -exec perl -pi -e ' s/VS Code/Codesphere/g' {} +
4949
50+ echo " Replacing 'Microsoft Corporation' -> 'Codesphere'..."
51+ find . -type f \( -name " *.ts" -o -name " *.js" -o -name " *.html" -o -name " *.json" -o -name " *.md" -o -name " *.iss" -o -name " *.xml" -o -name " *.spec.template" -o -name " *.yaml" -o -name " *.template" \) \
52+ -not -path " */node_modules/*" -not -path " */.git/*" \
53+ -exec perl -pi -e ' s/Microsoft Corporation/Codesphere/g' {} +
54+
55+ echo " Replacing 'code.visualstudio.com' -> 'codesphere.com'..."
56+ find . -type f \( -name " *.ts" -o -name " *.js" -o -name " *.html" -o -name " *.json" -o -name " *.md" -o -name " *.iss" -o -name " *.xml" -o -name " *.spec.template" -o -name " *.yaml" -o -name " *.template" \) \
57+ -not -path " */node_modules/*" -not -path " */.git/*" \
58+ -exec perl -pi -e ' s/code.visualstudio.com/codesphere.com/g' {} +
59+
5060echo " ✅ Source code branding enforcement complete!"
0 commit comments