-
Notifications
You must be signed in to change notification settings - Fork 3
How to Package a Release for Inclusion in the PKP Gallery
John Barneson edited this page Sep 15, 2023
·
5 revisions
Creating a release of the gopher theme involves two things:
- Creating a release in the OJS Gopher Theme repository. This is accomplished under Releases -> Draft a new release. Just use the main branch for the release. The other important piece is the downloadable tarball. You need to add a downloadable tar.gz file under Assets. Follow the directions below to create the file.
- Updating the plugins.xml file in the Plugin Gallery repository. This is a fork of the main plugins.xml file at PKP that tracks the entire plugin gallery for PKP software. You create a pull request from the forked repo against the main repo and your release information is updated to the XML file.
- Commit your local changes and push to ojs-gopher-theme
- Copy the ojs-gopher-theme directory and rename it gopher.
cp -r ojs-gopher-theme/ gopher/
- Create a zipped tar file of the above gopher directory and incorporate the release version, e.g.
gtar -czv -f gopher-1_0_2-0.tar.gz gopher/
- Get a MD5 checksum of the above tar.gz file for inclusion in the plugins.xml file.
md5 gopher-1_0_2-0.tar.gz
- From the Plugin Gallery repository open the plugins.xml file for editing.
- Search for 'gopher' and you'll see the plugin release section. Add a new release at the end of the xml segment in the following format:
<release date="2023-09-12" version="1.0.2.0" md5="41f93371abfe5816bf949c9e852dc4ab">
<package>https://github.com/UMNLibraries/ojs-gopher-theme/releases/download/1_0_2-0/gopher-1_0_2-0.tar.gz</package>
<compatibility application="ojs2">
<version>3.3.0.0</version>
<version>3.3.0.1</version>
<version>3.3.0.2</version>
<version>3.3.0.3</version>
<version>3.3.0.4</version>
<version>3.3.0.5</version>
<version>3.3.0.6</version>
<version>3.3.0.7</version>
<version>3.3.0.8</version>
<version>3.3.0.9</version>
<version>3.3.0.10</version>
<version>3.3.0.11</version>
<version>3.3.0.12</version>
<version>3.3.0.13</version>
<version>3.3.0.14</version>
<version>3.3.0.15</version>
</compatibility>
<description locale="en">Template and language fixes in locale.po.</description>
<description locale="en_US">Template and language fixes in locale.po.</description>
</release>
- Once you have the release XML finished then commit your changes.
- Now create a pull request against the main branch from your forked branch.
- This will trigger automated testing on the main repository. If these tests pass then PKP will merge the pull request.
- The gtar utility seems to work best, especially on Macs. It's important not to commit Mac resource fork files like .DS_Store into the forked repository.