Skip to content

Commit

Permalink
Use pkgbuild instead of productbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
robb committed Nov 22, 2014
1 parent c055ff1 commit 22bcff9
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
29 changes: 29 additions & 0 deletions Components.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?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">
<plist version="1.0">
<array>
<dict>
<key>BundleIsVersionChecked</key>
<false/>
<key>BundleOverwriteAction</key>
<string>upgrade</string>
<key>ChildBundles</key>
<array>
<dict>
<key>BundleOverwriteAction</key>
<string></string>
<key>RootRelativeBundlePath</key>
<string>Library/Frameworks/CarthageKit.framework/Versions/A/Frameworks/LlamaKit.framework</string>
</dict>
<dict>
<key>BundleOverwriteAction</key>
<string></string>
<key>RootRelativeBundlePath</key>
<string>Library/Frameworks/CarthageKit.framework/Versions/A/Frameworks/ReactiveCocoa.framework</string>
</dict>
</array>
<key>RootRelativeBundlePath</key>
<string>Library/Frameworks/CarthageKit.framework</string>
</dict>
</array>
</plist>
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ BINARIES_FOLDER=/usr/local/bin
OUTPUT_PACKAGE=Carthage.pkg

VERSION_STRING=$(shell agvtool what-marketing-version -terse1)
COMPONENTS_PLIST=Components.plist

.PHONY: all bootstrap clean install package test uninstall

Expand Down Expand Up @@ -50,4 +51,10 @@ package: clean bootstrap
mv -f "$(CARTHAGE_EXECUTABLE)" "$(TEMPORARY_FOLDER)$(BINARIES_FOLDER)/carthage"
rm -rf "$(BUILT_BUNDLE)"

productbuild --root "$(TEMPORARY_FOLDER)" "/" --identifier "org.carthage.carthage" --version "$(VERSION_STRING)" "$(OUTPUT_PACKAGE)"
pkgbuild \
--component-plist "$(COMPONENTS_PLIST)" \
--identifier "org.carthage.carthage" \
--install-location "/" \
--root "$(TEMPORARY_FOLDER)" \
--version "$(VERSION_STRING)" \
"$(OUTPUT_PACKAGE)"

0 comments on commit 22bcff9

Please sign in to comment.