Skip to content

Commit 81775ee

Browse files
authored
Merge pull request coder#7 from cdr/v3.9.3
feat: update to 3.9.3
2 parents 44d1935 + 9611b37 commit 81775ee

File tree

5 files changed

+60
-20
lines changed

5 files changed

+60
-20
lines changed

.SRCINFO

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
pkgbase = code-server
22
pkgdesc = VS Code in the browser
3-
pkgver = 3.9.2
3+
pkgver = 3.9.3
44
pkgrel = 1
55
url = https://github.com/cdr/code-server
66
arch = x86_64
77
arch = aarch64
88
license = MIT
99
depends = glibc
10-
source = code-server-3.9.2-user.service::https://raw.githubusercontent.com/cdr/code-server/v3.9.2/ci/build/code-server-user.service
11-
source = code-server-3.9.2@.service::https://raw.githubusercontent.com/cdr/code-server/v3.9.2/ci/build/code-server@.service
10+
source = code-server-3.9.3-user.service::https://raw.githubusercontent.com/cdr/code-server/v3.9.3/ci/build/code-server-user.service
11+
source = code-server-3.9.3@.service::https://raw.githubusercontent.com/cdr/code-server/v3.9.3/ci/build/code-server@.service
1212
sha512sums = 7040df09c7404a56dbbb32e09d04ead3b622773520feae19c6710656cef46ca5d79b1972bfebb931e309e495d041b9938cd6a51c39fc0f8f6133dfe711be9280
1313
sha512sums = ab8e679c05f6184f163dccf0651e8c1fac22a29ae583148f8c93b6930ece27cdff45a48b425e8b15b8c8ce749015680a3ae8225b7e8037979ff3d228f396f629
14-
source_x86_64 = https://github.com/cdr/code-server/releases/download/v3.9.2/code-server-3.9.2-linux-amd64.tar.gz
15-
sha512sums_x86_64 = b6f493af264a772dd56393447b158e50578316ceb62593cb4e9838783bb0472a7933fc7c036b03c0daac1ebf1d160cf6262c41b83751fb39cf4748159c2b7c03
16-
source_aarch64 = https://github.com/cdr/code-server/releases/download/v3.9.2/code-server-3.9.2-linux-arm64.tar.gz
17-
sha512sums_aarch64 = bf9863d3877ce692f2a9f1e129f25edb05e7323a49db6dfc0fbd3b5df153f6a0edecc7395c75acda81eb4fdae0ed2cfdffccc8c155785e2bd994ebb58b39462f
14+
source_x86_64 = https://github.com/cdr/code-server/releases/download/v3.9.3/code-server-3.9.3-linux-amd64.tar.gz
15+
sha512sums_x86_64 = f4c489bac2c73a075183f378a3fa65787f10bb9829502956fb8ded6869cf770fdcbf4f5df151d1f5aaf20e79db2188cb95b12b1ea875cc0863a12a295fd8b5a0
16+
source_aarch64 = https://github.com/cdr/code-server/releases/download/v3.9.3/code-server-3.9.3-linux-arm64.tar.gz
17+
sha512sums_aarch64 = e1c0ec1fdebfa67fa372b54de97b8d1b71d912cf496cad5d41376a9770d977948672a048c26baaca81867d6050b04a4a0501ffd822121955b6e8fe279a704533
1818

1919
pkgname = code-server
2020

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
!.SRCINFO
44
!.gitignore
55
!README.md
6+
!update.sh

PKGBUILD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Contributor: Anmol <anmol@coder.com>
55

66
pkgname=code-server
7-
pkgver=3.9.2
7+
pkgver=3.9.3
88
pkgrel=1
99
pkgdesc="VS Code in the browser"
1010
arch=("x86_64" "aarch64")
@@ -24,8 +24,8 @@ source_aarch64=(
2424
)
2525
sha512sums=('7040df09c7404a56dbbb32e09d04ead3b622773520feae19c6710656cef46ca5d79b1972bfebb931e309e495d041b9938cd6a51c39fc0f8f6133dfe711be9280'
2626
'ab8e679c05f6184f163dccf0651e8c1fac22a29ae583148f8c93b6930ece27cdff45a48b425e8b15b8c8ce749015680a3ae8225b7e8037979ff3d228f396f629')
27-
sha512sums_x86_64=('b6f493af264a772dd56393447b158e50578316ceb62593cb4e9838783bb0472a7933fc7c036b03c0daac1ebf1d160cf6262c41b83751fb39cf4748159c2b7c03')
28-
sha512sums_aarch64=('bf9863d3877ce692f2a9f1e129f25edb05e7323a49db6dfc0fbd3b5df153f6a0edecc7395c75acda81eb4fdae0ed2cfdffccc8c155785e2bd994ebb58b39462f')
27+
sha512sums_x86_64=('f4c489bac2c73a075183f378a3fa65787f10bb9829502956fb8ded6869cf770fdcbf4f5df151d1f5aaf20e79db2188cb95b12b1ea875cc0863a12a295fd8b5a0')
28+
sha512sums_aarch64=('e1c0ec1fdebfa67fa372b54de97b8d1b71d912cf496cad5d41376a9770d977948672a048c26baaca81867d6050b04a4a0501ffd822121955b6e8fe279a704533')
2929

3030
package() {
3131
if [[ $(uname -m) == x86_64 ]]; then

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,9 @@ Previously maintained by [KSXGitHub](https://github.com/KSXGitHub)
99

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

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

update.sh

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/usr/bin/env bash
2+
# Description: This is a script to update the version
3+
# Run it with `sh update.sh` and it will do the following:
4+
# 1. Update the `pkgver` in `PKGBUILD` to the latest version
5+
# 2. Run `updpkgsums` to update the sha256 sums
6+
# - If you don't have it installed, run `sudo pacman -S pacman-contrib`
7+
# 3. Update the `.SRCINFO` by running:
8+
# ```bash
9+
# # This is the file that is used by the AUR to show package info.
10+
# makepkg --printsrcinfo > .SRCINFO
11+
# ```
12+
# 4. Push changes to GitHub: `git push`
13+
# If you want to perform a dry run of this script run DRY_RUN=1 yarn release:prep
14+
15+
set -euo pipefail
16+
17+
main() {
18+
# Check that they have updpkgsums installed
19+
if ! command -v updpkgsums &>/dev/null; then
20+
echo "updpkgsums could not be found."
21+
echo "This is needed to update the sha256 sums"
22+
echo -e "Install with: sudo pacman -S packman-contrib"
23+
exit
24+
fi
25+
26+
ls
27+
echo $(grep "pkgver=" PKGBUILD)
28+
CODE_SERVER_CURRENT_VERSION=$(grep "pkgver=" PKGBUILD | cut -d "=" -f2-)
29+
# Ask which version we should update to
30+
# In the future, we'll automate this and determine the latest version automatically
31+
echo "Current version: ${CODE_SERVER_CURRENT_VERSION}"
32+
33+
read -r -p "What version of code-server do you want to update to?"$'\n' CODE_SERVER_VERSION_TO_UPDATE
34+
35+
echo -e "Great! We'll update to $CODE_SERVER_VERSION_TO_UPDATE\n"
36+
37+
sed -i "s/$CODE_SERVER_CURRENT_VERSION/$CODE_SERVER_VERSION_TO_UPDATE/" PKGBUILD
38+
39+
updpkgsums
40+
41+
makepkg --printsrcinfo > .SRCINFO
42+
43+
echo "All updated!"
44+
}
45+
46+
main "$@"

0 commit comments

Comments
 (0)