feat: build F-Droid repo in CI
- introduce F-Droid repo in CI/CD Fixes: #994 Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>krille/remove-custom-fonts
parent
972615f91d
commit
195b4a6b04
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 263 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 225 KiB |
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 82 KiB |
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 84 KiB |
@ -0,0 +1,4 @@
|
|||||||
|
repo
|
||||||
|
srclibs
|
||||||
|
tmp
|
||||||
|
chat.fluffy.fluffychat
|
@ -0,0 +1,13 @@
|
|||||||
|
repo_url = "https://fluffychat.im/repo/nightly/repo"
|
||||||
|
repo_name = "FluffyChat nightly repo"
|
||||||
|
repo_icon = "fdroid-icon.png"
|
||||||
|
repo_description = """
|
||||||
|
FluffyChat nightly repo
|
||||||
|
"""
|
||||||
|
|
||||||
|
archive_older = 0
|
||||||
|
|
||||||
|
local_copy_dir = "/fdroid"
|
||||||
|
|
||||||
|
keystore = "key.nightly.jks"
|
||||||
|
repo_keyalias = "vmd66783.contaboserver.net"
|
@ -0,0 +1,13 @@
|
|||||||
|
repo_url = "https://fluffychat.im/repo/stable/repo"
|
||||||
|
repo_name = "FluffyChat repo"
|
||||||
|
repo_icon = "fdroid-icon.png"
|
||||||
|
repo_description = """
|
||||||
|
FluffyChat repo
|
||||||
|
"""
|
||||||
|
|
||||||
|
archive_older = 0
|
||||||
|
|
||||||
|
local_copy_dir = "/fdroid"
|
||||||
|
|
||||||
|
keystore = "key.jks"
|
||||||
|
repo_keyalias = "key alias"
|
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
@ -0,0 +1,53 @@
|
|||||||
|
Categories:
|
||||||
|
- Internet
|
||||||
|
- Phone & SMS
|
||||||
|
License: AGPL-3.0-only
|
||||||
|
AuthorName: Famedly
|
||||||
|
SourceCode: https://gitlab.com/famedly/fluffychat
|
||||||
|
IssueTracker: https://gitlab.com/famedly/fluffychat/-/issues
|
||||||
|
Translation: https://hosted.weblate.org/projects/fluffychat/
|
||||||
|
Changelog: https://gitlab.com/ChristianPauly/fluffychat-flutter/-/blob/main/CHANGELOG.md
|
||||||
|
|
||||||
|
AutoName: FluffyChat
|
||||||
|
Summary: "Chat with your friends with FluffyChat.\n"
|
||||||
|
Description: |
|
||||||
|
FluffyChat is an open, nonprofit and cute matrix messenger app for Ubuntu Touch, Android and iOS.
|
||||||
|
|
||||||
|
Open
|
||||||
|
Opensource and open development where everyone can join.
|
||||||
|
|
||||||
|
Nonprofit
|
||||||
|
FluffyChat is donation funded.
|
||||||
|
|
||||||
|
Cute ♥
|
||||||
|
Cute design and many theme settings including a dark mode.
|
||||||
|
|
||||||
|
One-to-one and groupchats
|
||||||
|
Unlimited groups and direct chats.
|
||||||
|
|
||||||
|
Easy
|
||||||
|
FluffyChat is made as simple to use as possible.
|
||||||
|
|
||||||
|
Free
|
||||||
|
Free to use for everyone without ads.
|
||||||
|
|
||||||
|
Decentralized
|
||||||
|
There is no "FluffyChat server" you are forced to use. Use the server you find trustworthy or host
|
||||||
|
your own.
|
||||||
|
|
||||||
|
Compatible
|
||||||
|
Compatible with Riot, Fractal, Nekho and all matrix messengers.
|
||||||
|
|
||||||
|
|
||||||
|
FluffyChat comes with a dream
|
||||||
|
|
||||||
|
Imagine a world where everyone can choose the messenger they like and is still able to chat with
|
||||||
|
all of their friends.
|
||||||
|
A world where there are no companies spying on you when you send selfies to friends and lovers.
|
||||||
|
And a world where apps are made for fluffyness and not for profit. ♥
|
||||||
|
|
||||||
|
RepoType: git
|
||||||
|
Repo: https://gitlab.com/famedly/fluffychat.git
|
||||||
|
|
||||||
|
AutoUpdateMode: None
|
||||||
|
UpdateCheckMode: None
|
@ -0,0 +1,64 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
GITLAB_PROJECT_ID="16112282"
|
||||||
|
|
||||||
|
mkdir fdroid/repo
|
||||||
|
mkdir repo
|
||||||
|
|
||||||
|
git fetch
|
||||||
|
|
||||||
|
cd fdroid
|
||||||
|
|
||||||
|
# building nightly repo
|
||||||
|
|
||||||
|
cp config.nightly.py config.py
|
||||||
|
|
||||||
|
PIPELINES="$(curl https://gitlab.com/api/v4/projects/${GITLAB_PROJECT_ID}/pipelines\?ref=main\&status=success\&order_by=updated_at | jq '.[].id' | head -n3)"
|
||||||
|
|
||||||
|
cp ../build/app/outputs/apk/debug/app-debug.apk repo/fluffychat-latest.apk
|
||||||
|
|
||||||
|
for PIPELINE in $PIPELINES
|
||||||
|
do
|
||||||
|
JOB="$(curl https://gitlab.com/api/v4/projects/${GITLAB_PROJECT_ID}/pipelines/$PIPELINE/jobs | jq -r '.[] | select(.name == "build_android_apk").id')"
|
||||||
|
if [ -n $JOB ]; then
|
||||||
|
URI="https://gitlab.com/api/v4/projects/${GITLAB_PROJECT_ID}/jobs/$JOB/artifacts/build/android/app-release.apk"
|
||||||
|
FILENAME="fluffychat-$PIPELINE.apk"
|
||||||
|
echo "Downloading $FILENAME from $URI ..."
|
||||||
|
wget --output-document="$FILENAME" "$URI"
|
||||||
|
mv "$FILENAME" repo
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
fdroid update --rename-apks
|
||||||
|
mkdir /fdroid && fdroid deploy
|
||||||
|
rm -rf /fdroid
|
||||||
|
cd .. && mkdir public && mv -v /fdroid repo/nightly
|
||||||
|
|
||||||
|
|
||||||
|
# building stable + RC repo
|
||||||
|
|
||||||
|
mkdir /fdroid
|
||||||
|
|
||||||
|
cd fdroid
|
||||||
|
rm -f repo/*.apk
|
||||||
|
|
||||||
|
cp config.stable.py config.py
|
||||||
|
|
||||||
|
PIPELINES="$(curl https://gitlab.com/api/v4/projects/${GITLAB_PROJECT_ID}/pipelines\?scope=tags\&status=success\&order_by=updated_at | jq '.[].id' | head -n3)"
|
||||||
|
|
||||||
|
for PIPELINE in $PIPELINES
|
||||||
|
do
|
||||||
|
JOB="$(curl https://gitlab.com/api/v4/projects/${GITLAB_PROJECT_ID}/pipelines/$PIPELINE/jobs | jq -r '.[] | select(.name == "build_android_apk").id')"
|
||||||
|
if [ -n $JOB ]; then
|
||||||
|
URI="https://gitlab.com/api/v4/projects/${GITLAB_PROJECT_ID}/jobs/$JOB/artifacts/build/android/app-release.apk"
|
||||||
|
FILENAME="fluffychat-$PIPELINE.apk"
|
||||||
|
echo "Downloading $FILENAME from $URI ..."
|
||||||
|
wget --output-document="$FILENAME" "$URI"
|
||||||
|
mv "$FILENAME" repo
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
fdroid update --rename-apks
|
||||||
|
mkdir /fdroid && fdroid deploy
|
||||||
|
rm -rf /fdroid/archive
|
||||||
|
cd .. && mv -v /fdroid repo/stable
|
@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
cp -r android/fastlane fdroid/metadata/chat.fluffy.fluffychat
|
||||||
|
cd fdroid
|
||||||
|
echo $FDROID_KEY | base64 --decode --ignore-garbage > key.jks
|
||||||
|
echo $FDROID_NIGHTLY_KEY | base64 --decode --ignore-garbage > key.nightly.jks
|
||||||
|
echo "keypass=\"${FDROID_KEY_PASS}\"" >> config.stable.py
|
||||||
|
echo "keystorepass=\"${FDROID_KEY_PASS}\"" >> config.stable.py
|
||||||
|
echo "keypass=\"${FDROID_NIGHTLY_KEY_PASS}\"" >> config.nightly.py
|
||||||
|
echo "keystorepass=\"${FDROID_NIGHTLY_KEY_PASS}\"" >> config.nightly.py
|
||||||
|
chmod 600 config.stable.py key.jks config.nightly.py key.nightly.jks
|
||||||
|
cd ..
|
Loading…
Reference in New Issue