Browse Source

feat: rebrand reh-web resources (#2314)

Baptiste Augrain 1 month ago
parent
commit
bc47aeedce

+ 17 - 2
icons/build_icons.sh

@@ -94,13 +94,27 @@ build_media() { # {{{
   fi
 } # }}}
 
+build_server() { # {{{
+  if [[ ! -f "${SRC_PREFIX}src/${QUALITY}/resources/server/favicon.ico" ]]; then
+    wget "https://raw.githubusercontent.com/VSCodium/icons/main/icons/win32/nobg/${COLOR}/paulo22s.ico" -O "${SRC_PREFIX}src/${QUALITY}/resources/server/favicon.ico"
+  fi
+
+  if [[ ! -f "${SRC_PREFIX}src/${QUALITY}/resources/server/code-192.png" ]]; then
+    convert -size "192x192" "${SRC_PREFIX}src/${QUALITY}/resources/linux/code.png" "${SRC_PREFIX}src/${QUALITY}/resources/server/code-192.png"
+  fi
+
+  if [[ ! -f "${SRC_PREFIX}src/${QUALITY}/resources/server/code-512.png" ]]; then
+    convert -size "512x512" "${SRC_PREFIX}src/${QUALITY}/resources/linux/code.png" "${SRC_PREFIX}src/${QUALITY}/resources/server/code-512.png"
+  fi
+} # }}}
+
 build_windows_main() { # {{{
   if [[ ! -f "${SRC_PREFIX}src/${QUALITY}/resources/win32/code.ico" ]]; then
     wget "https://raw.githubusercontent.com/VSCodium/icons/main/icons/win32/nobg/${COLOR}/paulo22s.ico" -O "${SRC_PREFIX}src/${QUALITY}/resources/win32/code.ico"
   fi
 } # }}}
 
-build_windows_type() {
+build_windows_type() { # {{{
   local FILE_PATH IMG_SIZE IMG_BG_COLOR LOGO_SIZE GRAVITY
 
   FILE_PATH="$1"
@@ -120,7 +134,7 @@ build_windows_type() {
 
     composite -gravity "${GRAVITY}" "code_logo.png" "${FILE_PATH}" "${FILE_PATH}"
   fi
-}
+} # }}}
 
 build_windows_types() { # {{{
   mkdir -p "${SRC_PREFIX}src/${QUALITY}/resources/win32"
@@ -174,4 +188,5 @@ if [[ "${0}" == "${BASH_SOURCE[0]}" ]]; then
   build_windows_types
 
   build_media
+  build_server
 fi

+ 10 - 0
prepare_vscode.sh

@@ -195,6 +195,16 @@ setpath "package" "version" "${RELEASE_VERSION%-insider}"
 
 replace 's|Microsoft Corporation|VSCodium|' package.json
 
+cp resources/server/manifest.json{,.bak}
+
+if [[ "${VSCODE_QUALITY}" == "insider" ]]; then
+  setpath "resources/server/manifest" "name" "VSCodium - Insiders"
+  setpath "resources/server/manifest" "short_name" "VSCodium - Insiders"
+else
+  setpath "resources/server/manifest" "name" "VSCodium"
+  setpath "resources/server/manifest" "short_name" "VSCodium"
+fi
+
 # announcements
 replace "s|\\[\\/\\* BUILTIN_ANNOUNCEMENTS \\*\\/\\]|$( tr -d '\n' < ../announcements-builtin.json )|" src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts
 

BIN
src/insider/resources/server/code-192.png


BIN
src/insider/resources/server/code-512.png


BIN
src/insider/resources/server/favicon.ico


BIN
src/stable/resources/server/code-192.png


BIN
src/stable/resources/server/code-512.png


BIN
src/stable/resources/server/favicon.ico