Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | More tweaks |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
6a1a59a51c1d6a43aa97d9cde97daafc |
User & Date: | kevin 2018-06-03 21:00:28 |
Context
2018-06-03
| ||
21:09 | Prepare Windows build check-in: 1317f8260d user: kevin tags: trunk | |
21:00 | More tweaks check-in: 6a1a59a51c user: kevin tags: trunk | |
03:04 | Tweak Fossil url check-in: b5d92abe29 user: kevin tags: trunk | |
Changes
Added buildapp.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | #!/bin/sh if [ -a build/Stringscan.app ] then rm -rf build/Stringscan.app fi if [ -a Stringscan.dmg ] then rm Stringscan.dmg fi if [ -a /tmp/Stringscan-dmg-creation ] then rm -rf /tmp/Stringscan-dmg-creation fi #generate new plist file echo "Generating plist file..." cat << EOT > Info.plist <?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"> <dict> <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleExecutable</key> <string>Stringscan</string> <key>CFBundleGetInfoString</key> <string>Stringscan $1 (c) 2018 WordTech Communications LLC</string> <key>NSPrincipalClass</key> <string>NSApplication</string> <key>NSHighResolutionCapable</key> <true/> <key>LSMinimumSystemVersionByArchitecture</key> <dict> <key>i386</key> <string>10.13</string> <key>x86_64</key> <string>10.13</string> </dict> <key>LSArchitecturePriority</key> <array> <string>x86_64</string> <string>i386</string> </array> <key>LSApplicationCategoryType</key> <string>public.app-category.utilities</string> <key>NSHumanReadableCopyright</key> <string>(c) 2018 WordTech Communications LLC</string> <key>CFBundleIconFile</key> <string>stringscan.icns</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeName</key> <string>File name</string> <key>CFBundleTypeRole</key> <string>Editor</string> <key>LSItemContentTypes</key> <array> <string>public.directory</string> <string>com.apple.bundle</string> <string>com.apple.resolvable</string> </array> </dict> </array> <key>CFBundleName</key> <string>Stringscan</string> <key>CFBundleDisplayName</key> <string>Stringscan</string> <key>CFBundleIdentifier</key> <string>com.codebykevin.stringscan</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> <string>$1</string> <key>CFBundleVersion</key> <string>$1</string> <key>LSMinimumSystemVersion</key> <string>10.13</string> <key>LSRequiresCarbon</key> <true/> <key>NSSupportsAutomaticTermination</key> <string>YES</string> <key>NSSupportsSuddenTermination</key> <string>YES</string> </dict> </plist> EOT /usr/local/ruby/bin/ruby-beautify -c 4 -s stringscan.rb > main.rb ruby2app cp -f tkballoonhelp.rb Stringscan.app/Contents/Resources/tkballoonhelp.rb find Stringscan.app -name "*.a" -exec rm -rf {} \; find Stringscan.app -name "*debug" -exec rm -rf {} \; find Stringscan.app -name "*.sh" -exec rm -rf {} \; #copy the supporting libraries for lib in scriptlibs/* do echo "Copying $lib library..." cp -R -f $lib Stringscan.app/Contents/lib done #copy the supporting libraries for lib in maclibs/* do echo "Copying $lib library..." cp -R -f $lib Stringscan.app/Contents/lib done #make website build and appstore build echo "Making website build..." ditto --rsrc --arch x86_64 Stringscan.app build/Stringscan.app find build/Stringscan.app -type f -name "*.bundle" -exec codesign --verbose --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" {} \; find build/Stringscan.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/Stringscan.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/Stringscan.app/Contents/Frameworks/Tk.framework/Versions/Current codesign --verbose --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" build/Stringscan.app/Contents/Frameworks/Tcl.framework/Versions/Current #create tarball for update from website echo "Compressing application..." xattr -cr build/Stringscan.app codesign --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" --verbose=2 build/Stringscan.app echo "Creating and signing DMG file..." hdiutil create -srcfolder build -fs HFS+ -volname Stringscan Stringscan.dmg codesign --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" --verbose=2 Stringscan.dmg echo "Uploading DMG..." upload Stringscan.dmg updates upload stringscan-changes.tcl upload stringscan-version.tcl cd ../ #create archive of entire source tree tar cvfz Stringscan-$1.tgz Stringscan echo "Done." |