ADDAPPS.md 899 Bytes
Newer Older
Buxdehuda's avatar
Buxdehuda committed
1 2 3 4 5 6 7 8 9
# How to add new apps

## Step 1

Add a new metadata file in `fdroid/metadata`  
Use existing files as a reference or take a look here: [F-Droid Metadata Reference](https://f-droid.org/en/docs/Build_Metadata_Reference/)

## Step 2

Buxdehuda's avatar
Buxdehuda committed
10
Add new download information in [apks.json](apks.json):
Buxdehuda's avatar
Buxdehuda committed
11 12 13

```json
{
Buxdehuda's avatar
Buxdehuda committed
14
  "name": "App",
Buxdehuda's avatar
Buxdehuda committed
15 16 17 18 19 20 21 22 23 24
  "baseUrl": "https://example.org/download/App-{ver}-{arch}.apk",
  "architectures": ["arm", "x86"],
  "version": {
    "url": "https://example.org/versions.json",
    "json": [0, "version"]
  },
  "ignoreErrors": false
}
```

Buxdehuda's avatar
Buxdehuda committed
25
Everything except `name` and `baseUrl` is optional.  
Buxdehuda's avatar
Buxdehuda committed
26
`{ver}` and `{arch}` will get automatically replaced with the corresponding version and all architectures.  
Buxdehuda's avatar
Buxdehuda committed
27 28 29 30 31 32 33
Note that you can use a single `regex` string instead of `json` to query the version.

---

## Clear cache after removal

Add file names in [cleanup.txt](cleanup.txt) to remove them from cache.