Skip to content

feat: update to 3.9.3 #7

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

Merged
merged 3 commits into from
Apr 8, 2021
Merged
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
14 changes: 7 additions & 7 deletions .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
pkgbase = code-server
pkgdesc = VS Code in the browser
pkgver = 3.9.2
pkgver = 3.9.3
pkgrel = 1
url = https://github.com/cdr/code-server
arch = x86_64
arch = aarch64
license = MIT
depends = glibc
source = code-server-3.9.2-user.service::https://raw.githubusercontent.com/cdr/code-server/v3.9.2/ci/build/code-server-user.service
source = code-server-3.9.2@.service::https://raw.githubusercontent.com/cdr/code-server/v3.9.2/ci/build/code-server@.service
source = code-server-3.9.3-user.service::https://raw.githubusercontent.com/cdr/code-server/v3.9.3/ci/build/code-server-user.service
source = code-server-3.9.3@.service::https://raw.githubusercontent.com/cdr/code-server/v3.9.3/ci/build/code-server@.service
sha512sums = 7040df09c7404a56dbbb32e09d04ead3b622773520feae19c6710656cef46ca5d79b1972bfebb931e309e495d041b9938cd6a51c39fc0f8f6133dfe711be9280
sha512sums = ab8e679c05f6184f163dccf0651e8c1fac22a29ae583148f8c93b6930ece27cdff45a48b425e8b15b8c8ce749015680a3ae8225b7e8037979ff3d228f396f629
source_x86_64 = https://github.com/cdr/code-server/releases/download/v3.9.2/code-server-3.9.2-linux-amd64.tar.gz
sha512sums_x86_64 = b6f493af264a772dd56393447b158e50578316ceb62593cb4e9838783bb0472a7933fc7c036b03c0daac1ebf1d160cf6262c41b83751fb39cf4748159c2b7c03
source_aarch64 = https://github.com/cdr/code-server/releases/download/v3.9.2/code-server-3.9.2-linux-arm64.tar.gz
sha512sums_aarch64 = bf9863d3877ce692f2a9f1e129f25edb05e7323a49db6dfc0fbd3b5df153f6a0edecc7395c75acda81eb4fdae0ed2cfdffccc8c155785e2bd994ebb58b39462f
source_x86_64 = https://github.com/cdr/code-server/releases/download/v3.9.3/code-server-3.9.3-linux-amd64.tar.gz
sha512sums_x86_64 = f4c489bac2c73a075183f378a3fa65787f10bb9829502956fb8ded6869cf770fdcbf4f5df151d1f5aaf20e79db2188cb95b12b1ea875cc0863a12a295fd8b5a0
source_aarch64 = https://github.com/cdr/code-server/releases/download/v3.9.3/code-server-3.9.3-linux-arm64.tar.gz
sha512sums_aarch64 = e1c0ec1fdebfa67fa372b54de97b8d1b71d912cf496cad5d41376a9770d977948672a048c26baaca81867d6050b04a4a0501ffd822121955b6e8fe279a704533

pkgname = code-server

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
!.SRCINFO
!.gitignore
!README.md
!update.sh
6 changes: 3 additions & 3 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Contributor: Anmol <anmol@coder.com>

pkgname=code-server
pkgver=3.9.2
pkgver=3.9.3
pkgrel=1
pkgdesc="VS Code in the browser"
arch=("x86_64" "aarch64")
Expand All @@ -24,8 +24,8 @@ source_aarch64=(
)
sha512sums=('7040df09c7404a56dbbb32e09d04ead3b622773520feae19c6710656cef46ca5d79b1972bfebb931e309e495d041b9938cd6a51c39fc0f8f6133dfe711be9280'
'ab8e679c05f6184f163dccf0651e8c1fac22a29ae583148f8c93b6930ece27cdff45a48b425e8b15b8c8ce749015680a3ae8225b7e8037979ff3d228f396f629')
sha512sums_x86_64=('b6f493af264a772dd56393447b158e50578316ceb62593cb4e9838783bb0472a7933fc7c036b03c0daac1ebf1d160cf6262c41b83751fb39cf4748159c2b7c03')
sha512sums_aarch64=('bf9863d3877ce692f2a9f1e129f25edb05e7323a49db6dfc0fbd3b5df153f6a0edecc7395c75acda81eb4fdae0ed2cfdffccc8c155785e2bd994ebb58b39462f')
sha512sums_x86_64=('f4c489bac2c73a075183f378a3fa65787f10bb9829502956fb8ded6869cf770fdcbf4f5df151d1f5aaf20e79db2188cb95b12b1ea875cc0863a12a295fd8b5a0')
sha512sums_aarch64=('e1c0ec1fdebfa67fa372b54de97b8d1b71d912cf496cad5d41376a9770d977948672a048c26baaca81867d6050b04a4a0501ffd822121955b6e8fe279a704533')

package() {
if [[ $(uname -m) == x86_64 ]]; then
Expand Down
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,9 @@ Previously maintained by [KSXGitHub](https://github.com/KSXGitHub)

Make sure you run these commands on an Arch machine. If you're a Coder employee, we suggest using your dogfooding environment.

1. Update the `pkgver` in `PKGBUILD` to the latest version
2. Run `updpkgsums` to update the sha256 sums
- If you don't have it installed, run `sudo pacman -S pacman-contrib`
3. Update the `.SRCINFO` by running:
```bash
# This is the file that is used by the AUR to show package info.
makepkg --printsrcinfo > .SRCINFO
```
4. Push changes to GitHub: `git push`
5. Push changes to `aur`: `git push aur`
1. Run `sh update.sh` and type in the new version
1. Push changes to GitHub: `git push`
1. Push changes to `aur`: `git push aur`
- If you don't have this set up, run `git remote add aur ssh://aur@aur.archlinux.org/code-server.git`
- Run `git push aur`

Expand Down
46 changes: 46 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/usr/bin/env bash
# Description: This is a script to update the version
# Run it with `sh update.sh` and it will do the following:
# 1. Update the `pkgver` in `PKGBUILD` to the latest version
# 2. Run `updpkgsums` to update the sha256 sums
# - If you don't have it installed, run `sudo pacman -S pacman-contrib`
# 3. Update the `.SRCINFO` by running:
# ```bash
# # This is the file that is used by the AUR to show package info.
# makepkg --printsrcinfo > .SRCINFO
# ```
# 4. Push changes to GitHub: `git push`
# If you want to perform a dry run of this script run DRY_RUN=1 yarn release:prep

set -euo pipefail

main() {
# Check that they have updpkgsums installed
if ! command -v updpkgsums &>/dev/null; then
echo "updpkgsums could not be found."
echo "This is needed to update the sha256 sums"
echo -e "Install with: sudo pacman -S packman-contrib"
exit
fi

ls
echo $(grep "pkgver=" PKGBUILD)
CODE_SERVER_CURRENT_VERSION=$(grep "pkgver=" PKGBUILD | cut -d "=" -f2-)
# Ask which version we should update to
# In the future, we'll automate this and determine the latest version automatically
echo "Current version: ${CODE_SERVER_CURRENT_VERSION}"

read -r -p "What version of code-server do you want to update to?"$'\n' CODE_SERVER_VERSION_TO_UPDATE

echo -e "Great! We'll update to $CODE_SERVER_VERSION_TO_UPDATE\n"

sed -i "s/$CODE_SERVER_CURRENT_VERSION/$CODE_SERVER_VERSION_TO_UPDATE/" PKGBUILD

updpkgsums

makepkg --printsrcinfo > .SRCINFO

echo "All updated!"
}

main "$@"