Skip to content

Commit

Permalink
ci(ios): fix missing dart on post build
Browse files Browse the repository at this point in the history
  • Loading branch information
borgoat committed Jan 1, 2025
1 parent 1791561 commit b601925
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ios/ci_scripts/ci_post_clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
set -e

# The default execution directory of this script is the ci_scripts directory.
cd $CI_PRIMARY_REPOSITORY_PATH # change working directory to the root of your cloned repo.
cd "$CI_PRIMARY_REPOSITORY_PATH" # change working directory to the root of your cloned repo.

# Install Flutter using git.
git clone https://github.com/flutter/flutter.git --depth 1 -b stable $HOME/flutter
git clone https://github.com/flutter/flutter.git --depth 1 -b stable "$HOME/flutter"
export PATH="$PATH:$HOME/flutter/bin"

# Install Flutter artifacts for iOS (--ios), or macOS (--macos) platforms.
Expand Down
7 changes: 5 additions & 2 deletions ios/ci_scripts/ci_post_xcodebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
set -e

# The default execution directory of this script is the ci_scripts directory.
cd $CI_PRIMARY_REPOSITORY_PATH # change working directory to the root of your cloned repo.
cd "$CI_PRIMARY_REPOSITORY_PATH" # change working directory to the root of your cloned repo.

# Run Sentry dart plugin.
# Make Flutter and Dart available in the PATH (it was already installed in the ci_post_clone.sh script)
export PATH="$PATH:$HOME/flutter/bin"

# Run Sentry Dart plugin to upload source maps and debug symbols to Sentry.
dart run sentry_dart_plugin

exit 0
Expand Down

0 comments on commit b601925

Please sign in to comment.