Skip to content

Commit

Permalink
prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-web committed Oct 7, 2024
1 parent 2196e3d commit 2b89035
Show file tree
Hide file tree
Showing 7 changed files with 142 additions and 13 deletions.
11 changes: 5 additions & 6 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ You can find instructions to build the latest version of jsxgraphcore.js here: h

To release a new version of JSXGraph into the filter follow the steps below:

1. Add file `amd/build/jsxgraphcore-v_._._-lazy.js` and replace file [`styles/jsxgraph.css`](styles/jsxgraph.css) in branch `main`
of https://github.com/jsxgraph/moodle-filter_jsxgraph.
1. Add file `amd/build/jsxgraphcore-v_._._-lazy.js` and replace file [`styles/jsxgraph.css`](styles/jsxgraph.css).
- Add version tag in [`thirdpartylibs.xml`](thirdpartylibs.xml)!
- Update `$version` array in [`db/install.php`](db/install.php) and [`db/upgrade.php`](db/upgrade.php).
- Update string for `$recommendedjsx` in [`db/install.php`](db/install.php) and [`db/upgrade.php`](db/upgrade.php).
- Update `$version` array and string for `$recommendedjsx`
in [`db/install.php`](db/install.php) and [`db/upgrade.php`](db/upgrade.php).
2. Recompile [`styles.less`](styles.less).
3. Reformat [`styles.css`](styles.css) (indentation of 4 spaces).
4. If formulas extension hat been updated, replace directory `libs/fomulas_extension`.
5. Update `release` in the files [`db/install.php`](db/install.php), [`db/upgrade.php`](db/upgrade.php)
and [`version.php`](version.php).
5. Update `release` in the files
[`version.php`](version.php), [`db/install.php`](db/install.php) and [`db/upgrade.php`](db/upgrade.php).
6. The value of `plugin->version` should be updated in [`version.php`](version.php) to the current date (`YYYYMMDD00`).
7. Check in your local Moodle installation if everything works fine.
8. Draft a new release in GitHub.
Expand Down
55 changes: 55 additions & 0 deletions amd/src/jsxgraphcore-v1.10.0-lazy.js

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions amd/src/jsxgraphcore-v1.9.2-lazy.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions db/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@
*/
function xmldb_filter_jsxgraph_install() {

$release = 'v1.9.1'; // This value should be the same as in version.php!
$recommendedjsx = 'v1.9.1';
$release = 'v1.10.0'; // This value should be the same as in version.php!
$recommendedjsx = 'v1.10.0';

$versions = [
["id" => "auto"],
["id" => '1.10.0', "label" => 'v1.10.0', "file" => 'jsxgraphcore-v1.10.0-lazy.js'],
["id" => '1.9.2', "label" => 'v1.9.2', "file" => 'jsxgraphcore-v1.9.2-lazy.js'],
["id" => '1.9.1', "label" => 'v1.9.1', "file" => 'jsxgraphcore-v1.9.1-lazy.js'],
["id" => '1.9.0', "label" => 'v1.9.0', "file" => 'jsxgraphcore-v1.9.0-lazy.js'],
["id" => '1.8.0', "label" => 'v1.8.0', "file" => 'jsxgraphcore-v1.8.0-lazy.js'],
Expand Down
6 changes: 4 additions & 2 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@
*/
function xmldb_filter_jsxgraph_upgrade($oldversion) {

$release = 'v1.9.1'; // This value should be the same as in version.php!
$recommendedjsx = 'v1.9.1';
$release = 'v1.10.0'; // This value should be the same as in version.php!
$recommendedjsx = 'v1.10.0';

$versions = [
["id" => "auto"],
["id" => '1.10.0', "label" => 'v1.10.0', "file" => 'jsxgraphcore-v1.10.0-lazy.js'],
["id" => '1.9.2', "label" => 'v1.9.2', "file" => 'jsxgraphcore-v1.9.2-lazy.js'],
["id" => '1.9.1', "label" => 'v1.9.1', "file" => 'jsxgraphcore-v1.9.1-lazy.js'],
["id" => '1.9.0', "label" => 'v1.9.0', "file" => 'jsxgraphcore-v1.9.0-lazy.js'],
["id" => '1.8.0', "label" => 'v1.8.0', "file" => 'jsxgraphcore-v1.8.0-lazy.js'],
Expand Down
16 changes: 16 additions & 0 deletions thirdpartylibs.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
<?xml version="1.0"?>
<libraries>
<library>
<location>amd/src/jsxgraphcore-v1.10.0-lazy.js</location>
<name>JSXGraph 1.10.0</name>
<version>1.10.0</version>
<license>LGPL</license>
<licenseversion>3.0+</licenseversion>
</library>

<library>
<location>amd/src/jsxgraphcore-v1.9.2-lazy.js</location>
<name>JSXGraph 1.9.2</name>
<version>1.9.2</version>
<license>LGPL</license>
<licenseversion>3.0+</licenseversion>
</library>

<library>
<location>amd/src/jsxgraphcore-v1.9.1-lazy.js</location>
<name>JSXGraph 1.9.1</name>
Expand Down
6 changes: 3 additions & 3 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2024061400; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2024100700; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2019111800; // Requires this Moodle version.
$plugin->supported = [38, 404]; // Moodle versions.
$plugin->supported = [38, 405]; // Moodle versions.
$plugin->component = 'filter_jsxgraph'; // Full name of the plugin (used for diagnostics).
$plugin->maturity = MATURITY_STABLE;
$plugin->release = 'v1.9.1'; // JSXGraph + filter version.
$plugin->release = 'v1.10.0'; // JSXGraph + filter version.

0 comments on commit 2b89035

Please sign in to comment.