Skip to content

Commit 9abfaca

Browse files
author
Joe Previte
committed
docs: refactor updating instructions
1 parent 138b11a commit 9abfaca

File tree

1 file changed

+10
-21
lines changed

1 file changed

+10
-21
lines changed

README.md

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,17 @@ Previously maintained by [KSXGitHub](https://github.com/KSXGitHub)
77

88
## Updating
99

10-
If there are no breaking changes with the release, updating the package is as
11-
simple as updating `pkgver` in `PKGBUILD` to the new version. Make sure
12-
to run `updpkgsums` to update the sha256 sums.
13-
14-
After updating, run this command on an Arch machine to update the `.SRCINFO`.
15-
This is the file that is used by the AUR to show package info.
10+
Make sure you run these commands on an Arch machine. If you're a Coder employee, we suggest using your dogfooding environment.
1611

12+
1. Update the `pkgver` in `PKGBUILD` to the latest version
13+
1. Run `updpkgsums` to update the sha256 sums
14+
- If you don't have it installed, run `sudo pacman -S pacman-contrib`
15+
1. Update the `.SRCINFO` by running:
1716
```bash
17+
# This is the file that is used by the AUR to show package info.
1818
makepkg --printsrcinfo > .SRCINFO
1919
```
20-
21-
Then, just push to the AUR git repo. You'll have to maintain two remotes in
22-
your `.git/config`. Mine is setup as so
23-
24-
```
25-
[remote "origin"]
26-
url = [email protected]:/cdr/code-server-aur.git
27-
fetch = +refs/heads/*:refs/remotes/origin/*
28-
[remote "aur"]
29-
url = ssh://[email protected]/code-server.git
30-
fetch = +refs/heads/*:refs/remotes/aur/*
31-
```
32-
33-
Then it's as simple as `git push` to push to GitHub and `git push aur` to
34-
update the AUR.
20+
1. Push changes to GitHub
21+
1. Push changes to `aur`
22+
- If you don't have this set up, run `git remote add aur ssh://[email protected]/code-server.git`
23+
- Run `git push aur`

0 commit comments

Comments
 (0)