Alarmsound geändert

This commit is contained in:
Arnold Ude PC2024 2025-11-25 11:01:11 +01:00
parent ee12a20909
commit 2182ff1fa0
21 changed files with 35 additions and 2 deletions

View File

@ -0,0 +1,5 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background" />
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
<monochrome android:drawable="@mipmap/ic_launcher_monochrome" />
</adaptive-icon>

View File

@ -0,0 +1,5 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background" />
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
<monochrome android:drawable="@mipmap/ic_launcher_monochrome" />
</adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#FFFFFF</color>
</resources>

BIN
assets/alarm.wav Normal file

Binary file not shown.

View File

@ -22,6 +22,7 @@ sed -i "s/^version: .*/version: ${new}/" "$PUBSPEC"
flutter clean flutter clean
flutter pub get flutter pub get
flutter build apk --release flutter build apk --release
mkdir -p release
cp build/app/outputs/flutter-apk/app-release.apk ./release/eggtimer.apk cp build/app/outputs/flutter-apk/app-release.apk ./release/eggtimer.apk
echo "APK built and copied to ./release/eggtimer.apk" echo "APK built and copied to ./release/eggtimer.apk"
GITEA_URL="https://git.ude-consult.de" GITEA_URL="https://git.ude-consult.de"
@ -62,11 +63,24 @@ fi
echo "Release ${VERSION_TAG} erstellt, ID=${release_id}" echo "Release ${VERSION_TAG} erstellt, ID=${release_id}"
APK_FILENAME="eggtimer-${VERSION_TAG}.apk"
# Alte Assets entfernen, damit nur die APK im Release bleibt
existing_assets=$(curl -sS \
-H "Authorization: token ${GITEA_TOKEN}" \
"${GITEA_URL}/api/v1/repos/${OWNER}/${REPO}/releases/${release_id}/assets")
echo "$existing_assets" | jq -r '.[] | [.id, .name] | @tsv' | while IFS=$'\t' read -r asset_id asset_name; do
echo "Entferne altes Asset: ${asset_name}"
curl -sS -X DELETE \
-H "Authorization: token ${GITEA_TOKEN}" \
"${GITEA_URL}/api/v1/repos/${OWNER}/${REPO}/releases/${release_id}/assets/${asset_id}" >/dev/null
done
# 2. APK hochladen # 2. APK hochladen
curl -sS -X POST \ curl -sS -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \ -H "Authorization: token ${GITEA_TOKEN}" \
-F "attachment=@${APK_PATH};filename=eggtimer-${VERSION_TAG}.apk" \ -F "attachment=@${APK_PATH};filename=${APK_FILENAME}" \
"${GITEA_URL}/api/v1/repos/${OWNER}/${REPO}/releases/${release_id}/assets" "${GITEA_URL}/api/v1/repos/${OWNER}/${REPO}/releases/${release_id}/assets"
echo "APK hochgeladen." echo "APK hochgeladen."

5
testrelease.sh Executable file
View File

@ -0,0 +1,5 @@
# Test the release before publishing
flutter emulator --launch Pixel_7
sleep 5s
flutter run