mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-27 17:18:24 +08:00
Add plugin build script (ANT).
Webmail bilder script fix.
This commit is contained in:
parent
6779ccbe72
commit
388a688d9d
4 changed files with 86 additions and 5 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,10 +1,9 @@
|
|||
/.idea
|
||||
/local
|
||||
/nbproject
|
||||
/npm-debug.log
|
||||
/node_modules
|
||||
/build/local
|
||||
/build/dist
|
||||
/build/tmp
|
||||
/releases
|
||||
/data
|
||||
!/data/VERSION
|
|
@ -9,7 +9,7 @@ module.exports = function (grunt) {
|
|||
pkg: grunt.file.readJSON('package.json'),
|
||||
cfg: {
|
||||
devVersion: "0.0.0",
|
||||
releasesPath: 'releases',
|
||||
releasesPath: 'build/dist/releases',
|
||||
releasesSrcPath: '',
|
||||
releaseFolder: 'rainloop',
|
||||
releaseZipFile: 'rainloop.zip'
|
||||
|
|
82
build/plugin.xml
Normal file
82
build/plugin.xml
Normal file
|
@ -0,0 +1,82 @@
|
|||
<project name="Build" basedir=".">
|
||||
|
||||
<property name="INDEX_ROOT" value=".." />
|
||||
<property name="DIST_PATH" value="dist" />
|
||||
<property name="DIST_PLUGINS_PATH" value="dist/plugins" />
|
||||
|
||||
<scriptdef name="generateguid" language="javascript">
|
||||
<attribute name="property" />
|
||||
<![CDATA[
|
||||
importClass( java.util.UUID );
|
||||
|
||||
project.setProperty( attributes.get( "property" ), UUID.randomUUID() );
|
||||
]]>
|
||||
</scriptdef>
|
||||
|
||||
<target name="_pre_">
|
||||
<generateguid property="GUID" />
|
||||
<mkdir dir="${DIST_PATH}" />
|
||||
<mkdir dir="${DIST_PLUGINS_PATH}" />
|
||||
</target>
|
||||
|
||||
<target name="_build_plugin_" depends="_pre_">
|
||||
|
||||
<loadfile property="plugin-version" srcfile="${INDEX_ROOT}/plugins/${plugin-name}/VERSION" />
|
||||
|
||||
<mkdir dir="${DIST_PLUGINS_PATH}/${plugin-name}-${plugin-version}-${GUID}" />
|
||||
<mkdir dir="${DIST_PLUGINS_PATH}/${plugin-name}-${plugin-version}-${GUID}/${plugin-name}" />
|
||||
|
||||
<copy todir="${DIST_PLUGINS_PATH}/${plugin-name}-${plugin-version}-${GUID}/${plugin-name}">
|
||||
<fileset dir="${INDEX_ROOT}/plugins/${plugin-name}" />
|
||||
</copy>
|
||||
|
||||
<zip destfile="${DIST_PLUGINS_PATH}/${plugin-name}-${plugin-version}.zip"
|
||||
basedir="${DIST_PLUGINS_PATH}/${plugin-name}-${plugin-version}-${GUID}" update="true" />
|
||||
|
||||
<delete dir="${DIST_PLUGINS_PATH}/${plugin-name}-${plugin-version}-${GUID}" />
|
||||
|
||||
</target>
|
||||
|
||||
<target name="add-x-originating-ip-header">
|
||||
<antcall target="_build_plugin_">
|
||||
<param name="plugin-name" value="add-x-originating-ip-header"/>
|
||||
</antcall>
|
||||
</target>
|
||||
<target name="google-analytics">
|
||||
<antcall target="_build_plugin_">
|
||||
<param name="plugin-name" value="google-analytics"/>
|
||||
</antcall>
|
||||
</target>
|
||||
<target name="convert-headers-styles">
|
||||
<antcall target="_build_plugin_">
|
||||
<param name="plugin-name" value="convert-headers-styles"/>
|
||||
</antcall>
|
||||
</target>
|
||||
<target name="recaptcha">
|
||||
<antcall target="_build_plugin_">
|
||||
<param name="plugin-name" value="recaptcha"/>
|
||||
</antcall>
|
||||
</target>
|
||||
<target name="cpanel-change-password">
|
||||
<antcall target="_build_plugin_">
|
||||
<param name="plugin-name" value="cpanel-change-password"/>
|
||||
</antcall>
|
||||
</target>
|
||||
<target name="ispmanager-change-password">
|
||||
<antcall target="_build_plugin_">
|
||||
<param name="plugin-name" value="ispmanager-change-password"/>
|
||||
</antcall>
|
||||
</target>
|
||||
<target name="personal-address-book-mysql">
|
||||
<antcall target="_build_plugin_">
|
||||
<param name="plugin-name" value="personal-address-book-mysql"/>
|
||||
</antcall>
|
||||
</target>
|
||||
<target name="black-list">
|
||||
<antcall target="_build_plugin_">
|
||||
<param name="plugin-name" value="black-list"/>
|
||||
</antcall>
|
||||
</target>
|
||||
|
||||
|
||||
</project>
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"name": "RainLoop",
|
||||
"title": "RainLoop Webmail",
|
||||
"version": "1.4.2",
|
||||
"release": "525",
|
||||
"version": "1.5.0",
|
||||
"release": "526",
|
||||
"description": "Simple, modern & fast web-based email client",
|
||||
"homepage": "http://rainloop.net",
|
||||
"main": "Gruntfile.js",
|
||||
|
|
Loading…
Reference in a new issue