From 27c9a5e4b00c41964dc9104ab2b671486c7c0c94 Mon Sep 17 00:00:00 2001 From: Peter Squicciarini Date: Sat, 23 Nov 2019 16:19:35 -0800 Subject: [PATCH] Rename VSCodium to Codium --- VSCodium-AppImage-Recipe.yml | 22 +++++++++++----------- build.sh | 20 ++++++++++---------- create_dmg.sh | 2 +- create_zip.sh | 6 +++--- sign_mac_app.sh | 2 +- sum.sh | 12 ++++++------ update_version.sh | 10 +++++----- win32-build.yml | 12 ++++++------ 8 files changed, 43 insertions(+), 43 deletions(-) diff --git a/VSCodium-AppImage-Recipe.yml b/VSCodium-AppImage-Recipe.yml index 6f6a933deab..9d48efeb27f 100644 --- a/VSCodium-AppImage-Recipe.yml +++ b/VSCodium-AppImage-Recipe.yml @@ -5,7 +5,7 @@ # wget -c "https://github.com/AppImage/pkg2appimage/raw/master/pkg2appimage" # bash -ex pkg2appimage VSCodium -app: VSCodium +app: Codium ingredients: packages: @@ -21,15 +21,15 @@ ingredients: script: - sed -i -e 's|/usr/share/codium/||g' usr/share/applications/codium.desktop - - sed -i -e 's|com.visualstudio.code.oss|vscodium|g' usr/share/applications/codium.desktop + - sed -i -e 's|com.visualstudio.code.oss|codium|g' usr/share/applications/codium.desktop - cp usr/share/applications/codium.desktop . - - cp usr/share/pixmaps/vscodium.png vscodium.png - - convert vscodium.png -resize 512x512 usr/share/icons/hicolor/512x512/apps/vscodium.png - - convert vscodium.png -resize 256x256 usr/share/icons/hicolor/256x256/apps/vscodium.png - - convert vscodium.png -resize 128x128 usr/share/icons/hicolor/128x128/apps/vscodium.png - - convert vscodium.png -resize 64x64 usr/share/icons/hicolor/64x64/apps/vscodium.png - - convert vscodium.png -resize 48x48 usr/share/icons/hicolor/48x48/apps/vscodium.png - - convert vscodium.png -resize 32x32 usr/share/icons/hicolor/32x32/apps/vscodium.png - - convert vscodium.png -resize 24x24 usr/share/icons/hicolor/24x24/apps/vscodium.png - - convert vscodium.png -resize 22x22 usr/share/icons/hicolor/22x22/apps/vscodium.png + - cp usr/share/pixmaps/codium.png codium.png + - convert codium.png -resize 512x512 usr/share/icons/hicolor/512x512/apps/codium.png + - convert codium.png -resize 256x256 usr/share/icons/hicolor/256x256/apps/codium.png + - convert codium.png -resize 128x128 usr/share/icons/hicolor/128x128/apps/codium.png + - convert codium.png -resize 64x64 usr/share/icons/hicolor/64x64/apps/codium.png + - convert codium.png -resize 48x48 usr/share/icons/hicolor/48x48/apps/codium.png + - convert codium.png -resize 32x32 usr/share/icons/hicolor/32x32/apps/codium.png + - convert codium.png -resize 24x24 usr/share/icons/hicolor/24x24/apps/codium.png + - convert codium.png -resize 22x22 usr/share/icons/hicolor/22x22/apps/codium.png - ( cd usr/bin/ ; ln -s ../share/codium/codium . ) diff --git a/build.sh b/build.sh index a08167afb5f..7c1c3d7c560 100755 --- a/build.sh +++ b/build.sh @@ -37,18 +37,18 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then keyboardShortcutsUrlWin='setpath(["keyboardShortcutsUrlWin"]; "https://go.microsoft.com/fwlink/?linkid=832145")' quality='setpath(["quality"]; "stable")' extensionsGallery='setpath(["extensionsGallery"]; {"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery", "cacheUrl": "https://vscode.blob.core.windows.net/gallery/index", "itemUrl": "https://marketplace.visualstudio.com/items"})' - nameShort='setpath(["nameShort"]; "VSCodium")' - nameLong='setpath(["nameLong"]; "VSCodium")' - linuxIconName='setpath(["linuxIconName"]; "vscodium")' + nameShort='setpath(["nameShort"]; "Codium")' + nameLong='setpath(["nameLong"]; "Codium")' + linuxIconName='setpath(["linuxIconName"]; "codium")' applicationName='setpath(["applicationName"]; "codium")' - win32MutexName='setpath(["win32MutexName"]; "vscodium")' - win32DirName='setpath(["win32DirName"]; "VSCodium")' - win32NameVersion='setpath(["win32NameVersion"]; "VSCodium")' - win32RegValueName='setpath(["win32RegValueName"]; "VSCodium")' - win32AppUserModelId='setpath(["win32AppUserModelId"]; "Microsoft.VSCodium")' - win32ShellNameShort='setpath(["win32ShellNameShort"]; "VSCodium")' + win32MutexName='setpath(["win32MutexName"]; "codium")' + win32DirName='setpath(["win32DirName"]; "Codium")' + win32NameVersion='setpath(["win32NameVersion"]; "Codium")' + win32RegValueName='setpath(["win32RegValueName"]; "Codium")' + win32AppUserModelId='setpath(["win32AppUserModelId"]; "Microsoft.Codium")' + win32ShellNameShort='setpath(["win32ShellNameShort"]; "Codium")' win32x64UserAppId='setpath (["win32x64UserAppId"]; "{{2E1F05D1-C245-4562-81EE-28188DB6FD17}")' - urlProtocol='setpath(["urlProtocol"]; "vscodium")' + urlProtocol='setpath(["urlProtocol"]; "codium")' extensionAllowedProposedApi='setpath(["extensionAllowedProposedApi"]; getpath(["extensionAllowedProposedApi"]) + ["ms-vsliveshare.vsliveshare"])' product_json_changes="${tipsAndTricksUrl} | ${twitterUrl} | ${requestFeatureUrl} | ${documentationUrl} | ${introductoryVideosUrl} | ${extensionAllowedBadgeProviders} | ${updateUrl} | ${releaseNotesUrl} | ${keyboardShortcutsUrlMac} | ${keyboardShortcutsUrlLinux} | ${keyboardShortcutsUrlWin} | ${quality} | ${extensionsGallery} | ${nameShort} | ${nameLong} | ${linuxIconName} | ${applicationName} | ${win32MutexName} | ${win32DirName} | ${win32NameVersion} | ${win32RegValueName} | ${win32AppUserModelId} | ${win32ShellNameShort} | ${win32x64UserAppId} | ${urlProtocol} | ${extensionAllowedProposedApi}" diff --git a/create_dmg.sh b/create_dmg.sh index 3a488cd7d30..56cf30d2ac4 100755 --- a/create_dmg.sh +++ b/create_dmg.sh @@ -2,7 +2,7 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cd VSCode-darwin - create-dmg VSCodium.app .. + create-dmg Codium.app .. fi cd .. fi diff --git a/create_zip.sh b/create_zip.sh index a5ae004c14d..bf79e95f8c9 100755 --- a/create_zip.sh +++ b/create_zip.sh @@ -3,13 +3,13 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cd VSCode-darwin - zip -r -X -y ../VSCodium-darwin-${LATEST_MS_TAG}.zip ./*.app + zip -r -X -y ../Codium-darwin-${LATEST_MS_TAG}.zip ./*.app elif [[ "$BUILDARCH" == "arm64" ]]; then cd VSCode-linux-arm64 - tar czf ../VSCodium-linux-arm64-${LATEST_MS_TAG}.tar.gz . + tar czf ../Codium-linux-arm64-${LATEST_MS_TAG}.tar.gz . else cd VSCode-linux-x64 - tar czf ../VSCodium-linux-x64-${LATEST_MS_TAG}.tar.gz . + tar czf ../Codium-linux-x64-${LATEST_MS_TAG}.tar.gz . fi cd .. diff --git a/sign_mac_app.sh b/sign_mac_app.sh index 1f3032a613e..93ddc952601 100755 --- a/sign_mac_app.sh +++ b/sign_mac_app.sh @@ -17,7 +17,7 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then # https://docs.travis-ci.com/user/common-build-problems/ security set-key-partition-list -S apple-tool:,apple: -s -k mysecretpassword $KEYCHAIN - codesign --deep --force --verbose --sign "$CERTIFICATE_OSX_ID" VSCodium.app + codesign --deep --force --verbose --sign "$CERTIFICATE_OSX_ID" Codium.app fi fi fi diff --git a/sum.sh b/sum.sh index 5ef9591756b..d709b2ea838 100755 --- a/sum.sh +++ b/sum.sh @@ -20,19 +20,19 @@ sum_file () { if [[ "$SHOULD_BUILD" == "yes" ]]; then if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - sum_file VSCodium-darwin-*.zip - sum_file VSCodium*.dmg + sum_file Codium-darwin-*.zip + sum_file Codium*.dmg elif [[ "$CI_WINDOWS" == "True" ]]; then - sum_file VSCodiumSetup-*.exe - sum_file VSCodiumUserSetup-*.exe - sum_file VSCodium-win32-*.zip + sum_file CodiumSetup-*.exe + sum_file CodiumUserSetup-*.exe + sum_file Codium-win32-*.zip else # linux cp vscode/out/*.AppImage . cp vscode/.build/linux/deb/amd64/deb/*.deb . cp vscode/.build/linux/rpm/x86_64/*.rpm . sum_file *.AppImage - sum_file VSCodium-linux*.tar.gz + sum_file Codium-linux*.tar.gz sum_file *.deb sum_file *.rpm fi diff --git a/update_version.sh b/update_version.sh index 4610ecf7d8a..4c94506be1c 100755 --- a/update_version.sh +++ b/update_version.sh @@ -100,25 +100,25 @@ cd .. if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then # zip, sha1, and sha256 files are all at top level dir - ASSET_NAME=VSCodium-darwin-${LATEST_MS_TAG}.zip + ASSET_NAME=Codium-darwin-${LATEST_MS_TAG}.zip VERSION_PATH="darwin" JSON="$(generateJson ${ASSET_NAME})" updateLatestVersion "$VERSION_PATH" "$JSON" elif [[ "$CI_WINDOWS" == "True" ]]; then # system installer - ASSET_NAME=VSCodiumSetup-${BUILDARCH}-${LATEST_MS_TAG}.exe + ASSET_NAME=CodiumSetup-${BUILDARCH}-${LATEST_MS_TAG}.exe VERSION_PATH="win32/${BUILDARCH}/system" JSON="$(generateJson ${ASSET_NAME})" updateLatestVersion "$VERSION_PATH" "$JSON" # user installer - ASSET_NAME=VSCodiumUserSetup-${BUILDARCH}-${LATEST_MS_TAG}.exe + ASSET_NAME=CodiumUserSetup-${BUILDARCH}-${LATEST_MS_TAG}.exe VERSION_PATH="win32/${BUILDARCH}/user" JSON="$(generateJson ${ASSET_NAME})" updateLatestVersion "$VERSION_PATH" "$JSON" # windows archive - ASSET_NAME=VSCodium-win32-${BUILDARCH}-${LATEST_MS_TAG}.zip + ASSET_NAME=Codium-win32-${BUILDARCH}-${LATEST_MS_TAG}.zip VERSION_PATH="win32/${BUILDARCH}/archive" JSON="$(generateJson ${ASSET_NAME})" updateLatestVersion "$VERSION_PATH" "$JSON" @@ -126,7 +126,7 @@ else # linux # update service links to tar.gz file # see https://update.code.visualstudio.com/api/update/linux-x64/stable/VERSION # as examples - ASSET_NAME=VSCodium-linux-${BUILDARCH}-${LATEST_MS_TAG}.tar.gz + ASSET_NAME=Codium-linux-${BUILDARCH}-${LATEST_MS_TAG}.tar.gz VERSION_PATH="linux/${BUILDARCH}" JSON="$(generateJson ${ASSET_NAME})" updateLatestVersion "$VERSION_PATH" "$JSON" diff --git a/win32-build.yml b/win32-build.yml index 2d885276397..227ba1a356c 100644 --- a/win32-build.yml +++ b/win32-build.yml @@ -34,13 +34,13 @@ steps: bash ./build.sh displayName: 'go build it!' - bash: | - if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-$(BUILDARCH)\\system-setup\\VSCodeSetup.exe VSCodiumSetup-$(BUILDARCH)-${LATEST_MS_TAG}.exe; fi + if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-$(BUILDARCH)\\system-setup\\VSCodeSetup.exe CodiumSetup-$(BUILDARCH)-${LATEST_MS_TAG}.exe; fi displayName: 'move the system setup' - bash: | - if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-$(BUILDARCH)\\user-setup\\VSCodeSetup.exe VSCodiumUserSetup-$(BUILDARCH)-${LATEST_MS_TAG}.exe; fi + if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-$(BUILDARCH)\\user-setup\\VSCodeSetup.exe CodiumUserSetup-$(BUILDARCH)-${LATEST_MS_TAG}.exe; fi displayName: 'move the user setup' - bash: | - if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-$(BUILDARCH)\\archive\\VSCode-win32-$(BUILDARCH).zip VSCodium-win32-$(BUILDARCH)-${LATEST_MS_TAG}.zip; fi + if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-$(BUILDARCH)\\archive\\VSCode-win32-$(BUILDARCH).zip Codium-win32-$(BUILDARCH)-${LATEST_MS_TAG}.zip; fi displayName: 'move the zip folder' - powershell: | bash ./sum.sh @@ -49,9 +49,9 @@ steps: - task: CopyFiles@2 inputs: contents: | - VSCodium*.zip - VSCodiumUserSetup*.exe - VSCodiumSetup*.exe + Codium*.zip + CodiumUserSetup*.exe + CodiumSetup*.exe *.sha256 targetFolder: $(Build.ArtifactStagingDirectory) condition: eq(variables['SHOULD_BUILD'], 'yes')