-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.xml
150 lines (149 loc) · 7.74 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?xml version="1.0" encoding="UTF-8" ?>
<project name="Light Portal" default="standard_edition">
<target name="update_version">
<property file="build.properties" />
<xmlproperty file="${source_file}" keepRoot="false" />
<echo message="Current version is ${version}" />
<input message="What is your release type?" propertyName="release.type" defaultValue="thesame" validargs="thesame,major,minor,bugfix" />
<echo message="Release type: ${release.type}" />
<if>
<equals arg1="${release.type}" arg2="thesame" />
<then>
<property name="release.version" value="${version}" />
</then>
<else>
<version releasetype="${release.type}" startingVersion="${version}" property="release.version" />
<delete file="build.version" quiet="true" />
<echo message="${release.version}" />
<replaceregexp file="${source_file}" match="${version_search_pattern}" replace="${version_replace_pattern}" />
<replaceregexp file="${integration_file}" match="'LP_VERSION',\s*'(\d+\.\d+(?:.\d+)?)'" replace="'LP_VERSION', '${release.version}'"/>
</else>
</if>
</target>
<target name="standard_edition" depends="update_version">
<delete file="light_portal_${release.version}.zip" quiet="true" />
<zip destfile="light_portal_${release.version}.zip">
<fileset dir=".">
<include name="LICENSE" />
</fileset>
<fileset dir="./src">
<include name="Themes/**" />
<exclude name="**/.idea/**" />
<exclude name="Themes/default/css/light_portal/plugins.css" />
<exclude name="Themes/default/scripts/light_portal/dev/**" />
<exclude name="Themes/default/scripts/light_portal/app*" />
<exclude name="Themes/default/scripts/light_portal/plugins.js" />
<include name="Sources/**" />
<exclude name="Sources/index.php" />
<exclude name="Sources/LightPortal/Plugins/AdsBlock/**" />
<exclude name="Sources/LightPortal/Plugins/ApexCharts/**" />
<exclude name="Sources/LightPortal/Plugins/BootstrapIcons/**" />
<exclude name="Sources/LightPortal/Plugins/DiceBear/**" />
<exclude name="Sources/LightPortal/Plugins/Disqus/**" />
<exclude name="Sources/LightPortal/Plugins/EasyMarkdownEditor/**" />
<exclude name="Sources/LightPortal/Plugins/EhPortalMigration/**" />
<exclude name="Sources/LightPortal/Plugins/EzPortalMigration/**" />
<exclude name="Sources/LightPortal/Plugins/FaBoardIcons/**" />
<exclude name="Sources/LightPortal/Plugins/FacebookComments/**" />
<exclude name="Sources/LightPortal/Plugins/Giscus/**" />
<exclude name="Sources/LightPortal/Plugins/ImageUpload/**" />
<exclude name="Sources/LightPortal/Plugins/IndexNow/**" />
<exclude name="Sources/LightPortal/Plugins/Jodit/**" />
<exclude name="Sources/LightPortal/Plugins/LatteLayouts/**" />
<exclude name="Sources/LightPortal/Plugins/LineAwesomeIcons/**" />
<exclude name="Sources/LightPortal/Plugins/Markdown/**" />
<exclude name="Sources/LightPortal/Plugins/MaterialDesignIcons/**" />
<exclude name="Sources/LightPortal/Plugins/MediaBlock/**" />
<exclude name="Sources/LightPortal/Plugins/Optimus/**" />
<exclude name="Sources/LightPortal/Plugins/PageScroll/**" />
<exclude name="Sources/LightPortal/Plugins/PluginMaker/**" />
<exclude name="Sources/LightPortal/Plugins/PrettyUrls/**" />
<exclude name="Sources/LightPortal/Plugins/SiteList/**" />
<exclude name="Sources/LightPortal/Plugins/Snowflakes/**" />
<exclude name="Sources/LightPortal/Plugins/TagList/**" />
<exclude name="Sources/LightPortal/Plugins/TinyPortalMigration/**" />
<exclude name="Sources/LightPortal/Plugins/TopicRatingBar/**" />
<exclude name="Sources/LightPortal/Plugins/TwigLayouts/**" />
<exclude name="Sources/LightPortal/Plugins/Uicons/**" />
<exclude name="Sources/LightPortal/Plugins/VkComments/**" />
<exclude name="Sources/LightPortal/Plugins/YandexTurbo/**" />
<exclude name="Sources/LightPortal/composer.json" />
<exclude name="Sources/LightPortal/composer.lock" />
<exclude name="Sources/LightPortal/create_index.php" />
<exclude name="Sources/LightPortal/update_plugins.php" />
<include name="package-info.xml" />
<include name="*.php" />
</fileset>
</zip>
</target>
<target name="dev_edition" depends="update_version">
<delete file="light_portal_${release.version}_dev_edition.zip" quiet="true" />
<zip destfile="light_portal_${release.version}_dev_edition.zip">
<fileset dir=".">
<include name="LICENSE" />
</fileset>
<fileset dir="./src">
<include name="Themes/**" />
<exclude name="Themes/default/languages/**" />
<exclude name="**/.idea/**" />
<exclude name="Themes/default/css/light_portal/plugins.css" />
<exclude name="Themes/default/scripts/light_portal/app*" />
<exclude name="Themes/default/scripts/light_portal/plugins.js" />
<include name="Sources/**" />
<exclude name="Sources/index.php" />
<exclude name="Sources/LightPortal/Plugins/ApexCharts/**" />
<exclude name="Sources/LightPortal/Plugins/DiceBear/**" />
<exclude name="Sources/LightPortal/Plugins/ImageUpload/**" />
<exclude name="Sources/LightPortal/Plugins/IndexNow/**" />
<exclude name="Sources/LightPortal/Plugins/Jodit/**" />
<exclude name="Sources/LightPortal/Plugins/MediaBlock/**" />
<exclude name="Sources/LightPortal/Plugins/PageScroll/**" />
<exclude name="Sources/LightPortal/Plugins/YandexTurbo/**" />
<exclude name="Sources/LightPortal/Plugins/*/langs/**" />
<include name="package-info.xml" />
<include name="*.php" />
</fileset>
<fileset dir="./src">
<include name="Themes/default/languages/LightPortal/index.php" />
<include name="Themes/default/languages/LightPortal/LightPortal.english.php" />
</fileset>
<fileset dir="./src">
<include name="Sources/LightPortal/Plugins/*/langs/english.php" />
<include name="Sources/LightPortal/Plugins/*/langs/index.php" />
</fileset>
</zip>
</target>
<target name="geek_edition" depends="update_version">
<delete file="light_portal_${release.version}_geek_edition.zip" quiet="true" />
<zip destfile="light_portal_${release.version}_geek_edition.zip">
<fileset dir=".">
<include name="LICENSE" />
</fileset>
<fileset dir="./src">
<include name="Themes/**" />
<exclude name="Themes/default/languages/**" />
<exclude name="**/.idea/**" />
<exclude name="Themes/default/css/light_portal/plugins.css" />
<exclude name="Themes/default/scripts/light_portal/dev/**" />
<exclude name="Themes/default/scripts/light_portal/app*" />
<exclude name="Themes/default/scripts/light_portal/plugins.js" />
<include name="Sources/**" />
<exclude name="Sources/index.php" />
<exclude name="Sources/LightPortal/Plugins/**" />
<exclude name="Sources/LightPortal/composer.json" />
<exclude name="Sources/LightPortal/composer.lock" />
<exclude name="Sources/LightPortal/create_index.php" />
<exclude name="Sources/LightPortal/update_plugins.php" />
<include name="package-info.xml" />
<include name="*.php" />
</fileset>
<fileset dir="./src">
<include name="Themes/default/languages/LightPortal/index.php" />
<include name="Themes/default/languages/LightPortal/LightPortal.english.php" />
</fileset>
<fileset dir="./src">
<include name="Sources/LightPortal/Plugins/*.php" />
</fileset>
</zip>
</target>
</project>