mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-24 11:50:14 +10:00
feat: rebrand reh-web resources (#2314)
This commit is contained in:
@@ -94,13 +94,27 @@ build_media() { # {{{
|
|||||||
fi
|
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() { # {{{
|
build_windows_main() { # {{{
|
||||||
if [[ ! -f "${SRC_PREFIX}src/${QUALITY}/resources/win32/code.ico" ]]; then
|
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"
|
wget "https://raw.githubusercontent.com/VSCodium/icons/main/icons/win32/nobg/${COLOR}/paulo22s.ico" -O "${SRC_PREFIX}src/${QUALITY}/resources/win32/code.ico"
|
||||||
fi
|
fi
|
||||||
} # }}}
|
} # }}}
|
||||||
|
|
||||||
build_windows_type() {
|
build_windows_type() { # {{{
|
||||||
local FILE_PATH IMG_SIZE IMG_BG_COLOR LOGO_SIZE GRAVITY
|
local FILE_PATH IMG_SIZE IMG_BG_COLOR LOGO_SIZE GRAVITY
|
||||||
|
|
||||||
FILE_PATH="$1"
|
FILE_PATH="$1"
|
||||||
@@ -120,7 +134,7 @@ build_windows_type() {
|
|||||||
|
|
||||||
composite -gravity "${GRAVITY}" "code_logo.png" "${FILE_PATH}" "${FILE_PATH}"
|
composite -gravity "${GRAVITY}" "code_logo.png" "${FILE_PATH}" "${FILE_PATH}"
|
||||||
fi
|
fi
|
||||||
}
|
} # }}}
|
||||||
|
|
||||||
build_windows_types() { # {{{
|
build_windows_types() { # {{{
|
||||||
mkdir -p "${SRC_PREFIX}src/${QUALITY}/resources/win32"
|
mkdir -p "${SRC_PREFIX}src/${QUALITY}/resources/win32"
|
||||||
@@ -174,4 +188,5 @@ if [[ "${0}" == "${BASH_SOURCE[0]}" ]]; then
|
|||||||
build_windows_types
|
build_windows_types
|
||||||
|
|
||||||
build_media
|
build_media
|
||||||
|
build_server
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -195,6 +195,16 @@ setpath "package" "version" "${RELEASE_VERSION%-insider}"
|
|||||||
|
|
||||||
replace 's|Microsoft Corporation|VSCodium|' package.json
|
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
|
# announcements
|
||||||
replace "s|\\[\\/\\* BUILTIN_ANNOUNCEMENTS \\*\\/\\]|$( tr -d '\n' < ../announcements-builtin.json )|" src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts
|
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
Normal file
BIN
src/insider/resources/server/code-192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 429 KiB |
BIN
src/insider/resources/server/code-512.png
Normal file
BIN
src/insider/resources/server/code-512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 429 KiB |
BIN
src/insider/resources/server/favicon.ico
Normal file
BIN
src/insider/resources/server/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 157 KiB |
BIN
src/stable/resources/server/code-192.png
Normal file
BIN
src/stable/resources/server/code-192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 418 KiB |
BIN
src/stable/resources/server/code-512.png
Normal file
BIN
src/stable/resources/server/code-512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 418 KiB |
BIN
src/stable/resources/server/favicon.ico
Normal file
BIN
src/stable/resources/server/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 157 KiB |
Reference in New Issue
Block a user