Skip to content

Commit

Permalink
prepare release HttpHeader 1.0.12 + builds
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed Mar 24, 2020
1 parent 28d4f28 commit 8dab81d
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 27 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/plg_system_httpheader.zip
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,12 @@ This plugin has been included in the Joomla Core ([joomla/joomla-cms#18301](http
David Jardin - @snipersister - https://www.djumla.de/ & Yves Hoppe - @yvesh - https://compojoom.com/

For giving me the inspiration for the plugin and their feedback on the actual implementation. Thanks :+1:

## Release steps

- `build/build.sh`
- `git commit -am 'prepare release HttpHeader 1.0.x'`
- `git tag -s '1.0.x' -m 'HttpHeader 1.0.x'`
- `git push origin --tags`
- create the release on GitHub
- `git push origin master`
9 changes: 9 additions & 0 deletions build/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
EXTENSION_ZIP_FILENAME="build/plg_system_httpheader.zip"
EXTENSION_ELEMENT="httpheader"
if [ ! -f "$EXTENSION_ELEMENT.xml" ]; then cd ..; fi
if [ -f "$EXTENSION_ZIP_FILENAME" ]; then rm $EXTENSION_ZIP_FILENAME; fi
zip -r $EXTENSION_ZIP_FILENAME language/ "$EXTENSION_ELEMENT.php" "$EXTENSION_ELEMENT.xml" script.php --quiet
SHA512=$(sha512sum $EXTENSION_ZIP_FILENAME | awk '{print $1}')
sed -i -e "s/\(<sha512>\).*\(<\/sha512>\)/<sha512>$SHA512<\/sha512>/g" update.xml
echo 'package and update server ready'
6 changes: 3 additions & 3 deletions httpheader.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<extension version="3.9" type="plugin" group="system" method="upgrade">
<name>plg_system_httpheader</name>
<creationDate>March 2019</creationDate>
<creationDate>24.03.2020</creationDate>
<author>Tobias Zulauf</author>
<copyright>(C) 2017 - 2019 Tobias Zulauf All rights reserved.</copyright>
<copyright>(C) 2017 - 2020 Tobias Zulauf All rights reserved.</copyright>
<authorUrl>https://www.jah-tz.de</authorUrl>
<version>1.0.11</version>
<version>1.0.12</version>
<license>GNU/GPL Version 2 or later</license>
<description>PLG_SYSTEM_HTTPHEADER_XML_DESCRIPTION</description>
<scriptfile>script.php</scriptfile>
Expand Down
69 changes: 45 additions & 24 deletions update.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,45 @@
<?xml version="1.0" ?>
<updates>
<update>
<name>HttpHeader 1.0.11</name>
<description>HttpHeader Plugin</description>
<element>httpheader</element>
<type>plugin</type>
<folder>system</folder>
<client>site</client>
<version>1.0.11</version>
<infourl title="HttpHeader Plugin">https://github.com/zero-24/plg_system_httpheader</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/zero-24/plg_system_httpheader/releases/download/1.0.11/plg_system_httpheader.zip</downloadurl>
</downloads>
<sha512>9a3963c18a00b597618576e5ff325c7e93dcc2c933d0e741aa531f7dd2507065e3f945cc7f790571fac42ba193ba846bbd4e6ad1fdac2eacf2204ea5d396e3f7</sha512>
<tags>
<tag>stable</tag>
</tags>
<maintainer>Tobias Zulauf</maintainer>
<maintainerurl>https://www.jah-tz.de</maintainerurl>
<php_minimum>7.0.0</php_minimum>
<targetplatform name="joomla" version="3.[89]"/>
</update>
</updates>
<?xml version="1.0" ?>
<updates>
<update>
<name>HttpHeader 1.0.11</name>
<description>HttpHeader Plugin</description>
<element>httpheader</element>
<type>plugin</type>
<folder>system</folder>
<client>site</client>
<version>1.0.11</version>
<infourl title="HttpHeader Plugin">https://github.com/zero-24/plg_system_httpheader</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/zero-24/plg_system_httpheader/releases/download/1.0.11/plg_system_httpheader.zip</downloadurl>
</downloads>
<sha512>a7cce92c0948d254680b1f5515e686d0718926aaccd78fa22837f22b451f6278bfd9d91dcb04423c1160370288d1215b84bc1964eab025d34cf022b36a4702bb</sha512>
<tags>
<tag>stable</tag>
</tags>
<maintainer>Tobias Zulauf</maintainer>
<maintainerurl>https://www.jah-tz.de</maintainerurl>
<php_minimum>7.0.0</php_minimum>
<targetplatform name="joomla" version="3.([89]|10)"/>
</update>
<update>
<name>HttpHeader 1.0.11</name>
<description>HttpHeader Plugin</description>
<element>httpheader</element>
<type>plugin</type>
<folder>system</folder>
<client>site</client>
<version>1.0.11</version>
<infourl title="HttpHeader Plugin">https://github.com/zero-24/plg_system_httpheader</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/zero-24/plg_system_httpheader/releases/download/1.0.11/plg_system_httpheader.zip</downloadurl>
</downloads>
<sha512>a7cce92c0948d254680b1f5515e686d0718926aaccd78fa22837f22b451f6278bfd9d91dcb04423c1160370288d1215b84bc1964eab025d34cf022b36a4702bb</sha512>
<tags>
<tag>stable</tag>
</tags>
<maintainer>Tobias Zulauf</maintainer>
<maintainerurl>https://www.jah-tz.de</maintainerurl>
<php_minimum>7.0.0</php_minimum>
<targetplatform name="joomla" version="4.0"/>
</update>
</updates>

0 comments on commit 8dab81d

Please sign in to comment.