Skip to content

Commit e938687

Browse files
authored
🤖 fix: relocate Seti font asset (#632)
## Summary - serve the Seti font from the packaged public directory so builds can load it - swap the globals.css @font-face source to the new path - update update_seti_icons.sh to refresh the font in its new location _Generated with _
1 parent ddf1dae commit e938687

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed
File renamed without changes.

scripts/update_seti_icons.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ set -euo pipefail
33

44
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
55
ASSET_DIR="$ROOT_DIR/src/browser/assets/file-icons"
6+
FONT_PATH="$ROOT_DIR/public/seti.woff"
67

78
mkdir -p "$ASSET_DIR"
89

910
curl -sSL "https://raw.githubusercontent.com/microsoft/vscode/main/extensions/theme-seti/icons/seti.woff" \
10-
-o "$ASSET_DIR/seti.woff"
11+
-o "$FONT_PATH"
1112

1213
curl -sSL "https://raw.githubusercontent.com/microsoft/vscode/main/extensions/theme-seti/icons/vs-seti-icon-theme.json" \
1314
-o "$ASSET_DIR/seti-icon-theme.json"
1415

15-
echo "Updated Seti icon assets in $ASSET_DIR"
16+
echo "Updated Seti icon assets in $ASSET_DIR and font at $FONT_PATH"

src/browser/styles/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
@font-face {
1414
font-family: "Seti";
15-
src: url("../assets/file-icons/seti.woff") format("woff");
15+
src: url("/seti.woff") format("woff");
1616
font-weight: normal;
1717
font-style: normal;
1818
font-display: swap;

0 commit comments

Comments
 (0)