modified bash file
This commit is contained in:
parent
90c76a1799
commit
7d9eb3fad2
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# ===============================
|
# ===============================
|
||||||
# Flutter APK Build Script (AAB Disabled)
|
# Flutter APK & AAB Build Script
|
||||||
# ===============================
|
# ===============================
|
||||||
|
|
||||||
# Exit immediately if a command exits with a non-zero status
|
# Exit immediately if a command exits with a non-zero status
|
||||||
@ -30,19 +30,19 @@ flutter pub get
|
|||||||
# ==============================
|
# ==============================
|
||||||
# Step 3: Build AAB (Commented)
|
# Step 3: Build AAB (Commented)
|
||||||
# ==============================
|
# ==============================
|
||||||
# echo -e "${CYAN}🏗 Building AAB file...${NC}"
|
echo -e "${CYAN}🏗 Building AAB file...${NC}"
|
||||||
# flutter build appbundle --release
|
flutter build appbundle --release
|
||||||
|
|
||||||
# Step 4: Build APK
|
# Step 4: Build APK
|
||||||
echo -e "${CYAN}🏗 Building APK file...${NC}"
|
echo -e "${CYAN}🏗 Building APK file...${NC}"
|
||||||
flutter build apk --release
|
flutter build apk --release
|
||||||
|
|
||||||
# Step 5: Show output paths
|
# Step 5: Show output paths
|
||||||
# AAB_PATH="$BUILD_DIR/bundle/release/app-release.aab"
|
AAB_PATH="$BUILD_DIR/bundle/release/app-release.aab"
|
||||||
APK_PATH="$BUILD_DIR/apk/release/app-release.apk"
|
APK_PATH="$BUILD_DIR/apk/release/app-release.apk"
|
||||||
|
|
||||||
echo -e "${GREEN}✅ Build completed successfully!${NC}"
|
echo -e "${GREEN}✅ Build completed successfully!${NC}"
|
||||||
# echo -e "${YELLOW}📍 AAB file: ${CYAN}$AAB_PATH${NC}"
|
echo -e "${YELLOW}📍 AAB file: ${CYAN}$AAB_PATH${NC}"
|
||||||
echo -e "${YELLOW}📍 APK file: ${CYAN}$APK_PATH${NC}"
|
echo -e "${YELLOW}📍 APK file: ${CYAN}$APK_PATH${NC}"
|
||||||
|
|
||||||
# Optional: open the folder (Mac/Linux)
|
# Optional: open the folder (Mac/Linux)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user