Draft the fdroiddata metadata for the F-Droid build
This commit is contained in:
parent
e8bd6acc32
commit
b3f9df7941
2 changed files with 61 additions and 18 deletions
|
|
@ -41,27 +41,18 @@ The unsigned APK is written to
|
||||||
F-Droid should run preparation before its source scan, run the asset build afterward,
|
F-Droid should run preparation before its source scan, run the asset build afterward,
|
||||||
and use its configured Gradle runner for `assembleFdroidRelease`.
|
and use its configured Gradle runner for `assembleFdroidRelease`.
|
||||||
|
|
||||||
The F-Droid recipe can use:
|
[`metadata/social.flotilla.fdroid.yml`](metadata/social.flotilla.fdroid.yml) is the recipe to submit
|
||||||
|
to `fdroiddata`. Preparation installs dependencies before F-Droid's source scan, so the recipe
|
||||||
```yaml
|
scan-ignores `node_modules`, which holds FLOSS build tools such as esbuild and sharp. The build
|
||||||
subdir: android/app
|
server's JDK is older than the 21 Capacitor needs, so the recipe installs it from Debian trixie,
|
||||||
gradle:
|
along with Node from nodejs.org at a pinned checksum. None of that has been through `fdroid build`
|
||||||
- fdroid
|
yet.
|
||||||
prebuild:
|
|
||||||
- ../../scripts/fdroid/prepare.sh
|
|
||||||
build:
|
|
||||||
- ../../scripts/fdroid/build.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
## Updates
|
## Updates
|
||||||
|
|
||||||
Stable releases use bare version tags such as `1.9.1`. Proposed update metadata:
|
Stable releases use bare version tags such as `1.9.1`, and the recipe checks tags matching
|
||||||
|
`^[0-9]+\.[0-9]+\.[0-9]+$` against `versionCode` and `versionName` in
|
||||||
```yaml
|
`android/app/build.gradle` at that tag.
|
||||||
UpdateCheckMode: Tags ^[0-9]+\.[0-9]+\.[0-9]+$
|
|
||||||
UpdateCheckData: 'android/app/build.gradle|(?m)^\s*versionCode\s+(\d+)\s*$|.|(?m)^\s*versionName\s+"([^"]+)"\s*$'
|
|
||||||
AutoUpdateMode: Version
|
|
||||||
```
|
|
||||||
|
|
||||||
The initial `fdroiddata` submission must still review scanner exceptions for FLOSS
|
The initial `fdroiddata` submission must still review scanner exceptions for FLOSS
|
||||||
build tools, optional OpenRouter use for a possible `NonFreeNet` declaration, and
|
build tools, optional OpenRouter use for a possible `NonFreeNet` declaration, and
|
||||||
|
|
|
||||||
52
fdroid/metadata/social.flotilla.fdroid.yml
Normal file
52
fdroid/metadata/social.flotilla.fdroid.yml
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
Categories:
|
||||||
|
- Internet
|
||||||
|
License: MIT
|
||||||
|
AuthorName: Jon Staab
|
||||||
|
WebSite: https://app.flotilla.social
|
||||||
|
SourceCode: https://gitea.coracle.social/coracle/flotilla
|
||||||
|
IssueTracker: https://gitea.coracle.social/coracle/flotilla/issues
|
||||||
|
Changelog: https://gitea.coracle.social/coracle/flotilla/src/branch/master/CHANGELOG.md
|
||||||
|
|
||||||
|
AutoName: Flotilla
|
||||||
|
Summary: Digital communities for free people
|
||||||
|
Description: |-
|
||||||
|
Flotilla is a Nostr client for community chat, in the style of Discord. Each space is
|
||||||
|
a relay, and its rooms are NIP-29 groups inside it. It also has encrypted direct
|
||||||
|
messages, threads, a calendar, classifieds and goals.
|
||||||
|
|
||||||
|
This build leaves out Firebase, Google Services and analytics. Instead of push
|
||||||
|
notifications it checks your relays in the background about every 15 minutes, and
|
||||||
|
Android may delay that further.
|
||||||
|
|
||||||
|
RepoType: git
|
||||||
|
Repo: https://gitea.coracle.social/coracle/flotilla.git
|
||||||
|
|
||||||
|
Builds:
|
||||||
|
- versionName: 1.11.1
|
||||||
|
versionCode: 53
|
||||||
|
commit: 04bd38429e60768b21ec2c79c38438b47d97b3a2
|
||||||
|
subdir: android/app
|
||||||
|
sudo:
|
||||||
|
- echo "deb https://deb.debian.org/debian trixie main" > /etc/apt/sources.list.d/trixie.list
|
||||||
|
- apt-get update
|
||||||
|
- apt-get install -y -t trixie openjdk-21-jdk-headless
|
||||||
|
- update-alternatives --auto java
|
||||||
|
- curl -Lo node.tar.xz https://nodejs.org/dist/v22.23.3/node-v22.23.3-linux-x64.tar.xz
|
||||||
|
- echo "df450af89261115ef9f9e3830c3eeb2cc9213b63c720b1af623cb5dcbe2e02de node.tar.xz"
|
||||||
|
| sha256sum -c -
|
||||||
|
- tar xJf node.tar.xz
|
||||||
|
- cp -a node-v22.23.3-linux-x64/. /usr/local/
|
||||||
|
- rm -rf node.tar.xz node-v22.23.3-linux-x64
|
||||||
|
- corepack enable
|
||||||
|
gradle:
|
||||||
|
- fdroid
|
||||||
|
prebuild: ../../scripts/fdroid/prepare.sh
|
||||||
|
scanignore:
|
||||||
|
- node_modules
|
||||||
|
build: ../../scripts/fdroid/build.sh
|
||||||
|
|
||||||
|
AutoUpdateMode: Version
|
||||||
|
UpdateCheckMode: Tags ^[0-9]+\.[0-9]+\.[0-9]+$
|
||||||
|
UpdateCheckData: android/app/build.gradle|(?m)^\s*versionCode\s+(\d+)\s*$|.|(?m)^\s*versionName\s+"([^"]+)"\s*$
|
||||||
|
CurrentVersion: 1.11.1
|
||||||
|
CurrentVersionCode: 53
|
||||||
Loading…
Reference in a new issue