INDIANAPOLIS: US firms that relocate abroad will be punished under Donald Trump’s administration, the president-elect warned Thursday as he announced a deal with air conditioning manufacturer Carrier to keep jobs in the country.

“Companies are not going to leave the US any more without consequences. Not going to happen,” Trump told workers at the Carrier plant in Indianapolis in his first major public remarks since winning the White House.

“They can leave from state to state, and negotiate deals with different states, but leaving the country will be very, very difficult,” Trump added.

Carrier said earlier that Indiana state officials have agreed to give United Technologies Corp. $7 million worth of tax breaks over 10 years to encourage the company to keep about 1,100 jobs at its Carrier unit in Indianapolis.

Trump has claimed credit for keeping well-paid manufacturing jobs in the country, but the deal is less than a complete victory for the Republican who campaigned on “putting America first.”

In the election campaign, Trump vowed to impose hefty tariffs if Carrier did not reverse course on shifting jobs to Mexico.

The deal means Carrier will still send an estimated 1,300 jobs there.

Carrier said the state had offered Carrier $7 million package “contingent upon factors including employment, job retention and capital investment.”

United Technologies CEO Gregory Hayes said at an event that the company will invest more than $16 million over two years to keep its Indianapolis plant in the state.

Some other details of the deal in Vice President-elect and Indiana Governor Mike Pence’s state were unclear but it has already been criticized on the left and right.

Trump and Pence were celebrating the 1,000 jobs deal at an event in Indianapolis on Thursday, but employers elsewhere in Indiana are laying off five times as many workers because of foreign competition.

Trump “did just what he said he would do,” Pence said, recounting his push to convince Carrier to remain in Indiana.

“He made the case for America.”