2013-05-15 2 views
0

productbuild 명령을 사용하여 응용 프로그램을 패키지화하여 라이센스 파일을 보관할 pkg 파일을 만들려고합니다. 여기에 내가 그것을하고있어 방법은 다음과 같습니다productbuild --distribution : package xxx.pkg를로드 할 수 없습니다.

# Creates the first package 
productbuild --sign "3rd Party Mac Developer Installer: Tamaggo" --component tamaggo\ ibi.app /Applications/ tamaggoibi.pkg 

# Creates a package that will hold the first one using a distribution file 
productbuild --distribution tamaggo\ ibi.app/Contents/distribution.xml --package-path . --sign "3rd Party Mac Developer Installer: Tamaggo" bassel.pkg 

난 항상 다음과 같은 경고 받고 있어요 :

productbuild : 경고 : 패키지가 ./tamaggoibi.pkg가

만약로드 할 수 없습니다를 내가 설치가 성공적으로 완료된 첫 번째 작성된 패키지를 두 번 클릭하십시오. 다른 쪽을 두 번 클릭하면 아무 일도 일어나지 않습니다.

로드 할 수 없게 만드는 첫 번째 패키지의 문제점을 파악할 수 없습니다.

다음은 distribution.xml 파일입니다 : PKGBUILD를 사용

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN""http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
<installer-gui-script minSpecVersion="1"> 
<title>tamaggo ibi</title> 
<license file="license.html" /> 
<background file="ApplicationBackground.gif" /> 
<options customize="never" allow-external-scripts="no"/> 
<choices-outline> 
    <line choice="choice0"/> 
</choices-outline> 

<choice id="choice0" title="Install tamaggo ibi"> 
    <pkg-ref id="tamaggoibi" /> 
</choice> 

<pkg-ref id="tamaggoibi" version="1.6">#tamaggoibi.pkg</pkg-ref> 
</installer-gui-script> 
+0

좋아, 이제 첫 번째 빌드는 pkgbuild 명령을 사용하여 만들어야한다는 것을 알았습니다 ... 이제 응용 프로그램을 올바르게 설치합니다. 문제는 여전히 라이센스 파일이 보이지 않는다는 것입니다 ... – iDev

답변

1

내 원래 문제를 해결하고 나는 설치에 라이센스를 추가하는 저를 도움이 정말 좋은 post을 발견했다.