문제

I currently have a target in XCode which calls 'packagemaker' command line tool from a script, and am able to run this without any problems. However I can't figure out how to set the paths inside my .pmdoc file. The only way I got it to work is by having post-build steps to copy to a temporary directory for each target whose binary is consumer by the installer, and then my paths in the .pmdoc file are hardcoded to the temporary directory.

I was hoping I could use environment variables in the .pmdoc path entries, but they don't seem to be supported.

Am I stuck having to copy everything to a temporary dir, or is there any other way to clean things up?

Thanks.

도움이 되었습니까?

해결책

Packagemaker also is a non GUI terminal tool. So you can write shell script which will be take pathes, variables... as arguments and build pkg file. More detail information you can see in the man page.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top