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 codium #1

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
27c9a5e
Rename VSCodium to Codium
stripedpajamas Nov 24, 2019
7b13dd6
Copy AppImage zsync file to be uploaded to GH
stripedpajamas Jan 13, 2021
a8372aa
macOS Big Sur App icon update.
setanarut Jan 14, 2021
820ca10
Merge pull request #612 from hazarek/master
stripedpajamas Jan 14, 2021
5298b33
Merge pull request #611 from stripedpajamas/zsync
stripedpajamas Jan 14, 2021
364838e
macOS since 2016. OSX name changed 4 years ago.
setanarut Jan 17, 2021
60de145
use script to generate icons
daiyam Jan 18, 2021
c12606a
clean up script
daiyam Jan 18, 2021
1f5761c
Merge pull request #617 from hazarek/patch-1
stripedpajamas Jan 19, 2021
e6fe0cd
use icon from #616
daiyam Jan 19, 2021
22001fc
Typo
setanarut Jan 19, 2021
6dd97cc
Merge pull request #618 from daiyam/update-icons
stripedpajamas Jan 19, 2021
9ed4558
Merge pull request #620 from hazarek/patch-1
stripedpajamas Jan 19, 2021
c9e9f28
Update update-cache-path.patch
sscotth Feb 5, 2021
baf7e68
API rate limit exceeded
sscotth Feb 6, 2021
96d79ae
Merge pull request #628 from sscotth/patch-1
stripedpajamas Feb 6, 2021
5d26e9d
Update Linux build agents
stripedpajamas Feb 7, 2021
c9ae0c6
(experiment) reset permissions before checking out
stripedpajamas Feb 7, 2021
aec3519
generate win32's icon based on linux' icon
daiyam Feb 7, 2021
a0eebe5
(experiment) remove permissions reset
stripedpajamas Feb 7, 2021
f103b1b
Merge pull request #634 from stripedpajamas/update-build-agents
stripedpajamas Feb 7, 2021
f8b17d4
Merge pull request #633 from daiyam/fix-icon
stripedpajamas Feb 7, 2021
dde412f
Merge branch 'codium-ftw' of https://github.com/stripedpajamas/vscodi…
meastblue Feb 12, 2021
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
6 changes: 3 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
include:
- vscode_arch: x64
npm_arch: x64
image: vscodium/vscodium-linux-build-agent:x64
image: vscodium/vscodium-linux-build-agent:bionic-x64
- vscode_arch: arm64
npm_arch: arm64
image: vscodium/vscodium-linux-build-agent:buster-arm64
image: vscodium/vscodium-linux-build-agent:stretch-arm64
- vscode_arch: armhf
npm_arch: armv7l
image: vscodium/vscodium-linux-build-agent:buster-armhf
image: vscodium/vscodium-linux-build-agent:stretch-armhf

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
vscode
VS*/*
VS*/*
.DS_Store
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ If you are on a Mac and have [Homebrew](https://brew.sh/) installed:
brew install --cask vscodium
```

_Note for Mac OS X Mojave users: if you see "App can't be opened because Apple cannot check it for malicious software" when opening VSCodium the first time, you can right-click the application and choose Open. This should only be required the first time opening on Mojave._
_Note for Mac macOS Mojave users: if you see "App can't be opened because Apple cannot check it for malicious software" when opening VSCodium the first time, you can right-click the application and choose Open. This should only be required the first time opening on Mojave._

#### <a id="install-with-winget"></a>Install with Windows Package Manager (WinGet)
If you use Windows and have [Windows Package Manager](https://github.com/microsoft/winget-cli) installed:
Expand Down Expand Up @@ -118,12 +118,12 @@ According to the VS Code Marketplace [Terms of Use](https://aka.ms/vsmarketplace
Please note that some Visual Studio Code extensions have licenses that restrict their use to the official Visual Studio Code builds and therefore do not work with VSCodium. See [this note](https://github.com/VSCodium/vscodium/blob/master/DOCS.md#proprietary-debugging-tools) on the Docs page for what's been found so far and possible workarounds.

### How are the VSCodium binaries built?
If you would like to see the commands we run to build `vscode` into VSCodium binaries, have a look at the workflow files in `.github/workflow` (for Linux and OS X builds) and the `win32-build.yml` file (for Windows builds). These build files call all the other scripts in the repo. If you find something that doesn't make sense, feel free to ask about it [on Gitter](https://gitter.im/VSCodium/Lobby).
If you would like to see the commands we run to build `vscode` into VSCodium binaries, have a look at the workflow files in `.github/workflow` (for Linux and macOS builds) and the `win32-build.yml` file (for Windows builds). These build files call all the other scripts in the repo. If you find something that doesn't make sense, feel free to ask about it [on Gitter](https://gitter.im/VSCodium/Lobby).

The builds are run every day, but exit early if there isn't a new release from Microsoft.

## <a id="supported-os"></a>Supported OS
- [x] OS X (`zip`, `dmg`)
- [x] macOS (`zip`, `dmg`)
- [x] Linux x64 (`deb`, `rpm`, `AppImage`, `tar.gz`)
- [x] Linux x86 (`deb`, `rpm`, `tar.gz`) ([up to v1.35.1](https://code.visualstudio.com/updates/v1_36#_linux-32bit-support-ends))
- [x] Linux arm64 (`deb`, `tar.gz`)
Expand Down
21 changes: 12 additions & 9 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 @@ -20,13 +20,16 @@ ingredients:
- ls codium_*.deb | cut -d _ -f 2 > VERSION

script:
- sed -i -e 's|/usr/share/pixmaps/||g' usr/share/applications/codium.desktop
- sed -i -e 's|/usr/share/codium/||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
- 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 . )
28 changes: 27 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,33 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then

echo "LATEST_MS_COMMIT: ${LATEST_MS_COMMIT}"

. prepare_vscode.sh
# set fields in product.json
tipsAndTricksUrl='setpath(["tipsAndTricksUrl"]; "https://go.microsoft.com/fwlink/?linkid=852118")'
twitterUrl='setpath(["twitterUrl"]; "https://go.microsoft.com/fwlink/?LinkID=533687")'
requestFeatureUrl='setpath(["requestFeatureUrl"]; "https://go.microsoft.com/fwlink/?LinkID=533482")'
documentationUrl='setpath(["documentationUrl"]; "https://go.microsoft.com/fwlink/?LinkID=533484#vscode")'
introductoryVideosUrl='setpath(["introductoryVideosUrl"]; "https://go.microsoft.com/fwlink/?linkid=832146")'
extensionAllowedBadgeProviders='setpath(["extensionAllowedBadgeProviders"]; ["api.bintray.com", "api.travis-ci.com", "api.travis-ci.org", "app.fossa.io", "badge.fury.io", "badge.waffle.io", "badgen.net", "badges.frapsoft.com", "badges.gitter.im", "badges.greenkeeper.io", "cdn.travis-ci.com", "cdn.travis-ci.org", "ci.appveyor.com", "circleci.com", "cla.opensource.microsoft.com", "codacy.com", "codeclimate.com", "codecov.io", "coveralls.io", "david-dm.org", "deepscan.io", "dev.azure.com", "flat.badgen.net", "gemnasium.com", "githost.io", "gitlab.com", "godoc.org", "goreportcard.com", "img.shields.io", "isitmaintained.com", "marketplace.visualstudio.com", "nodesecurity.io", "opencollective.com", "snyk.io", "travis-ci.com", "travis-ci.org", "visualstudio.com", "vsmarketplacebadge.apphb.com", "www.bithound.io", "www.versioneye.com"])'
updateUrl='setpath(["updateUrl"]; "https://vscodium.now.sh")'
releaseNotesUrl='setpath(["releaseNotesUrl"]; "https://go.microsoft.com/fwlink/?LinkID=533483#vscode")'
keyboardShortcutsUrlMac='setpath(["keyboardShortcutsUrlMac"]; "https://go.microsoft.com/fwlink/?linkid=832143")'
keyboardShortcutsUrlLinux='setpath(["keyboardShortcutsUrlLinux"]; "https://go.microsoft.com/fwlink/?linkid=832144")'
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"]; "Codium")'
nameLong='setpath(["nameLong"]; "Codium")'
linuxIconName='setpath(["linuxIconName"]; "codium")'
applicationName='setpath(["applicationName"]; "codium")'
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"]; "codium")'
extensionAllowedProposedApi='setpath(["extensionAllowedProposedApi"]; getpath(["extensionAllowedProposedApi"]) + ["ms-vsliveshare.vsliveshare"])'

cd vscode || exit

Expand Down
55 changes: 55 additions & 0 deletions icons/build_icons.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#!/usr/bin/env bash

check_programs() {
for arg in "$@"
do
if ! command -v $arg >/dev/null 2>&1
then
echo "$arg could not be found"
exit
fi
done
}

check_programs "icns2png" "composite" "convert" "png2icns" "icotool"

for file in vscode/resources/darwin/*
do
if [ -f "$file" ]; then
name=$(basename $file '.icns')

if [[ $name != 'code' ]] && [ ! -f "src/resources/darwin/$name.icns" ]; then
icns2png -x -s 512x512 $file -o .

composite -blend 100% -geometry +323+365 icons/corner_512.png "${name}_512x512x32.png" "$name.png"
composite icons/code_darwin.png "$name.png" "$name.png"

convert "$name.png" -resize 256x256 "${name}_256.png"

png2icns "src/resources/darwin/$name.icns" "$name.png" "${name}_256.png"

rm "${name}_512x512x32.png" "$name.png" "${name}_256.png"
fi
fi
done

for file in vscode/resources/win32/*.ico
do
if [ -f "$file" ]; then
name=$(basename $file '.ico')

if [[ $name != 'code' ]] && [ ! -f "src/resources/win32/$name.ico" ]; then
icotool -x -w 256 $file

composite -geometry +150+185 icons/code_64.png "${name}_9_256x256x32.png" "${name}.png"

convert "${name}.png" -define icon:auto-resize=256,128,96,64,48,32,24,20,16 "src/resources/win32/$name.ico"

rm "${name}_9_256x256x32.png" "${name}.png"
fi
fi
done

if [ ! -f "src/resources/win32/code.ico" ]; then
convert "src/resources/linux/code.png" -define icon:auto-resize=256,128,96,64,48,32,24,20,16 "src/resources/win32/code.ico"
fi
Binary file added icons/code_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/code_darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/corner_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions patches/update-cache-path.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--- vscode/src/vs/platform/update/electron-main/updateService.win32.ts 2019-12-08 15:09:44.000000000 -0800
+++ src/src/vs/platform/update/electron-main/updateService.win32.ts 2019-12-08 15:12:56.000000000 -0800
--- vscode/src/vs/platform/update/electron-main/updateService.win32.ts 2021-02-05 11:59:17.564060663 -0600
+++ src/src/vs/platform/update/electron-main/updateService.win32.ts 2021-02-05 11:59:39.780745778 -0600
@@ -55,7 +55,7 @@

@memoize
get cachePath(): Promise<string> {
- const result = path.join(tmpdir(), `vscode-update-${product.target}-${process.arch}`);
+ const result = path.join(tmpdir(), `vscodium-update-${product.target}-${process.arch}`);
return pfs.mkdirp(result, undefined).then(() => result);
return pfs.mkdirp(result).then(() => result);
}

Binary file modified src/resources/darwin/bat.icns
Binary file not shown.
Binary file modified src/resources/darwin/bower.icns
Binary file not shown.
Binary file modified src/resources/darwin/c.icns
Binary file not shown.
Binary file modified src/resources/darwin/code.icns
Binary file not shown.
Binary file modified src/resources/darwin/config.icns
Binary file not shown.
Binary file modified src/resources/darwin/cpp.icns
Binary file not shown.
Binary file modified src/resources/darwin/csharp.icns
Binary file not shown.
Binary file modified src/resources/darwin/css.icns
Binary file not shown.
Binary file modified src/resources/darwin/default.icns
Binary file not shown.
Binary file added src/resources/darwin/go.icns
Binary file not shown.
Binary file modified src/resources/darwin/html.icns
Binary file not shown.
Binary file modified src/resources/darwin/jade.icns
Binary file not shown.
Binary file modified src/resources/darwin/java.icns
Binary file not shown.
Binary file modified src/resources/darwin/javascript.icns
Binary file not shown.
Binary file modified src/resources/darwin/json.icns
Binary file not shown.
Binary file modified src/resources/darwin/less.icns
Binary file not shown.
Binary file modified src/resources/darwin/markdown.icns
Binary file not shown.
Binary file modified src/resources/darwin/php.icns
Binary file not shown.
Binary file modified src/resources/darwin/powershell.icns
Binary file not shown.
Binary file modified src/resources/darwin/python.icns
Binary file not shown.
Binary file modified src/resources/darwin/react.icns
Binary file not shown.
Binary file modified src/resources/darwin/ruby.icns
Binary file not shown.
Binary file modified src/resources/darwin/sass.icns
Binary file not shown.
Binary file modified src/resources/darwin/shell.icns
Binary file not shown.
Binary file modified src/resources/darwin/sql.icns
Binary file not shown.
Binary file modified src/resources/darwin/typescript.icns
Binary file not shown.
Binary file modified src/resources/darwin/vue.icns
Binary file not shown.
Binary file modified src/resources/darwin/xml.icns
Binary file not shown.
Binary file modified src/resources/darwin/yaml.icns
Binary file not shown.
Binary file modified src/resources/win32/bower.ico
Binary file not shown.
Binary file modified src/resources/win32/c.ico
Binary file not shown.
Binary file modified src/resources/win32/code.ico
Binary file not shown.
Binary file modified src/resources/win32/config.ico
Binary file not shown.
Binary file modified src/resources/win32/cpp.ico
Binary file not shown.
Binary file modified src/resources/win32/csharp.ico
Binary file not shown.
Binary file modified src/resources/win32/css.ico
Binary file not shown.
Binary file modified src/resources/win32/default.ico
Binary file not shown.
Binary file modified src/resources/win32/go.ico
Binary file not shown.
Binary file modified src/resources/win32/html.ico
Binary file not shown.
Binary file modified src/resources/win32/jade.ico
Binary file not shown.
Binary file modified src/resources/win32/java.ico
Binary file not shown.
Binary file modified src/resources/win32/javascript.ico
Binary file not shown.
Binary file modified src/resources/win32/json.ico
Binary file not shown.
Binary file modified src/resources/win32/less.ico
Binary file not shown.
Binary file modified src/resources/win32/markdown.ico
Binary file not shown.
Binary file modified src/resources/win32/php.ico
Binary file not shown.
Binary file modified src/resources/win32/powershell.ico
Binary file not shown.
Binary file modified src/resources/win32/python.ico
Binary file not shown.
Binary file modified src/resources/win32/react.ico
Binary file not shown.
Binary file added src/resources/win32/ruby.ico
Binary file not shown.
Binary file removed src/resources/win32/ruby.png.ico
Binary file not shown.
Binary file added src/resources/win32/sass.ico
Binary file not shown.
Binary file modified src/resources/win32/shell.ico
Binary file not shown.
Binary file modified src/resources/win32/sql.ico
Binary file not shown.
Binary file modified src/resources/win32/typescript.ico
Binary file not shown.
Binary file modified src/resources/win32/vue.ico
Binary file not shown.
Binary file modified src/resources/win32/xml.ico
Binary file not shown.
Binary file modified src/resources/win32/yaml.ico
Binary file not shown.
14 changes: 7 additions & 7 deletions sum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ sum_file () {

if [[ "$SHOULD_BUILD" == "yes" ]]; then
if [[ "$OS_NAME" == "osx" ]]; then
sum_file VSCodium-darwin-*.zip
sum_file VSCodium*.dmg
sum_file Codium-darwin-*.zip
sum_file Codium*.dmg
elif [[ "$OS_NAME" == "windows" ]]; 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 out/*.AppImage .
cp out/*.AppImage* .
cp vscode/.build/linux/deb/*/deb/*.deb .
cp vscode/.build/linux/rpm/*/*.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
20 changes: 10 additions & 10 deletions update_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,34 +93,34 @@ cd ..

if [[ "$OS_NAME" == "osx" ]]; then
# zip, sha1, and sha256 files are all at top level dir
ASSET_NAME=VSCodium-darwin-${VSCODE_ARCH}-${LATEST_MS_TAG}.zip
VERSION_PATH="darwin/${VSCODE_ARCH}"
ASSET_NAME=Codium-darwin-${LATEST_MS_TAG}.zip
VERSION_PATH="darwin"
JSON="$(generateJson ${ASSET_NAME})"
updateLatestVersion "$VERSION_PATH" "$JSON"
elif [[ "$OS_NAME" == "windows" ]]; then
# system installer
ASSET_NAME=VSCodiumSetup-${VSCODE_ARCH}-${LATEST_MS_TAG}.exe
VERSION_PATH="win32/${VSCODE_ARCH}/system"
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-${VSCODE_ARCH}-${LATEST_MS_TAG}.exe
VERSION_PATH="win32/${VSCODE_ARCH}/user"
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-${VSCODE_ARCH}-${LATEST_MS_TAG}.zip
VERSION_PATH="win32/${VSCODE_ARCH}/archive"
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-${VSCODE_ARCH}-${LATEST_MS_TAG}.tar.gz
VERSION_PATH="linux/${VSCODE_ARCH}"
ASSET_NAME=Codium-linux-${BUILDARCH}-${LATEST_MS_TAG}.tar.gz
VERSION_PATH="linux/${BUILDARCH}"
JSON="$(generateJson ${ASSET_NAME})"
updateLatestVersion "$VERSION_PATH" "$JSON"
fi
Expand Down