mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-04 09:58:57 +00:00
* Remove pod-install-m1 npm script Apple Silicon runs 'pod install' natively (as CI's arm64 runners already do), so the separate pod-install-m1 script and its arch -x86_64 (Rosetta) workaround are no longer needed. Point postinstall.sh, build.sh, and intune-init.sh at the single pod-install script. * Remove ios-gems-m1 npm script bundle install runs natively on Apple Silicon, so the separate ios-gems-m1 script and its arch -arm64 are unnecessary. With pods and gems both unified, build.sh's installGemsAndPodsM1 became identical to installGemsAndPods, so collapse them and drop the per-arch selector. * Propagate pod-install/intune:init failures in postinstall
48 lines
1.3 KiB
Bash
Executable File
48 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
# See LICENSE.txt for license information.
|
|
|
|
set -e
|
|
|
|
echo "🔐 Initializing Intune development environment..."
|
|
echo ""
|
|
|
|
# Check if submodule is initialized
|
|
if [ ! -e "libraries/@mattermost/intune/.git" ]; then
|
|
echo "📥 Initializing Intune submodule..."
|
|
git submodule update --init --recursive libraries/@mattermost/intune
|
|
else
|
|
echo "✅ Intune submodule already initialized"
|
|
fi
|
|
|
|
# Update submodule to latest
|
|
echo "🔄 Updating Intune submodule..."
|
|
git submodule update --remote libraries/@mattermost/intune
|
|
|
|
# Display submodule info
|
|
cd libraries/@mattermost/intune
|
|
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
|
COMMIT=$(git rev-parse --short HEAD)
|
|
echo "📦 Intune submodule:"
|
|
echo " Branch: $BRANCH"
|
|
echo " Commit: $COMMIT"
|
|
cd ../..
|
|
|
|
# Create symlink in node_modules
|
|
echo "🔗 Linking Intune module..."
|
|
npm run intune:link
|
|
|
|
# Install pods with Intune
|
|
echo "📦 Installing iOS dependencies with Intune..."
|
|
INTUNE_ENABLED=1 npm run pod-install
|
|
|
|
echo ""
|
|
echo "✅ Intune development environment ready!"
|
|
echo ""
|
|
echo "⚠️ IMPORTANT: Your local Podfile.lock now includes Intune pods."
|
|
echo " Do NOT commit these changes. The pre-commit hook will block them."
|
|
echo ""
|
|
echo "To disable Intune: npm run intune:disable"
|
|
echo "To check status: npm run intune:status"
|
|
echo ""
|