Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename VSCodium to Codium #293

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions VSCodium-AppImage-Recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# wget -c "https://github.com/AppImage/pkg2appimage/raw/master/pkg2appimage"
# bash -ex pkg2appimage VSCodium

app: VSCodium
app: Codium

ingredients:
packages:
Expand All @@ -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 . )
20 changes: 10 additions & 10 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
2 changes: 1 addition & 1 deletion create_dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions create_zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..
Expand Down
2 changes: 1 addition & 1 deletion sign_mac_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 6 additions & 6 deletions sum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions update_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,33 +100,33 @@ 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"
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"
Expand Down
12 changes: 6 additions & 6 deletions win32-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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')
Expand Down