Skip to content

Commit bc47aee

Browse files
committed
feat: rebrand reh-web resources (#2314)
1 parent e4bb522 commit bc47aee

File tree

8 files changed

+27
-2
lines changed

8 files changed

+27
-2
lines changed

icons/build_icons.sh

+17-2
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,27 @@ build_media() { # {{{
9494
fi
9595
} # }}}
9696

97+
build_server() { # {{{
98+
if [[ ! -f "${SRC_PREFIX}src/${QUALITY}/resources/server/favicon.ico" ]]; then
99+
wget "https://raw.githubusercontent.com/VSCodium/icons/main/icons/win32/nobg/${COLOR}/paulo22s.ico" -O "${SRC_PREFIX}src/${QUALITY}/resources/server/favicon.ico"
100+
fi
101+
102+
if [[ ! -f "${SRC_PREFIX}src/${QUALITY}/resources/server/code-192.png" ]]; then
103+
convert -size "192x192" "${SRC_PREFIX}src/${QUALITY}/resources/linux/code.png" "${SRC_PREFIX}src/${QUALITY}/resources/server/code-192.png"
104+
fi
105+
106+
if [[ ! -f "${SRC_PREFIX}src/${QUALITY}/resources/server/code-512.png" ]]; then
107+
convert -size "512x512" "${SRC_PREFIX}src/${QUALITY}/resources/linux/code.png" "${SRC_PREFIX}src/${QUALITY}/resources/server/code-512.png"
108+
fi
109+
} # }}}
110+
97111
build_windows_main() { # {{{
98112
if [[ ! -f "${SRC_PREFIX}src/${QUALITY}/resources/win32/code.ico" ]]; then
99113
wget "https://raw.githubusercontent.com/VSCodium/icons/main/icons/win32/nobg/${COLOR}/paulo22s.ico" -O "${SRC_PREFIX}src/${QUALITY}/resources/win32/code.ico"
100114
fi
101115
} # }}}
102116

103-
build_windows_type() {
117+
build_windows_type() { # {{{
104118
local FILE_PATH IMG_SIZE IMG_BG_COLOR LOGO_SIZE GRAVITY
105119

106120
FILE_PATH="$1"
@@ -120,7 +134,7 @@ build_windows_type() {
120134

121135
composite -gravity "${GRAVITY}" "code_logo.png" "${FILE_PATH}" "${FILE_PATH}"
122136
fi
123-
}
137+
} # }}}
124138

125139
build_windows_types() { # {{{
126140
mkdir -p "${SRC_PREFIX}src/${QUALITY}/resources/win32"
@@ -174,4 +188,5 @@ if [[ "${0}" == "${BASH_SOURCE[0]}" ]]; then
174188
build_windows_types
175189

176190
build_media
191+
build_server
177192
fi

prepare_vscode.sh

+10
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,16 @@ setpath "package" "version" "${RELEASE_VERSION%-insider}"
195195

196196
replace 's|Microsoft Corporation|VSCodium|' package.json
197197

198+
cp resources/server/manifest.json{,.bak}
199+
200+
if [[ "${VSCODE_QUALITY}" == "insider" ]]; then
201+
setpath "resources/server/manifest" "name" "VSCodium - Insiders"
202+
setpath "resources/server/manifest" "short_name" "VSCodium - Insiders"
203+
else
204+
setpath "resources/server/manifest" "name" "VSCodium"
205+
setpath "resources/server/manifest" "short_name" "VSCodium"
206+
fi
207+
198208
# announcements
199209
replace "s|\\[\\/\\* BUILTIN_ANNOUNCEMENTS \\*\\/\\]|$( tr -d '\n' < ../announcements-builtin.json )|" src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts
200210

429 KB
Loading
429 KB
Loading
157 KB
Binary file not shown.
418 KB
Loading
418 KB
Loading
157 KB
Binary file not shown.

0 commit comments

Comments
 (0)