Skip to content

Commit 51c4b8c

Browse files
create build shell script
1 parent 8837e3f commit 51c4b8c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

scripts/build.sh

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
# Exit the script if any command fails
4+
set -e
5+
6+
# Navigate to the project's root directory (if your build.sh is not already there)
7+
cd ../
8+
9+
# Clean the build
10+
echo "Cleaning the build..."
11+
./gradlew clean
12+
13+
# Build the app bundle (Release version)
14+
echo "Building the app bundle..."
15+
./gradlew bundleRelease
16+
17+
# If you also want to generate an APK
18+
echo "Building the APK..."
19+
./gradlew assembleRelease
20+
21+
echo "Build complete."

0 commit comments

Comments
 (0)