From 4468c029db9d4f3aabdeaab7deba842132606556 Mon Sep 17 00:00:00 2001 From: Renan LE CARO Date: Sat, 15 Feb 2025 20:49:00 +0100 Subject: [PATCH] Automatic deploy 28994149 --- app/build.gradle.kts | 4 ++-- app/src/main/assets/index.html | 6 +++--- breakout.zip | Bin 58186 -> 58186 bytes deploy.sh | 15 +++++++-------- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index fe4fc8c..12e3bce 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -15,8 +15,8 @@ android { applicationId = "me.lecaro.breakout" minSdk = 21 targetSdk = 34 - versionCode = 28994147 - versionName = "2025-02-15 20:47:26" + versionCode = 28994149 + versionName = "28994149" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { useSupportLibrary = true diff --git a/app/src/main/assets/index.html b/app/src/main/assets/index.html index 750228b..aea6e91 100644 --- a/app/src/main/assets/index.html +++ b/app/src/main/assets/index.html @@ -8,14 +8,14 @@ /> Breakout 𝟕𝟏 - + - - + + diff --git a/breakout.zip b/breakout.zip index b5db5345857d8549bc9f5ec1d232dae6e32a119a..b28c9f67600a88cd7ee12a27b7c0ec037863aad4 100644 GIT binary patch delta 337 zcmV-X0j~ba#skX61F)b>Dea|CTH66K=2`&&0DJ-f015yc0BLSyWq2-VbZu-^R0#kB zPVca1PVbY+Odo#=LI@-~2#`1dmDsw@keK=r>`6*b!3v2D;tHIJ6L18aM@hwF5oPB8 zznRR~VF!hixUGRyXmmbf-HT{pOHRSkd`1YXKongNLjx#?tb`AMoGx#!lT%8vJ+qGp zvBChSt%6PMJkn8>&LY@YxKRaGynt3oNcv<>lvSvNPJ(|F8u($lm=hx&m1)er)CBN- zE>=-m44wA}h2PH&UtMRMg#El@?CP7^5LP?RtYj|w&9mmb90HAp^R-=5?1 z#InH{Ag%10c+i{%+-e9F08&zUxEqyJhH&2UlcTfasr6K);`euansr$k+HxdWwmWFH ja>aHmUNy7kO&XL4?WIpz+W|7>lL+D|0#5IDXFDTT44eq+FAhs0DJ-f015yc0BLSyWq2-VbZu-^R0#kB z&hD^h(C(ATOdo$*AtaFOAVA^-RATEoLt^SjuqP=!1uG;rh%0a=PQVdx9wilzMUUA?cGjQC6W6IthPLXyD6qF(*bmD$|%lsR`iw zT&$zC7&;#g5cj}3frm!5oZcp@i{#3gTA+$NohDGgp(tS*9u;cHFFlBjYmj`tzCFk1 ziDiQ^Kw8-i@t`>kxYH0S0Hmbya5pNc4B@=x%agO?sr6K);`jG_nsr$k+HxdWwm)dL jcExTiUN^JmO&XL4sijX^VFDrAlL+D|0?zKUGvXHkG&Yaf diff --git a/deploy.sh b/deploy.sh index 9250c5a..83a8dd6 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,19 +1,18 @@ #!/bin/bash -# Invalidate web cache -# Generate a random number between 1000 and 9999 -random_number=$(shuf -i 1000-9999 -n 1) -# Use sed to replace the pattern with the random number -sed -i "s/\?v=[0-9]*/\?v=$random_number/g" ./app/src/main/assets/index.html - # Replace the version code and name in gradle for fdroid and play store versionCode=$(($(date +%s) / 60)) -versionName=$(date +"%Y-%m-%d %H:%M:%S") sed -i '' -e "s/^[[:space:]]*versionCode = .*/ versionCode = $versionCode/" \ - -e "s/^[[:space:]]*versionName = .*/ versionName = \"$versionName\"/" \ + -e "s/^[[:space:]]*versionName = .*/ versionName = \"$versionCode\"/" \ ./app/build.gradle.kts + + +# Invalidate web cache +sed -i "s/\?v=[0-9]*/\?v=$versionCode/g" ./app/src/main/assets/index.html + + git add . git commit -m "Automatic deploy $versionCode" git tag -f $versionCode