Skip to content

Commit 8dab81d

Browse files
committed
prepare release HttpHeader 1.0.12 + builds
1 parent 28d4f28 commit 8dab81d

6 files changed

Lines changed: 79 additions & 27 deletions

File tree

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
indent_style = tab
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/plg_system_httpheader.zip

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,12 @@ This plugin has been included in the Joomla Core ([joomla/joomla-cms#18301](http
120120
David Jardin - @snipersister - https://www.djumla.de/ & Yves Hoppe - @yvesh - https://compojoom.com/
121121

122122
For giving me the inspiration for the plugin and their feedback on the actual implementation. Thanks :+1:
123+
124+
## Release steps
125+
126+
- `build/build.sh`
127+
- `git commit -am 'prepare release HttpHeader 1.0.x'`
128+
- `git tag -s '1.0.x' -m 'HttpHeader 1.0.x'`
129+
- `git push origin --tags`
130+
- create the release on GitHub
131+
- `git push origin master`

build/build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
EXTENSION_ZIP_FILENAME="build/plg_system_httpheader.zip"
3+
EXTENSION_ELEMENT="httpheader"
4+
if [ ! -f "$EXTENSION_ELEMENT.xml" ]; then cd ..; fi
5+
if [ -f "$EXTENSION_ZIP_FILENAME" ]; then rm $EXTENSION_ZIP_FILENAME; fi
6+
zip -r $EXTENSION_ZIP_FILENAME language/ "$EXTENSION_ELEMENT.php" "$EXTENSION_ELEMENT.xml" script.php --quiet
7+
SHA512=$(sha512sum $EXTENSION_ZIP_FILENAME | awk '{print $1}')
8+
sed -i -e "s/\(<sha512>\).*\(<\/sha512>\)/<sha512>$SHA512<\/sha512>/g" update.xml
9+
echo 'package and update server ready'

httpheader.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<extension version="3.9" type="plugin" group="system" method="upgrade">
33
<name>plg_system_httpheader</name>
4-
<creationDate>March 2019</creationDate>
4+
<creationDate>24.03.2020</creationDate>
55
<author>Tobias Zulauf</author>
6-
<copyright>(C) 2017 - 2019 Tobias Zulauf All rights reserved.</copyright>
6+
<copyright>(C) 2017 - 2020 Tobias Zulauf All rights reserved.</copyright>
77
<authorUrl>https://www.jah-tz.de</authorUrl>
8-
<version>1.0.11</version>
8+
<version>1.0.12</version>
99
<license>GNU/GPL Version 2 or later</license>
1010
<description>PLG_SYSTEM_HTTPHEADER_XML_DESCRIPTION</description>
1111
<scriptfile>script.php</scriptfile>

update.xml

Lines changed: 45 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,45 @@
1-
<?xml version="1.0" ?>
2-
<updates>
3-
<update>
4-
<name>HttpHeader 1.0.11</name>
5-
<description>HttpHeader Plugin</description>
6-
<element>httpheader</element>
7-
<type>plugin</type>
8-
<folder>system</folder>
9-
<client>site</client>
10-
<version>1.0.11</version>
11-
<infourl title="HttpHeader Plugin">https://github.com/zero-24/plg_system_httpheader</infourl>
12-
<downloads>
13-
<downloadurl type="full" format="zip">https://github.com/zero-24/plg_system_httpheader/releases/download/1.0.11/plg_system_httpheader.zip</downloadurl>
14-
</downloads>
15-
<sha512>9a3963c18a00b597618576e5ff325c7e93dcc2c933d0e741aa531f7dd2507065e3f945cc7f790571fac42ba193ba846bbd4e6ad1fdac2eacf2204ea5d396e3f7</sha512>
16-
<tags>
17-
<tag>stable</tag>
18-
</tags>
19-
<maintainer>Tobias Zulauf</maintainer>
20-
<maintainerurl>https://www.jah-tz.de</maintainerurl>
21-
<php_minimum>7.0.0</php_minimum>
22-
<targetplatform name="joomla" version="3.[89]"/>
23-
</update>
24-
</updates>
1+
<?xml version="1.0" ?>
2+
<updates>
3+
<update>
4+
<name>HttpHeader 1.0.11</name>
5+
<description>HttpHeader Plugin</description>
6+
<element>httpheader</element>
7+
<type>plugin</type>
8+
<folder>system</folder>
9+
<client>site</client>
10+
<version>1.0.11</version>
11+
<infourl title="HttpHeader Plugin">https://github.com/zero-24/plg_system_httpheader</infourl>
12+
<downloads>
13+
<downloadurl type="full" format="zip">https://github.com/zero-24/plg_system_httpheader/releases/download/1.0.11/plg_system_httpheader.zip</downloadurl>
14+
</downloads>
15+
<sha512>a7cce92c0948d254680b1f5515e686d0718926aaccd78fa22837f22b451f6278bfd9d91dcb04423c1160370288d1215b84bc1964eab025d34cf022b36a4702bb</sha512>
16+
<tags>
17+
<tag>stable</tag>
18+
</tags>
19+
<maintainer>Tobias Zulauf</maintainer>
20+
<maintainerurl>https://www.jah-tz.de</maintainerurl>
21+
<php_minimum>7.0.0</php_minimum>
22+
<targetplatform name="joomla" version="3.([89]|10)"/>
23+
</update>
24+
<update>
25+
<name>HttpHeader 1.0.11</name>
26+
<description>HttpHeader Plugin</description>
27+
<element>httpheader</element>
28+
<type>plugin</type>
29+
<folder>system</folder>
30+
<client>site</client>
31+
<version>1.0.11</version>
32+
<infourl title="HttpHeader Plugin">https://github.com/zero-24/plg_system_httpheader</infourl>
33+
<downloads>
34+
<downloadurl type="full" format="zip">https://github.com/zero-24/plg_system_httpheader/releases/download/1.0.11/plg_system_httpheader.zip</downloadurl>
35+
</downloads>
36+
<sha512>a7cce92c0948d254680b1f5515e686d0718926aaccd78fa22837f22b451f6278bfd9d91dcb04423c1160370288d1215b84bc1964eab025d34cf022b36a4702bb</sha512>
37+
<tags>
38+
<tag>stable</tag>
39+
</tags>
40+
<maintainer>Tobias Zulauf</maintainer>
41+
<maintainerurl>https://www.jah-tz.de</maintainerurl>
42+
<php_minimum>7.0.0</php_minimum>
43+
<targetplatform name="joomla" version="4.0"/>
44+
</update>
45+
</updates>

0 commit comments

Comments
 (0)