Compare commits

..

10 Commits

Author SHA1 Message Date
2ca09bbdf0 Merge branch 'master' of http://synbox.ruv.wtf:8418/litruv/cinny-mobile
Some checks failed
Build / increment-version (push) Failing after 6s
Build / build-and-release (push) Failing after 58s
2026-04-17 19:28:10 +10:00
c39a0ae248 feat: add GitHub release creation and asset upload to build process 2026-04-17 19:28:08 +10:00
GitHub Actions
1e848bc622 chore: bump version to 4.11.67 [skip ci] 2026-04-15 12:14:35 +00:00
3fe00eb3d7 Merge branch 'master' of http://synbox.ruv.wtf:8418/litruv/cinny-mobile
Some checks failed
Build / increment-version (push) Successful in 7s
Build / build-and-release (push) Failing after 51s
2026-04-15 22:14:24 +10:00
85851d7288 fix: update version to 4.11.66 and streamline Android build scripts 2026-04-15 22:14:14 +10:00
GitHub Actions
47f1b2c40f chore: bump version to 4.11.83 [skip ci] 2026-04-07 12:48:26 +00:00
d04c1e8f77 fix: rename build job and streamline APK upload process
All checks were successful
Build / increment-version (push) Successful in 6s
Build / build-and-release (push) Successful in 4m45s
2026-04-07 22:48:17 +10:00
GitHub Actions
76a19f7e02 chore: bump version to 4.11.82 [skip ci] 2026-04-07 10:57:10 +00:00
3d35ea5930 Merge branch 'master' of http://synbox.ruv.wtf:8418/litruv/cinny-mobile
Some checks failed
Build / increment-version (push) Successful in 5s
Build / build-android (push) Failing after 4m37s
Build / create-release (push) Has been skipped
2026-04-07 20:57:03 +10:00
9fe79de3b5 fix: update upload artifact action to v4 and adjust APK naming convention 2026-04-07 20:57:02 +10:00
4 changed files with 84 additions and 61 deletions

View File

@@ -47,7 +47,7 @@ jobs:
git commit -m "chore: bump version to ${{ steps.bump.outputs.VERSION }} [skip ci]"
git push
build-android:
build-and-release:
runs-on: ubuntu-latest
needs: increment-version
if: always() && (needs.increment-version.outputs.should_build == 'true' || needs.increment-version.result == 'skipped')
@@ -56,6 +56,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: false
ref: ${{ github.ref_name }}
@@ -92,28 +93,6 @@ jobs:
- name: Apply overlay and build Android APK
run: npm run android:apk:linux
- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: Paarrot-Android-debug.apk
path: android/app/build/outputs/apk/debug/app-debug.apk
create-release:
runs-on: ubuntu-latest
needs: [increment-version, build-android]
if: always() && needs.build-android.result == 'success'
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref_name }}
- name: Pull latest (after version bump)
if: github.ref == 'refs/heads/master'
run: git pull origin master
- name: Get version
id: version
run: |
@@ -143,21 +122,6 @@ jobs:
git tag -a "v${{ steps.version.outputs.VERSION }}" -m "Release v${{ steps.version.outputs.VERSION }}"
git push origin "v${{ steps.version.outputs.VERSION }}"
- name: Download all artifacts
uses: actions/download-artifact@v3
with:
path: artifacts
- name: Prepare release files
run: |
mkdir -p release-files
find artifacts -type f \( -name "*.exe" -o -name "*.AppImage" -o -name "*.nupkg" -o -name "RELEASES*" \) -exec cp {} release-files/ \;
APK=$(find artifacts -type f -name "*.apk" | head -1)
if [ -n "$APK" ]; then
cp "$APK" "release-files/Paarrot.apk"
fi
ls -la release-files/
- name: Create or Update Release
env:
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -167,6 +131,13 @@ jobs:
API_BASE="http://synbox.ruv.wtf:8418/api/v1"
REPO="litruv/cinny-mobile"
APK=$(find android/app/build/outputs/apk/debug -name "Paarrot-*.apk" | head -1)
if [ -z "$APK" ]; then
echo "No APK found!"
exit 1
fi
echo "Found APK: $APK"
RELEASE_ID=$(curl -s -H "Authorization: token ${GITEA_TOKEN}" \
"${API_BASE}/repos/${REPO}/releases/tags/${TAG_NAME}" | jq -r '.id // empty')
@@ -188,16 +159,69 @@ jobs:
done
fi
echo "Uploading assets..."
for FILE in release-files/*; do
FILENAME=$(basename "$FILE")
echo "Uploading ${FILENAME}..."
curl -s -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/octet-stream" \
--data-binary "@${FILE}" \
"${API_BASE}/repos/${REPO}/releases/${RELEASE_ID}/assets?name=${FILENAME}"
echo ""
done
FILENAME="Paarrot-${VERSION}.apk"
echo "Uploading ${FILENAME}..."
curl -s -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/octet-stream" \
--data-binary "@${APK}" \
"${API_BASE}/repos/${REPO}/releases/${RELEASE_ID}/assets?name=${FILENAME}"
echo ""
echo "Release complete!"
- name: Create or Update GitHub Release
env:
GH_TOKEN: ${{ secrets.GHTOKEN }}
run: |
VERSION="${{ steps.version.outputs.VERSION }}"
TAG_NAME="v${VERSION}"
API_BASE="https://api.github.com"
REPO="Paarrot/Paarrot-Mobile"
APK=$(find android/app/build/outputs/apk/debug -name "Paarrot-*.apk" | head -1)
if [ -z "$APK" ]; then
echo "No APK found for GitHub release!"
exit 1
fi
echo "Found APK: $APK"
RELEASE_RESPONSE=$(curl -s -H "Authorization: token ${GH_TOKEN}" \
-H "Accept: application/vnd.github+json" \
"${API_BASE}/repos/${REPO}/releases/tags/${TAG_NAME}")
RELEASE_ID=$(echo "$RELEASE_RESPONSE" | jq -r '.id // empty')
if [ -z "$RELEASE_ID" ]; then
echo "Creating new GitHub release for ${TAG_NAME}..."
RELEASE_RESPONSE=$(curl -s -X POST \
-H "Authorization: token ${GH_TOKEN}" \
-H "Accept: application/vnd.github+json" \
-H "Content-Type: application/json" \
-d "{\"tag_name\": \"${TAG_NAME}\", \"name\": \"Release ${TAG_NAME}\", \"body\": \"Release ${VERSION}\", \"draft\": false, \"prerelease\": false}" \
"${API_BASE}/repos/${REPO}/releases")
RELEASE_ID=$(echo "$RELEASE_RESPONSE" | jq -r '.id')
echo "Created GitHub release with ID: ${RELEASE_ID}"
else
echo "GitHub release exists with ID: ${RELEASE_ID}, deleting existing assets..."
ASSETS=$(curl -s -H "Authorization: token ${GH_TOKEN}" \
-H "Accept: application/vnd.github+json" \
"${API_BASE}/repos/${REPO}/releases/${RELEASE_ID}/assets" | jq -r '.[].id')
for ASSET_ID in $ASSETS; do
curl -s -X DELETE \
-H "Authorization: token ${GH_TOKEN}" \
-H "Accept: application/vnd.github+json" \
"${API_BASE}/repos/${REPO}/releases/assets/${ASSET_ID}"
done
fi
FILENAME="Paarrot-${VERSION}.apk"
echo "Uploading ${FILENAME} to GitHub..."
curl -s -X POST \
-H "Authorization: token ${GH_TOKEN}" \
-H "Accept: application/vnd.github+json" \
-H "Content-Type: application/octet-stream" \
--data-binary "@${APK}" \
"https://uploads.github.com/repos/${REPO}/releases/${RELEASE_ID}/assets?name=${FILENAME}"
echo ""
echo "GitHub release complete!"

2
cinny

Submodule cinny updated: 0659f3c1b0...9eb5e4fa32

View File

@@ -1,6 +1,6 @@
import { Capacitor, registerPlugin } from '@capacitor/core';
import type { MatrixClient } from 'matrix-js-sdk';
interface MatrixBackgroundSyncPlugin {
/** Start the background sync service with the given Matrix credentials. */
start(options: {

View File

@@ -1,22 +1,21 @@
{
"name": "paarrot",
"version": "4.11.81",
<<<<<<< HEAD
"version": "4.11.67",
=======
"version": "4.11.83",
>>>>>>> 47f1b2c40f38dfeb985a1965fe4222614cdfcf23
"description": "Paarrot - A Matrix client based on Cinny",
"engines": {
"node": ">=18.0.0"
},
"scripts": {
"android:prepare": "node scripts/apply-overlay.mjs && cd cinny && npm install && npm run build && npx cap sync android",
"android:patch-settings:linux": "sed -i 's|../node_modules/|../cinny/node_modules/|g' android/capacitor.settings.gradle",
"android:restore": "node scripts/restore-cinny.mjs",
"android:prepare": "node -e \"require('fs').copyFileSync('config.json', 'cinny/config.json')\" && cd cinny && npm run build && npx cap sync android",
"android:open": "cd cinny && npx cap open android",
"android:run": "cd cinny && npx cap run android",
"android:apk": "npm run android:prepare && cd cinny/android && gradlew.bat assembleDebug && cd ../.. && node scripts/restore-cinny.mjs",
"android:apk:linux": "npm run android:prepare && npm run android:patch-settings:linux && cd cinny/android && ./gradlew assembleDebug && cd ../.. && node scripts/restore-cinny.mjs",
"android:apk:release": "npm run android:prepare && cd cinny/android && gradlew.bat assembleRelease && cd ../.. && node scripts/restore-cinny.mjs",
"android:apk:release:linux": "npm run android:prepare && npm run android:patch-settings:linux && cd cinny/android && ./gradlew assembleRelease && cd ../.. && node scripts/restore-cinny.mjs",
"android:aab": "npm run android:prepare && cd cinny/android && gradlew.bat bundleRelease && cd ../.. && node scripts/restore-cinny.mjs",
"android:aab:linux": "npm run android:prepare && npm run android:patch-settings:linux && cd cinny/android && ./gradlew bundleRelease && cd ../.. && node scripts/restore-cinny.mjs"
"android:apk": "npm run android:prepare && cd cinny/android && gradlew.bat assembleDebug",
"android:apk:release": "npm run android:prepare && cd cinny/android && gradlew.bat assembleRelease",
"android:aab": "npm run android:prepare && cd cinny/android && gradlew.bat bundleRelease"
},
"keywords": [],
"author": {