Skip to content

Commit

Permalink
Install fastlane via bundler and use binstubs
Browse files Browse the repository at this point in the history
  • Loading branch information
mollyIV committed Aug 10, 2024
1 parent e5125e1 commit 206bddc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
14 changes: 4 additions & 10 deletions bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ source "${plugin_dir}/lib/utils.bash"

mkdir -p "$ASDF_DOWNLOAD_PATH"

release_file="$ASDF_DOWNLOAD_PATH/$TOOL_NAME-$ASDF_INSTALL_VERSION.tar.gz"

# Download tar.gz file to the download directory
download_release "$ASDF_INSTALL_VERSION" "$release_file"

# Extract contents of tar.gz file into the download directory
tar -xzf "$release_file" -C "$ASDF_DOWNLOAD_PATH" --strip-components=1 || fail "Could not extract $release_file"

# Remove the tar.gz file since we don't need to keep it
rm "$release_file"
cat > "$ASDF_DOWNLOAD_PATH/Gemfile" <<EOF
source("https://rubygems.org")
gem "fastlane", "= $ASDF_INSTALL_VERSION"
EOF
1 change: 1 addition & 0 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ install_version() {
cd "$install_path"
bundle config --local path "vendor/bundle"
bundle install
bundle binstubs fastlane --force

cd "$working_path"

Expand Down

0 comments on commit 206bddc

Please sign in to comment.