\ No newline at end of file
diff --git a/build.sh b/build.sh
index 8fe0665..c6da1e8 100755
--- a/build.sh
+++ b/build.sh
@@ -19,6 +19,9 @@ fi
set -e
set -x
+# clear output folders first, so that they are empty for failed builds
+rm -rf ./build/*
+rm -rf ./app/src/main/assets/*
@@ -40,12 +43,18 @@ find -name '*.jp*g' -o -name '*.png' | xargs exiftool -all= -overwrite_original
npx prettier --write src/
npx jest
-rm -rf build/*
+
+# Actual js app build
npx parcel build src/index.html --dist-dir build
-rm -rf ./app/src/main/assets/*
+
+# Add public files to the web version, but not to the apk
cp public/* build
-rm -rf ./app/src/main/assets/*
+
+# Add only index.html file to the apk, it should be enough
cp build/index.html ./app/src/main/assets/
-# generate signed apk
-./gradlew assembleRelease
\ No newline at end of file
+# generate signed apk for itch.io
+./gradlew assembleRelease
+
+# generate signed bundle for play store
+./gradlew bundleRelease
diff --git a/dist/index.html b/dist/index.html
index faf7f77..6ae3611 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -1494,7 +1494,7 @@ const upgrades = (0, _upgrades.rawUpgrades).map((u)=>({
}));
},{"./data/palette.json":"ktRBU","./data/levels.json":"8JSUc","./data/version.json":"iyP6E","./upgrades":"1u3Dx","./getLevelBackground":"7OIPf","./levelIcon":"6rQoT","@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}],"iyP6E":[function(require,module,exports,__globalThis) {
-module.exports = JSON.parse("\"29062687\"");
+module.exports = JSON.parse("\"29062849\"");
},{}],"1u3Dx":[function(require,module,exports,__globalThis) {
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
diff --git a/src/PWA/sw-b71.js b/src/PWA/sw-b71.js
index c3d39d3..e2fb062 100644
--- a/src/PWA/sw-b71.js
+++ b/src/PWA/sw-b71.js
@@ -1,5 +1,5 @@
// The version of the cache.
-const VERSION = "29062687";
+const VERSION = "29062849";
// The name of the cache
const CACHE_NAME = `breakout-71-${VERSION}`;
diff --git a/src/data/version.json b/src/data/version.json
index df53cd0..f674569 100644
--- a/src/data/version.json
+++ b/src/data/version.json
@@ -1 +1 @@
-"29062687"
+"29062849"