SAN FRANCISCO — When the Giants acquired former National League MVP Kris Bryant moments ahead of Friday’s trade deadline, the organization was hopeful the former Cubs star might be able to make it across the country in time to play a role in Saturday’s game against the Astros.

After the Giants and Bryant arranged travel plans on Friday evening that scheduled him to arrive late on Saturday afternoon in the Bay Area, the team determined it would play one more game without the slugger’s services.

They used Saturday’s matchup with the Houston Astros to give Bryant a preview of what kind of an offense he’d be joining.

With home runs from Donovan Solano, Wilmer Flores, LaMonte Wade Jr., Darin Ruf and Mike Yastrzemski, the Giants overcame a rough start from Alex Wood to pick up an 8-6 victory over Zack Greinke and the Astros.

The power surge came at the end of a four-game home run drought for San Francisco, which marked the longest stretch without a homer in the Gabe Kapler era.

SAN FRANCISCO, CA – JULY 31: San Francisco Giants’ Donovan Solano (7) fields a gourd ball as Darin Ruf (33) races to first base in the third inning of a MLB game against the Houston Astros at Oracle Park in San Francisco, Calif., on Saturday, July 31, 2021. (Anda Chu/Bay Area News Group) 

“We got some balls up in the air and put some really good at-bats together,” Ruf said. “I think with a pitcher of his caliber, you really have to take advantage of the mistakes that he makes because they don’t make a whole lot of them and we were able to do that today.”

The most important hit of the day for the Giants was one of the nine they had that didn’t clear an outfield fence as shortstop Brandon Crawford delivered a two-out, go-ahead single in the bottom of the sixth against Cristian Javier.

“Obviously he’s hit some big homers with two outs, but from my perspective, I think he understands the situation and scoring the run is the most important thing,” Kapler said. “Sometimes that’s a ball to the middle of the field on a line and he’s done that consistently for us all year.”

Wood gave up a pair of home runs to Astros third baseman Aledmys Díaz and reliever Jay Jackson allowed a solo homer to catcher Martín Maldonado, but by blasting five home runs of their own, the Giants ensured their 3.0-game lead in the National League West over the Los Angeles Dodgers would remain intact for at least another day.

SAN FRANCISCO, CA – JULY 31: San Francisco Giants starting pitcher Alex Wood (57) throws in the first inning against the Houston Astros in a MLB game at Oracle Park in San Francisco, Calif., on Saturday, July 31, 2021. (Anda Chu/Bay Area News Group) 

The eight combined home runs tied the Oracle Park single-game record set on September 24, 2019 when the Giants hosted the Rockies. Saturday’s game marked the second time the Giants have hit five homers in a game at Oracle Park this season, with the other coming on June 16 against the Diamondbacks.

Prior to 2021, the Giants had only hit five homers in a game twice in the two-decade history of their waterfront ballpark.

Entering Saturday’s game, Greinke had made eight career starts and logged 53 innings in San Francisco and had never given up a home run at Oracle Park. The six-time All-Star had allowed home runs at defunct ballparks such as the Metrodome in Minneapolis, Turner Field in Atlanta and the old Yankee Stadium, but he’d dominated the Giants and posted a 1.19 ERA at China Basin in large part because of his ability to keep the ball in the park.

“It’s usually impossible to hit homers here,” Greinke told Astros reporters.

The Giants’ first homer of the day came from Solano, who stands to be among the players who will have their playing time reduced when Bryant arrives because the Giants will likely use second base to find at-bats for Flores, Thairo Estrada and Tommy La Stella upon his return from the injured list.

SAN FRANCISCO, CA – JULY 31: San Francisco Giants’ Donovan Solano (7) connects for a solo home run off Houston Astros starting pitcher Zack Greinke (21) in the second inning of a MLB game at Oracle Park in San Francisco, Calif., on Saturday, July 31, 2021. (Anda Chu/Bay Area News Group) 

A solo shot into the left field bleachers from Solano put the Giants on the board in the second before Flores tied the game at 3-3 with a high flyball that had just enough carry to it to clear the left field fence. After circling the bases, Flores was unable to return to the field in the top of the fourth as the Giants’ third baseman exited the game with lower back tightness.

Kapler said Flores is “day-to-day” and the Giants hope he’ll be available off the bench for Sunday’s series finale.

The next two homers Greinke gave up were no-doubters as Wade’s majestic blast into McCovey Cove marked the first splash hit of his career while Ruf’s 386-foot solo home run carried several rows into the left field bleachers.

Wade’s go-ahead two-run homer in the fourth off Greinke made him the fifth different Giants player to launch a home run into McCovey Cove this year, which marks a new single-season record for the franchise. It also sailed over the head of his mother, Emily, who was strolling around the ballpark when her son came to the plate.

“My dad, he can play it cool,” Wade said. “He’s calm and relaxed and he’s just sitting in his chair the whole time, but my mom has to get up and interact with people. It’s my mom and I love her for that.”

The six runs the Giants scored off Greinke tied the Detroit Tigers’ output on April 12 for the most the 18th-year veteran has allowed in a game this season. In 22 starts against San Francisco prior to Saturday, Greinke had never allowed more than four runs in a game.

Yastrzemski was the only Giants player who homered against a pitcher other than Greinke as he hit his 17th homer of the season in the eighth inning off reliever Yimi García.

SAN FRANCISCO, CA – JULY 31: San Francisco Giants’ Mike Yastrzemski (5) scores on a solo home run as Houston Astros catcher Martín Maldonado (15) looks in the eighth inning of a MLB game at Oracle Park in San Francisco, Calif., on Saturday, July 31, 2021. (Anda Chu/Bay Area News Group) 
SAN FRANCISCO, CA – JULY 31: San Francisco Giants’ LaMonte Wade Jr. (31) and Brandon Crawford (35) celebrate their 8-6 in over the Houston Astros in a MLB game at Oracle Park in San Francisco, Calif., on Saturday, July 31, 2021. (Anda Chu/Bay Area News Group) 
SAN FRANCISCO, CA – JULY 31: San Francisco Giants manager Gabe Kapler (19) blows a chewing gum bubble in the first inning in a MLB game against the Houston Astros at Oracle Park in San Francisco, Calif., on Saturday, July 31, 2021. (Anda Chu/Bay Area News Group)