Skip to content

Commit b11ad3c

Browse files
committed
Enhance demyx-entrypoint script to install Catppuccin theme if not already present, ensuring a consistent theme experience across environments.
1 parent 883a4c7 commit b11ad3c

File tree

5 files changed

+40
-0
lines changed

5 files changed

+40
-0
lines changed

tag-browse/bin/demyx-entrypoint

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ demyx_entrypoint() {
7777
if [[ -n "${DEMYX_ENTRYPOINT_THEME}" ]]; then
7878
rm -rf "${DEMYX_CODE_CONFIG}"/extensions/equinusocio*
7979
fi
80+
81+
# Install Catppuccin theme if not present
82+
DEMYX_ENTRYPOINT_THEME="$(find "${DEMYX_CODE_CONFIG}"/extensions -type d -maxdepth 1)"
83+
if [[ "${DEMYX_ENTRYPOINT_THEME}" != *"catppuccin"* ]]; then
84+
code-server --extensions-dir="$DEMYX_CODE_CONFIG"/extensions \
85+
--install-extension=catppuccin.catppuccin-vsc \
86+
--install-extension=catppuccin.catppuccin-vsc-icons
87+
fi
8088

8189
# Generate code-server yaml
8290
echo "auth: \"$DEMYX_CODE_AUTH\"

tag-go/bin/demyx-entrypoint

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ demyx_entrypoint() {
7777
if [[ -n "${DEMYX_ENTRYPOINT_THEME}" ]]; then
7878
rm -rf "${DEMYX_CODE_CONFIG}"/extensions/equinusocio*
7979
fi
80+
81+
# Install Catppuccin theme if not present
82+
DEMYX_ENTRYPOINT_THEME="$(find "${DEMYX_CODE_CONFIG}"/extensions -type d -maxdepth 1)"
83+
if [[ "${DEMYX_ENTRYPOINT_THEME}" != *"catppuccin"* ]]; then
84+
code-server --extensions-dir="$DEMYX_CODE_CONFIG"/extensions \
85+
--install-extension=catppuccin.catppuccin-vsc \
86+
--install-extension=catppuccin.catppuccin-vsc-icons
87+
fi
8088

8189
# Generate code-server yaml
8290
echo "auth: \"$DEMYX_CODE_AUTH\"

tag-latest/bin/demyx-entrypoint

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ demyx_entrypoint() {
7777
if [[ -n "${DEMYX_ENTRYPOINT_THEME}" ]]; then
7878
rm -rf "${DEMYX_CODE_CONFIG}"/extensions/equinusocio*
7979
fi
80+
81+
# Install Catppuccin theme if not present
82+
DEMYX_ENTRYPOINT_THEME="$(find "${DEMYX_CODE_CONFIG}"/extensions -type d -maxdepth 1)"
83+
if [[ "${DEMYX_ENTRYPOINT_THEME}" != *"catppuccin"* ]]; then
84+
code-server --extensions-dir="$DEMYX_CODE_CONFIG"/extensions \
85+
--install-extension=catppuccin.catppuccin-vsc \
86+
--install-extension=catppuccin.catppuccin-vsc-icons
87+
fi
8088

8189
# Generate code-server yaml
8290
echo "auth: \"$DEMYX_CODE_AUTH\"

tag-openlitespeed/bin/demyx-entrypoint

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,20 @@ demyx_entrypoint() {
9191

9292
# TEMPORARY
9393
composer global require --dev wp-coding-standards/wpcs:"^3.0" &
94+
95+
# Remove equinusocio themes
9496
DEMYX_ENTRYPOINT_THEME="$(find "${DEMYX_CODE_CONFIG}"/extensions -name "equinusocio*")"
9597
if [[ -n "${DEMYX_ENTRYPOINT_THEME}" ]]; then
9698
rm -rf "${DEMYX_CODE_CONFIG}"/extensions/equinusocio*
9799
fi
100+
101+
# Install Catppuccin theme if not present
102+
DEMYX_ENTRYPOINT_THEME="$(find "${DEMYX_CODE_CONFIG}"/extensions -type d -maxdepth 1)"
103+
if [[ "${DEMYX_ENTRYPOINT_THEME}" != *"catppuccin"* ]]; then
104+
code-server --extensions-dir="$DEMYX_CODE_CONFIG"/extensions \
105+
--install-extension=catppuccin.catppuccin-vsc \
106+
--install-extension=catppuccin.catppuccin-vsc-icons
107+
fi
98108

99109
# Generate code-server yaml
100110
echo "auth: \"$DEMYX_CODE_AUTH\"

tag-wp/bin/demyx-entrypoint

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ demyx_entrypoint() {
9393
if [[ -n "${DEMYX_ENTRYPOINT_THEME}" ]]; then
9494
rm -rf "${DEMYX_CODE_CONFIG}"/extensions/equinusocio*
9595
fi
96+
DEMYX_ENTRYPOINT_THEME="$(find "${DEMYX_CODE_CONFIG}"/extensions -type d -maxdepth 1)"
97+
if [[ "${DEMYX_ENTRYPOINT_THEME}" != *"catppuccin"* ]]; then
98+
code-server --extensions-dir="$DEMYX_CODE_CONFIG"/extensions \
99+
--install-extension=catppuccin.catppuccin-vsc \
100+
--install-extension=catppuccin.catppuccin-vsc-icons
101+
fi
96102

97103
# Generate code-server yaml
98104
echo "auth: \"$DEMYX_CODE_AUTH\"

0 commit comments

Comments
 (0)