Skip to content

Commit f8dfa91

Browse files
committed
edit(cross): remove echo
1 parent c4944a7 commit f8dfa91

2 files changed

Lines changed: 1 addition & 34 deletions

File tree

cross-platform/build.sh

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,69 +11,48 @@ set -e
1111
# - MOVING_TAG: Moving tag (latest/dev)
1212
# =========================================
1313

14-
echo "🏗️ Starting build process..."
1514
cd ../../app
1615

1716
# --- Detect OS ---
1817
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
1918
OS_TYPE="ubuntu"
20-
echo "🐧 Detected Ubuntu/Linux"
2119
elif [[ "$OSTYPE" == "darwin"* ]]; then
2220
OS_TYPE="macos"
23-
echo "🍎 Detected macOS"
2421
else
25-
echo "❌ Unsupported OS: $OSTYPE"
2622
exit 1
2723
fi
2824

2925
# --- Ensure Node.js & npm ---
3026
if ! command -v npm &> /dev/null; then
31-
echo "📦 Installing Node.js..."
3227
if [ "$OS_TYPE" = "ubuntu" ]; then
3328
sudo apt-get update
3429
sudo apt-get install -y nodejs npm
3530
elif [ "$OS_TYPE" = "macos" ]; then
3631
if ! command -v brew &> /dev/null; then
37-
echo "🍺 Installing Homebrew..."
38-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
32+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
3933
eval "$(/opt/homebrew/bin/brew shellenv)"
4034
fi
4135
brew install node
4236
fi
43-
else
44-
echo "📦 Node.js already installed."
4537
fi
4638

4739
# --- Ensure Flutter ---
4840
FLUTTER_DIR="$HOME/flutter"
4941

5042
if ! command -v flutter &> /dev/null; then
51-
echo "🕊️ Installing Flutter to $FLUTTER_DIR ..."
5243
git clone -q https://github.com/flutter/flutter.git -b stable "$FLUTTER_DIR"
53-
else
54-
echo "🕊️ Flutter already installed."
5544
fi
5645

5746
export PATH="$PATH:$FLUTTER_DIR/bin"
5847

5948
# --- Flutter build steps ---
6049
cd lam7a
61-
echo "📦 Fetching dependencies..."
6250
flutter pub get --verbose
6351

64-
echo "📱 Building Android APK..."
6552
flutter build apk --release --verbose
6653

6754
# --- Platform-specific builds ---
6855
if [ "$OS_TYPE" = "macos" ]; then
69-
echo "🍎 Building iOS app..."
7056
flutter build ipa --release --no-codesign
71-
echo "✅ iOS IPA built successfully!"
72-
echo "📦 Path: build/ios/ipa/app-release.ipa"
73-
elif [ "$OS_TYPE" = "ubuntu" ]; then
74-
echo "🐧 Ubuntu build complete (Android APK built)."
75-
echo "📦 Path: build/app/outputs/flutter-apk/app-release.apk"
7657
fi
7758

78-
echo ""
79-
echo "✅ Build process completed successfully!"

cross-platform/deploy.sh

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ set -e
55
# Ubuntu: Builds and uploads APK
66
# macOS: Builds and uploads IPA
77

8-
echo "🚀 Starting deployment..."
98

109
# Navigate to app directory
1110
cd ../../app/lam7a
@@ -17,18 +16,15 @@ fi
1716

1817
# Create release tag
1918
RELEASE_TAG="${COMMIT_TAG}-${ENV_TAG}"
20-
echo "📦 Release: ${RELEASE_TAG}"
2119

2220
# Install GitHub CLI if needed
2321
if ! command -v gh &> /dev/null; then
2422
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
25-
echo "📥 Installing GitHub CLI..."
2623
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
2724
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
2825
sudo apt-get update > /dev/null 2>&1
2926
sudo apt-get install gh -y > /dev/null 2>&1
3027
elif [[ "$OSTYPE" == "darwin"* ]]; then
31-
echo "📥 Installing GitHub CLI..."
3228
brew install gh
3329
fi
3430
fi
@@ -49,29 +45,21 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
4945
# Ubuntu - Upload APK
5046
APK_PATH="build/app/outputs/flutter-apk/app-release.apk"
5147
if [ -f "$APK_PATH" ]; then
52-
echo "📱 Uploading Android APK..."
5348
gh release upload "${RELEASE_TAG}" "$APK_PATH" \
5449
--repo "${OWNER_NAME}/${REPO_NAME}" \
5550
--clobber
56-
echo "✅ APK uploaded"
5751
else
58-
echo "❌ APK not found at $APK_PATH"
5952
exit 1
6053
fi
6154

6255
elif [[ "$OSTYPE" == "darwin"* ]]; then
6356
# macOS - Upload IPA
6457
IPA_PATH="build/ios/ipa/lam7a.ipa"
6558
if [ -f "$IPA_PATH" ]; then
66-
echo "🍎 Uploading iOS IPA..."
6759
gh release upload "${RELEASE_TAG}" "$IPA_PATH" \
6860
--repo "${OWNER_NAME}/${REPO_NAME}" \
6961
--clobber
70-
echo "✅ IPA uploaded"
7162
else
72-
echo "❌ IPA not found at $IPA_PATH"
7363
exit 1
7464
fi
7565
fi
76-
77-
echo "🎉 Done!"

0 commit comments

Comments
 (0)