Skip to content

Commit c01dca9

Browse files
author
Codesphere Developer
committed
fix(ci): improve branding enforcement coverage
This commit expands the branding enforcement script to include .rs, .isl, .txt, and .toml files, resolving compliance check failures. It also adds a specific replacement for github.com/VSCodium to github.com/Codesphere to fix build script download URLs.
1 parent 870ca0c commit c01dca9

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

ci/enforce-branding.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,33 +27,37 @@ cd "$VSCODE_DIR" || exit 1
2727
# Note: We avoid replacing "github.com/VSCodium" to keep repository links functional if needed,
2828
# though we already updated product.json to point to Codesphere's own URLs.
2929

30+
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" -o -name "*.rs" -o -name "*.isl" -o -name "*.txt" -o -name "*.toml" \) \
31+
-not -path "*/node_modules/*" -not -path "*/.git/*" \
32+
-exec perl -pi -e 's/github.com\/VSCodium/github.com\/Codesphere/g' {} +
33+
3034
echo " Replacing 'VSCodium' -> 'Codesphere'..."
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" \) \
35+
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" -o -name "*.rs" -o -name "*.isl" -o -name "*.txt" -o -name "*.toml" \) \
3236
-not -path "*/node_modules/*" -not -path "*/.git/*" \
3337
-exec perl -pi -e 's/(?<!github.com\/)(?<!\@)VSCodium/Codesphere/g' {} +
3438

3539
echo " Replacing 'vscodium' -> 'codesphere'..."
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" \) \
40+
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" -o -name "*.rs" -o -name "*.isl" -o -name "*.txt" -o -name "*.toml" \) \
3741
-not -path "*/node_modules/*" -not -path "*/.git/*" \
3842
-exec perl -pi -e 's/(?<!github.com\/)(?<!\@)vscodium/codesphere/g' {} +
3943

4044
echo " Replacing 'Visual Studio Code' -> 'Codesphere IDE'..."
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" \) \
45+
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" -o -name "*.rs" -o -name "*.isl" -o -name "*.txt" -o -name "*.toml" \) \
4246
-not -path "*/node_modules/*" -not -path "*/.git/*" \
4347
-exec perl -pi -e 's/Visual Studio Code/Codesphere IDE/g' {} +
4448

4549
echo " Replacing 'VS Code' -> 'Codesphere'..."
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" \) \
50+
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" -o -name "*.rs" -o -name "*.isl" -o -name "*.txt" -o -name "*.toml" \) \
4751
-not -path "*/node_modules/*" -not -path "*/.git/*" \
4852
-exec perl -pi -e 's/VS Code/Codesphere/g' {} +
4953

5054
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" \) \
55+
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" -o -name "*.rs" -o -name "*.isl" -o -name "*.txt" -o -name "*.toml" \) \
5256
-not -path "*/node_modules/*" -not -path "*/.git/*" \
5357
-exec perl -pi -e 's/Microsoft Corporation/Codesphere/g' {} +
5458

5559
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" \) \
60+
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" -o -name "*.rs" -o -name "*.isl" -o -name "*.txt" -o -name "*.toml" \) \
5761
-not -path "*/node_modules/*" -not -path "*/.git/*" \
5862
-exec perl -pi -e 's/code.visualstudio.com/codesphere.com/g' {} +
5963

0 commit comments

Comments
 (0)