filemorph

Check-in [d6928c2ee5]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Update to installer
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:d6928c2ee580ddbda1cbd57127dd88b07207c28d
User & Date: kevin 2017-01-16 01:30:25
Context
2017-01-16
02:30
Tweak version check check-in: 679025187c user: kevin tags: trunk
01:30
Update to installer check-in: d6928c2ee5 user: kevin tags: trunk
2017-01-15
01:50
Further refinements for 2.8 check-in: fecc9759b9 user: kevin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Added build/readme.txt.

            1  +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.
            2  +
            3  +Email us with questions and comments: kw@codebykevin.com
            4  +

Changes to buildapp.sh.

     6      6   mv filemorph.pl.tdy filemorph.pl
     7      7   
     8      8   chmod 777 filemorph.pl
     9      9   
    10     10   echo "Starting build process..."
    11     11   
    12     12   #clean up old builds
    13         -if [ -a /tmp/createdmg ]
           13  +if [ -a FileMorph.dmg ]
    14     14    then
    15         -    rm /tmp/createdmg
           15  +    rm FileMorph.dmg
    16     16   fi
    17     17   
    18     18   if [ -a build/FileMorph.zip ]
    19     19    then
    20     20       rm build/FileMorph.zip
    21     21   fi
    22     22   
................................................................................
    26     26   fi
    27     27   
    28     28   	
    29     29   if [ -a build/FileMorph.app ]
    30     30   	then
    31     31   	rm -rf build/FileMorph.app
    32     32   fi
           33  +
           34  +if [ -a /tmp/FileMorph-dmg-creation ]
           35  +    then
           36  +    rm -rf  /tmp/FileMorph-dmg-creation
           37  +fi
           38  +
    33     39   
    34     40      
    35     41   #generate new plist file
    36     42   echo "Generating plist file..."
    37     43   
    38     44   
    39     45   cat << EOT > Info-cbk.plist
................................................................................
   156    162   
   157    163   #make website build and appstore build
   158    164   echo "Making website build..."
   159    165   ditto --rsrc  --arch x86_64 FileMorph.app build/FileMorph.app
   160    166   cp -f Info-cbk.plist build/FileMorph.app/Contents/Info.plist
   161    167   
   162    168   
          169  +find build/FileMorph.app -type f -name "*.bundle"  -exec codesign --verbose --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" {} \;
          170  +find build/FileMorph.app -type f -name "*.dylib"  -exec codesign --verbose --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" {} \; 
          171  +
          172  +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
          173  +codesign  --verbose --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" build/FileMorph.app/Contents/Frameworks/Tk.framework/Versions/Current
          174  +codesign --verbose --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" build/FileMorph.app/Contents/Frameworks/Tcl.framework/Versions/Current
          175  +codesign  --verbose --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" build/FileMorph.app/Contents/MacOS/perl
          176  +
          177  +xattr -cr build/FileMorph.app
          178  +
          179  +codesign  --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" --verbose=2  build/FileMorph.app
          180  +
          181  +echo "Creating and signing DMG file..."
          182  +
          183  +hdiutil create  -srcfolder build -fs HFS+ -volname FileMorph FileMorph.dmg
          184  +
          185  +codesign  --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" --verbose=2  FileMorph.dmg
          186  +
          187  +echo "Uploading DMG..."
          188  +
          189  +cp -f FileMorph.dmg /Users/kevin/share/kevin/Sites/codebykevin/updates/FileMorph.dmg
          190  +
          191  +echo "Done."
          192  +
          193  + 
          194  +# cd build
          195  +# zip -r -y FileMorph.zip FileMorph.app
          196  +
          197  +# cp FileMorph.zip /Users/kevin/share/kevin/Sites/codebykevin/FileMorph.zip
          198  +
          199  +# cd ../
          200  +
          201  +#pwd
          202  +
          203  +cp -f filemorph-changes.tcl /Users/kevin/share/kevin/Sites/codebykevin/filemorph-changes.tcl
          204  +cp -f filemorph-version.tcl /Users/kevin/share/kevin/Sites/codebykevin/filemorph-version.tcl
          205  +
          206  +#echo "Copying zip to Amazon S3..."
          207  +#aws s3 cp build/FileMorph.zip s3://codebykevin/FileMorph.zip --acl public-read
          208  +
          209  +cd ../
          210  +
          211  +#create archive of entire source tree
          212  +tar cvfz FileMorph-$1.tgz FileMorph
          213  +
   163    214   
          215  +echo "Done."

Changes to filemorph.pl.

   655    655   
   656    656       }
   657    657   }
   658    658   
   659    659   #"about application"command
   660    660   sub Tkx::tkAboutDialog {
   661    661   
   662         -  Tkx::tk___messageBox(
   663         -		       -parent  => $mw,
   664         -		       -title   => "About FileMorph",
   665         -		       -icon    => "info",
   666         -		       -message => "FileMorph: File Modification Tool", -detail=>"(c) 2016 WordTech Communications LLC");
          662  +    Tkx::tk___messageBox(
          663  +        -parent  => $mw,
          664  +        -title   => "About FileMorph",
          665  +        -icon    => "info",
          666  +        -message => "FileMorph: File Modification Tool",
          667  +        -detail  => "(c) 2016 WordTech Communications LLC"
          668  +    );
   667    669   }
   668         -
   669    670   
   670    671   #handle errors in Tk
   671    672   sub errlog {
   672    673       my $msg = shift;
   673    674       if ($IS_AQUA) {
   674    675           system("syslog -s -l Error FileMorph: An error occurred: $msg\n");
   675    676       }
................................................................................
  1093   1094   }
  1094   1095   
  1095   1096   #check version of installed software
  1096   1097   sub checkUpdate {
  1097   1098   
  1098   1099       &Tkx::softwareupdate__setIcon($icon);
  1099   1100       &Tkx::softwareupdate__checkVersion( $appname, $appversion );
  1100         -
  1101   1101   
  1102   1102   }
  1103   1103   
  1104   1104   #-----AppleScript handlers------$
  1105   1105   
  1106   1106   if ($IS_AQUA) {
  1107   1107