blob: 0e0faa1260dc4622a1eca4eeb509ff1312367f9e (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Android release scripts
Currently there are two release scripts that deal with different parts of the android release process.
## `github-release`
Download and verifies a release from releases.mullvad.net and push it to gihub with a changelog.
### Prequisites
This script requires `sequoia-pgp` and `GitHub CLI`.
See https://github.com/cli/cli#installation for more detailed instructions on how to install `GitHub CLI`.
#### Install dependencies
##### MacOS
```bash
brew install sequoia-sq sequoia-sqv gh
```
##### Linux (Debian/Ubuntu)
```bash
sudo apt install sq sqv gh
```
#### Usage
Checkout the release branch and make sure you are on the latest commit.
Then run the following command:
```bash
android/scripts/release/github-release
```
It will ask you to make any final changes to the changelog. After that it will publish a draft to github.
## `release`
Add and remove supported versions and set the latest version.
### Prequisites
This script requires `rust` and access to the build server.
It is possible change supported versions and latest version without using rust by calling
`publish-metadata-to-api` directly, but this requires manually downloading and editing the metadata files.
#### Usage
##### Add supported version
To add a supported version to the list use the following command:
```bash
/android/scripts/release/release app-build-linux3 cdn.mullvad.net --add-release [version]
```
The script will display a diff, check that it looks good and press enter to continue.
##### Remove supported version
To remove a supported version from the list use the following command:
```bash
/android/scripts/release/release app-build-linux3 cdn.mullvad.net --remove-release [version]
```
The script will display a diff, check that it looks good and press enter to continue.
##### Set latest stable
To set the latest stable version use the following command:
```bash
/android/scripts/release/release app-build-linux3 cdn.mullvad.net --set-latest-stable [version]
```
**NOTE:** A version needs to be supported to be set as latest.
The script will display a diff, check that it looks good and press enter to continue.
|