Skip to content
Permalink
Browse files

Streamlined release process slightly

  • Loading branch information...
chrisgraham committed Jun 28, 2019
1 parent 9b5f73c commit d2b489f121e6812c4df8185a84275f9801edc9f0
@@ -21,7 +21,16 @@
$_title = get_screen_title('Composr addon building tool', false);
$_title->evaluate_echo();
echo '<p>This has built all the addons into <kbd>exports/addons</kbd>. The make_release script you probably came from gives details on how to get these live on compo.sr.</p>';
if (strpos(PHP_OS, 'Darwin') !== false) {
$command_to_try = 'open';
} elseif (strpos(PHP_OS, 'WIN') !== false) {
$command_to_try = 'start';
} else {
$command_to_try = 'gnome-open';
}
$command_to_try .= ' ' . get_custom_file_base() . '/exports/addons/';
echo '<p>This has built all the addons into <kbd><a href="#" onclick="fauxmodal_alert(\'&lt;kbd&gt;' . escape_html($command_to_try) . '&lt;/kbd&gt;\',null,\'Command to open folder\',true);"><kbd>exports/addons</kbd></a></kbd>. The <kbd>make_release</kbd> script you probably came from gives details on how to get these live on compo.sr.</p>';
echo '<p>What follows is details if you are republishing addons and want to easily put out "This is updated" messages into the comment topics. It\'s not necessary because just uploading the TARs will make the inbuilt Composr check script see the addon is updated compared to when a user installed it. However, it is nice to keep users updated if you have time.</p>';
@@ -123,7 +132,7 @@
if ($old_time !== $new_time) {
if ($old_time === false) {
echo '<p>New addon with description:</p><div class="whitespace_visible">' . escape_html(generate_addon_description($addon_info)) . '</div>';
} else {
echo nl2br(escape_html(update_addon_descriptions($file, $name, generate_addon_description($addon_info))));
}
@@ -271,9 +271,17 @@ function phase_2()
</li>
';
}
if (strpos(PHP_OS, 'Darwin') !== false) {
$command_to_try = 'open';
} elseif (strpos(PHP_OS, 'WIN') !== false) {
$command_to_try = 'start';
} else {
$command_to_try = 'gnome-open';
}
$command_to_try .= ' ' . get_custom_file_base() . '/exports/builds/' . $version_dotted . '/';
echo '
<li>
<strong>Upload</strong>: Upload all built files (in <kbd>builds/' . escape_html($version_dotted) . '</kbd>) to compo.sr server (<kbd>uploads/downloads</kbd>)
<strong>Upload</strong>: Upload all built files (in <a href="#" onclick="fauxmodal_alert(\'&lt;kbd&gt;' . escape_html($command_to_try) . '&lt;/kbd&gt;\',null,\'Command to open folder\',true);"><kbd>exports/builds/' . escape_html($version_dotted) . '</kbd></a>) to compo.sr server (<a target="_blank" href="sftp://web1@compo.sr/composr/uploads/downloads"><kbd>uploads/downloads</kbd></a>)
</li>
<li>
Tag the release with <kbd>git commit -a -m "New build"; git push; git tag ' . escape_html($version_dotted) . ' ; git push origin ' . escape_html($version_dotted) . '</kbd>
@@ -301,6 +309,19 @@ function phase_2()
';
}
echo '
<li><strong>Addons</strong>:<ul>
<li>Generate the new addon set (<a target="_blank" href="' . escape_html(static_evaluate_tempcode(build_url(array('page' => 'build_addons'), 'adminzone'))) . '">build_addons minimodule</a>)</li>
';
if ($is_substantial && !$is_bleeding_edge) {
echo '
<li>Add them (<a target="_blank" href="http://compo.sr/adminzone/publish-addons-as-downloads.htm?cat=Version%20&amp;' . escape_html(urlencode($version_number)) . '&amp;version_branch=' . escape_html(urlencode($version_branch)) . '">publish_addons_as_downloads</a> minimodule)</li>
';
}
echo '
</ul></li>
';
if ($is_substantial) {
echo '
<li>Create an <kbd>errors_final' . strval(intval(cms_version_number())) . '@compo.sr</kbd> e-mail account and assign someone to handle it.</li>
@@ -379,12 +400,10 @@ function phase_2()
<li>Re-open the site on the server</li>
<li>Make sure the history on the vision page is up-to-date</li>
</ul>
<li><strong>Addons</strong>:<ul>
<li>Generate the new addon set (<a target="_blank" href="http://compo.sr/adminzone/build-addons">build_addons minimodule</a>)</li>
<li>Add them (<a target="_blank" href="http://compo.sr/adminzone/publish-addons-as-downloads.htm?cat=Version%20&amp;' . escape_html(urlencode($version_number)) . '&amp;version_branch=' . escape_html(urlencode($version_branch)) . '">publish_addons_as_downloads</a> minimodule)</li>
</ul></li>
';
}
if ($is_substantial && !$is_bleeding_edge) {
echo '
<li><strong>History</strong>: Update release history details on the compo.sr <kbd>vision</kbd> page</li>
<li><strong>Wikipedia</strong>: <form target="_blank" style="display: inline" action="http://compo.sr/forum/forumview.htm" method="post"><input type="hidden" name="title" value="Wikipedia listing needs updating (for version ' . strval(intval(cms_version_number())) . ')" /><input type="hidden" name="post" value="(This is a standard post we make each time a new major release comes out)&#10;&#10;As Composr version ' . strval(intval(cms_version_number())) . ' is out now, ideally someone will update the [url=&quot;Composr Wikipedia page&quot;]http://en.wikipedia.org/wiki/Composr_CMS[/url]. The developers don\'t maintain this because it\'d be inappropriate for us to maintain our own Wikipedia entry (neutrality reasons). The version details need updating, but generally it is worth reviewing the page is still accurate and up-to-date.&#10;&#10;Thanks to anyone who helps here, it\'s important we keep the outside world updated on Composr." /><input class="hyperlink_button" type="submit" value="Get someone to update our release history on Wikipedia" /></form></li>

0 comments on commit d2b489f

Please sign in to comment.
You can’t perform that action at this time.