blob: 60d4bac9ac3fd4509804a1759b655b3648160b13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# New ddev release:
* Bump `pkgver` key in `PKGBUILD`
* Update the `sha256sums` key appropriately
* Do _not_ bump `pkgrel` key
* `makepkg --printsrcinfo > .SRCINFO`
* Test that the package builds properly: `makepkg -s`
* If everything is good, `git add .SRCINFO PKGBUILD && git commit -m "Bumping ddev-bin version"`
* `git push`
# Using Docker to perform the release
If you're not running Arch as your main OS, you can perform the `makepkg` steps
inside of a docker container like so:
```bash
docker run --rm --mount type=bind,source=$(pwd),target=/tmp/ddev-bin --workdir=/tmp/ddev-bin -it --platform=linux/amd64 archlinux:latest bash
```
Once the container comes up, you'll need to install a couple of things:
```bash
pacman -Sy sudo binutils fakeroot docker docker-compose vim mkcert
```
Edit `/etc/makepkg.conf` to change the OPTIONS line; change `debug` to `!debug`
You need sudo because `makepkg` refuses to run as root. `binutils` and `fakeroot`
are dependencies of `makepkg` that are somehow not installed in the Docker image
by default. `docker` and `docker-compose` are needed as dependencies of the `ddev-bin`
package, but you don't need to do anything special with them other than install
the packages so that `makepkg` doesn't complain.
You need to set a password for `nobody` (set it to `nobody`) because `fakeroot` uses `sudo`:
```bash
passwd nobody
```
Now `sudo -u nobody makepkg -s`; you'll be prompted for the password.
|