Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NEW] Binary installer! Double-click the installer/make_installer.command file to create the distributable .dmg (which contains a .pkg). [NEW] Works on latest seed of The Operating System That Shall Not Be Named. [NEW] Now looks for templates in /Library/Application Support/mogenerator/ as well was ~/Library/Application Support/mogenerator/. This is mostly to make the installer package easier to create.
- Loading branch information
Showing
14 changed files
with
2,889 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IFPkgDescriptionDescription</key> | ||
<string>Implements generation gap codegen pattern for Core Data. Inspired by eogenerator.</string> | ||
<key>IFPkgDescriptionTitle</key> | ||
<string>mogenerator VERSION</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleGetInfoString</key> | ||
<string>VERSION, Copyright © 2006-2007 Jonathan 'Wolf' Rentzsch</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.rentzsch.mogenerator</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>VERSION</string> | ||
<key>IFMajorVersion</key> | ||
<integer>MAJOR_VERSION</integer> | ||
<key>IFMinorVersion</key> | ||
<integer>MINOR_VERSION</integer> | ||
<key>IFPkgFlagAllowBackRev</key> | ||
<false/> | ||
<key>IFPkgFlagAuthorizationAction</key> | ||
<string>AdminAuthorization</string> | ||
<key>IFPkgFlagBackgroundAlignment</key> | ||
<string>topleft</string> | ||
<key>IFPkgFlagBackgroundScaling</key> | ||
<string>none</string> | ||
<key>IFPkgFlagDefaultLocation</key> | ||
<string>/</string> | ||
<key>IFPkgFlagFollowLinks</key> | ||
<true/> | ||
<key>IFPkgFlagInstallFat</key> | ||
<false/> | ||
<key>IFPkgFlagInstalledSize</key> | ||
<integer>292</integer> | ||
<key>IFPkgFlagIsRequired</key> | ||
<false/> | ||
<key>IFPkgFlagOverwritePermissions</key> | ||
<false/> | ||
<key>IFPkgFlagRelocatable</key> | ||
<false/> | ||
<key>IFPkgFlagRestartAction</key> | ||
<string>NoRestart</string> | ||
<key>IFPkgFlagRootVolumeOnly</key> | ||
<false/> | ||
<key>IFPkgFlagUpdateInstalledLanguages</key> | ||
<false/> | ||
<key>IFPkgFormatVersion</key> | ||
<real>0.10000000149011612</real> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
cd "`dirname \"$0\"`" | ||
|
||
sudo echo | ||
|
||
sudo rm -rf 'build' | ||
mkdir -p 'build/root/Library/Application Support/mogenerator' | ||
|
||
cd .. | ||
xcodebuild -configuration Release CONFIGURATION_BUILD_DIR="$PWD/installer/build/root/usr/bin/" | ||
cp *.motemplate "$PWD/installer/build/root/Library/Application Support/mogenerator/" | ||
cd installer | ||
|
||
VERSION=`build/root/usr/bin/mogenerator --version|head -n 1|sed -E 's/mogenerator ([0-9]+\.[0-9]+(\.[0-9]+)?).+/\1/g'` | ||
MAJOR_VERSION=`echo $VERSION|sed -E 's/([0-9]+).+/\1/g'` | ||
MINOR_VERSION=`echo $VERSION|sed -E 's/[0-9]+\.([0-9]+).*/\1/g'` | ||
|
||
sed -E "s/VERSION/$VERSION/g" < Description.plist > 'build/Description.plist' | ||
sed -e "s/MAJOR_VERSION/$MAJOR_VERSION/g" -e "s/MINOR_VERSION/$MINOR_VERSION/g" -e "s/VERSION/$VERSION/g" < Info.plist > 'build/Info.plist' | ||
|
||
sudo chown -R root 'build/root' | ||
sudo chgrp -R admin 'build/root' | ||
/Developer/Tools/packagemaker -build -p "build/mogenerator-$VERSION.pkg" -f 'build/root' -i 'build/Info.plist' -d 'build/Description.plist' -ds | ||
hdiutil create -srcfolder "build/mogenerator-$VERSION.pkg" -volname "mogenerator $VERSION" "build/mogenerator-$VERSION.dmg" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.