Automatic deploy 28994244

This commit is contained in:
Renan LE CARO 2025-02-15 22:24:33 +01:00
parent dfab41c0f4
commit 92fd530115
3 changed files with 6 additions and 5 deletions

View file

@ -15,8 +15,8 @@ android {
applicationId = "me.lecaro.breakout"
minSdk = 21
targetSdk = 34
versionCode = 28994243
versionName = "28994243"
versionCode = 28994244
versionName = "28994244"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary = true

View file

@ -8,14 +8,14 @@
/>
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Breakout 𝟕𝟏</title>
<link rel="stylesheet" href="style.css?v=28994243" />
<link rel="stylesheet" href="style.css?v=28994244" />
<link rel="icon" href="./icon.svg" />
</head>
<body>
<button id="menu"><span> menu</span></button>
<button id="score"></button>
<canvas id="game"></canvas>
<script src="levels.js?v=28994243"></script>
<script src="game.js?v=28994243"></script>
<script src="levels.js?v=28994244"></script>
<script src="game.js?v=28994244"></script>
</body>
</html>

View file

@ -5,6 +5,7 @@ set -x
# Replace the version code and name in gradle for fdroid and play store
versionCode=$(($(date +%s) / 60))
# On macOS you should use -i '' not just -i, but i'm on linux
sed -i -e "s/^[[:space:]]*versionCode = .*/ versionCode = $versionCode/" \
-e "s/^[[:space:]]*versionName = .*/ versionName = \"$versionCode\"/" \
./app/build.gradle.kts