|
| 1 | +HOW TO RELEASE MUSHCLIENT |
| 2 | +------------------------- |
| 3 | + |
| 4 | +Author: Nick Gammon |
| 5 | +Date: 20th July 2010 |
| 6 | + |
| 7 | + |
| 8 | +PREPARATION |
| 9 | + |
| 10 | +1. Test changes |
| 11 | +2. Document new functions, and changes, in database |
| 12 | +3. Update readme.txt file with today's date as release date |
| 13 | +4. Make sure version number changed in doc.h and resource file |
| 14 | + |
| 15 | + |
| 16 | +HELP GENERATION |
| 17 | + |
| 18 | +1. Open project 'docgen' |
| 19 | +2. Execute program to build help RTF file from database (Ctrl+F5) |
| 20 | +3. To convert RTF file to mushclient.hlp, go to Windows Start Menu -> Run, and enter: |
| 21 | + "\Program Files\Help Workshop\hcrtf.exe" \source\mushclient\docgen\help.hpj |
| 22 | +4. Help file (mushclient.hlp) should be generated with no errors or warnings. |
| 23 | + |
| 24 | + |
| 25 | +BUILD RELEASE VERSION |
| 26 | + |
| 27 | +1. Open project 'mushclient' |
| 28 | +2. Switch to Win32 Release build |
| 29 | +3. Rebuild all (Build menu) - this ensures all OK, and puts build date into executable |
| 30 | + |
| 31 | + |
| 32 | +MAKE INSTALLER |
| 33 | + |
| 34 | +1. Open directory: \source\mushclient\install |
| 35 | +2. Run shortcut: Make Installer |
| 36 | +3. Rename resulting file 'mushclient40x.exe' as appropriate (eg. mushclient454.exe) |
| 37 | + |
| 38 | + |
| 39 | +COMMIT FINAL CHANGES TO GIT |
| 40 | + |
| 41 | +1. Using the Git Bash window, do: |
| 42 | + git commit -am "Final changes before release" |
| 43 | + git push |
| 44 | + |
| 45 | +2. Tag this release and push tags: |
| 46 | + git tag -a v4.54 -m "Version 4.54 as released" |
| 47 | + git push --tags |
| 48 | + |
| 49 | + |
| 50 | +FIND INSTALLER MD5 SUM |
| 51 | + |
| 52 | +1. Switch to install directory and type: |
| 53 | + md5sum *454* (version number here) |
| 54 | + |
| 55 | + |
| 56 | +UPLOAD INSTALLER |
| 57 | + |
| 58 | +1. In install directory: |
| 59 | + |
| 60 | + sftp username@gammon.com.au |
| 61 | + cd www/files/mushclient |
| 62 | + put mushclient454.exe |
| 63 | + chmod 644 mushclient454.exe |
| 64 | + Ctrl+D |
| 65 | + |
| 66 | +2. Check upload: |
| 67 | + |
| 68 | + ssh username@gammon.com.au |
| 69 | + cd www/files/mushclient |
| 70 | + md5sum *454* (version number here) |
| 71 | + |
| 72 | + |
| 73 | +DO ANNOUNCEMENT |
| 74 | + |
| 75 | +1. Copy previous announcement from forum and paste into Crimson Editor |
| 76 | +2. Change version number (eg. 4.53 to 4.54) and executable file name: (eg. 453 to 454) |
| 77 | +3. Near the end change the "git diff" and "git log" lines to update the *previous* version (eg. 4.52 to 4.53) |
| 78 | +4. Run the updated "git diff" and "git log" commands, pasting the results into the announcement |
| 79 | +5. Update the size of the installer (eg. from 2.79 Mb to 2.80 Mb) |
| 80 | +6. Update the MD5sum hex figure in the announcement |
| 81 | +7. Amend the "improvements" lines in the announcement to reflect the major changes |
| 82 | +8. Paste resulting message into a new forum message announcing the new release |
| 83 | +9. Find the post number of that new message and amend forum database table bbsection, record 1 (MUSHclient section) to show the latest release and forum post to read about it. |
| 84 | + |
| 85 | + |
| 86 | +UPDATE RELEASE NOTES |
| 87 | + |
| 88 | +1. Change record for relnotes for this release to have today's date as release date |
| 89 | + |
| 90 | + |
| 91 | +GENERATE DOCUMENTATION SQL FROM DATABASE |
| 92 | + |
| 93 | +1. On Ubuntu server, run this: |
| 94 | + . dumpdoc.sh |
| 95 | + |
| 96 | + |
| 97 | +UPLOAD AND INSTALL DOCUMENTATION |
| 98 | + |
| 99 | +1. Upload: |
| 100 | + |
| 101 | + sftp username@gammon.com.au |
| 102 | + cd sql |
| 103 | + put documentation.sql.bz2 |
| 104 | + Ctrl+D |
| 105 | + |
| 106 | +2. Install: |
| 107 | + |
| 108 | + ssh username@gammon.com.au |
| 109 | + cd sql |
| 110 | + rm documentation.sql |
| 111 | + bunzip2 documentation.sql.bz2 |
| 112 | + . dbsetup |
| 113 | + mysql -h $SERVER -u $USER -p $DATABASE < documentation.sql |
| 114 | + (password) |
| 115 | + Ctrl+D |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
0 commit comments