diff --git a/icons/build_icons.sh b/icons/build_icons.sh index e04fca7..9f4e9cc 100755 --- a/icons/build_icons.sh +++ b/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 diff --git a/prepare_vscode.sh b/prepare_vscode.sh index 6b17ded..2747414 100755 --- a/prepare_vscode.sh +++ b/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 diff --git a/src/insider/resources/server/code-192.png b/src/insider/resources/server/code-192.png new file mode 100644 index 0000000..25b17e3 Binary files /dev/null and b/src/insider/resources/server/code-192.png differ diff --git a/src/insider/resources/server/code-512.png b/src/insider/resources/server/code-512.png new file mode 100644 index 0000000..25b17e3 Binary files /dev/null and b/src/insider/resources/server/code-512.png differ diff --git a/src/insider/resources/server/favicon.ico b/src/insider/resources/server/favicon.ico new file mode 100644 index 0000000..377a854 Binary files /dev/null and b/src/insider/resources/server/favicon.ico differ diff --git a/src/stable/resources/server/code-192.png b/src/stable/resources/server/code-192.png new file mode 100644 index 0000000..d52000d Binary files /dev/null and b/src/stable/resources/server/code-192.png differ diff --git a/src/stable/resources/server/code-512.png b/src/stable/resources/server/code-512.png new file mode 100644 index 0000000..0d9ae88 Binary files /dev/null and b/src/stable/resources/server/code-512.png differ diff --git a/src/stable/resources/server/favicon.ico b/src/stable/resources/server/favicon.ico new file mode 100644 index 0000000..48b7b1c Binary files /dev/null and b/src/stable/resources/server/favicon.ico differ