ADDED build/readme.txt Index: build/readme.txt ================================================================== --- build/readme.txt +++ build/readme.txt @@ -0,0 +1,4 @@ +To install FileMorph, drag and drop the FileMorph icon onto the Applications folder. You also can drag the FileMorph icon from Applications to your Dock in order to make FileMorph more easily accessible. + +Email us with questions and comments: kw@codebykevin.com + Index: buildapp.sh ================================================================== --- buildapp.sh +++ buildapp.sh @@ -8,13 +8,13 @@ chmod 777 filemorph.pl echo "Starting build process..." #clean up old builds -if [ -a /tmp/createdmg ] +if [ -a FileMorph.dmg ] then - rm /tmp/createdmg + rm FileMorph.dmg fi if [ -a build/FileMorph.zip ] then rm build/FileMorph.zip @@ -28,10 +28,16 @@ if [ -a build/FileMorph.app ] then rm -rf build/FileMorph.app fi + +if [ -a /tmp/FileMorph-dmg-creation ] + then + rm -rf /tmp/FileMorph-dmg-creation +fi + #generate new plist file echo "Generating plist file..." @@ -158,6 +164,52 @@ echo "Making website build..." ditto --rsrc --arch x86_64 FileMorph.app build/FileMorph.app cp -f Info-cbk.plist build/FileMorph.app/Contents/Info.plist +find build/FileMorph.app -type f -name "*.bundle" -exec codesign --verbose --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" {} \; +find build/FileMorph.app -type f -name "*.dylib" -exec codesign --verbose --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" {} \; + +codesign --verbose --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" build/FileMorph.app/Contents/Frameworks/Tk.framework/Versions/8.6/Resources/Wish.app/Contents/MacOS/Wish +codesign --verbose --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" build/FileMorph.app/Contents/Frameworks/Tk.framework/Versions/Current +codesign --verbose --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" build/FileMorph.app/Contents/Frameworks/Tcl.framework/Versions/Current +codesign --verbose --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" build/FileMorph.app/Contents/MacOS/perl + +xattr -cr build/FileMorph.app + +codesign --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" --verbose=2 build/FileMorph.app + +echo "Creating and signing DMG file..." + +hdiutil create -srcfolder build -fs HFS+ -volname FileMorph FileMorph.dmg + +codesign --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" --verbose=2 FileMorph.dmg + +echo "Uploading DMG..." + +cp -f FileMorph.dmg /Users/kevin/share/kevin/Sites/codebykevin/updates/FileMorph.dmg + +echo "Done." + + +# cd build +# zip -r -y FileMorph.zip FileMorph.app + +# cp FileMorph.zip /Users/kevin/share/kevin/Sites/codebykevin/FileMorph.zip + +# cd ../ + +#pwd + +cp -f filemorph-changes.tcl /Users/kevin/share/kevin/Sites/codebykevin/filemorph-changes.tcl +cp -f filemorph-version.tcl /Users/kevin/share/kevin/Sites/codebykevin/filemorph-version.tcl + +#echo "Copying zip to Amazon S3..." +#aws s3 cp build/FileMorph.zip s3://codebykevin/FileMorph.zip --acl public-read + +cd ../ + +#create archive of entire source tree +tar cvfz FileMorph-$1.tgz FileMorph + +echo "Done." Index: filemorph.pl ================================================================== --- filemorph.pl +++ filemorph.pl @@ -657,17 +657,18 @@ } #"about application"command sub Tkx::tkAboutDialog { - Tkx::tk___messageBox( - -parent => $mw, - -title => "About FileMorph", - -icon => "info", - -message => "FileMorph: File Modification Tool", -detail=>"(c) 2016 WordTech Communications LLC"); + Tkx::tk___messageBox( + -parent => $mw, + -title => "About FileMorph", + -icon => "info", + -message => "FileMorph: File Modification Tool", + -detail => "(c) 2016 WordTech Communications LLC" + ); } - #handle errors in Tk sub errlog { my $msg = shift; if ($IS_AQUA) { @@ -1095,11 +1096,10 @@ #check version of installed software sub checkUpdate { &Tkx::softwareupdate__setIcon($icon); &Tkx::softwareupdate__checkVersion( $appname, $appversion ); - } #-----AppleScript handlers------$