Skip to main content
Solved

Can someone help me with my pkg conversion code please?

  • February 22, 2022
  • 2 replies
  • 25 views

Forum|alt.badge.img+6

I'm in the middle of deployment and trying to convert an app into pkg - my code is below but I keep on getting the info screen in Terminal and it's not converting (it has worked in the past)

 

sudo productbuild --component /Applications/Filemaker Pro.app /Users/administrator/Desktop/FMP Update/Filemaker Pro.pkg

 

Can anyone see anything obviously wrong that could cause it not to work?

Best answer by Phantom5

Well, your paths have spaces so either you enclose them in double quotes, or escape the spaces with a \\.

Here's the right code:

sudo productbuild --component /Applications/Filemaker\\ Pro.app /Users/administrator/Desktop/FMP Update/Filemaker\\ Pro.pkg

or

sudo productbuild --component "/Applications/Filemaker Pro.app" "/Users/administrator/Desktop/FMP Update/Filemaker Pro.pkg"  

 

2 replies

Forum|alt.badge.img+9
  • Valued Contributor
  • Answer
  • February 22, 2022

Well, your paths have spaces so either you enclose them in double quotes, or escape the spaces with a \\.

Here's the right code:

sudo productbuild --component /Applications/Filemaker\\ Pro.app /Users/administrator/Desktop/FMP Update/Filemaker\\ Pro.pkg

or

sudo productbuild --component "/Applications/Filemaker Pro.app" "/Users/administrator/Desktop/FMP Update/Filemaker Pro.pkg"  

 


Forum|alt.badge.img+6
  • Author
  • Contributor
  • February 22, 2022

Well, your paths have spaces so either you enclose them in double quotes, or escape the spaces with a \\.

Here's the right code:

sudo productbuild --component /Applications/Filemaker\\ Pro.app /Users/administrator/Desktop/FMP Update/Filemaker\\ Pro.pkg

or

sudo productbuild --component "/Applications/Filemaker Pro.app" "/Users/administrator/Desktop/FMP Update/Filemaker Pro.pkg"  

 


Thanks :)