mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Road to the MIT
This commit is contained in:
parent
13d05dc2ff
commit
aa5d3fc89d
75 changed files with 392 additions and 2283 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under AGPL 3 */
|
||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under MIT */
|
||||
const gulp = require('gulp');
|
||||
const { config } = require('./config');
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under AGPL 3 */
|
||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under MIT */
|
||||
const gulp = require('gulp');
|
||||
const rimraf = require('gulp-rimraf');
|
||||
const fs = require('node-fs');
|
||||
|
|
@ -18,6 +18,6 @@ exports.zip = (srcDir, destDir, fileName) =>
|
|||
.pipe(require('gulp-zip')(fileName))
|
||||
.pipe(gulp.dest(destDir));
|
||||
|
||||
exports.getHead = () => (!config.community ? config.head.rainloop : config.head.agpl);
|
||||
exports.getHead = () => config.head.mit;
|
||||
|
||||
exports.cleanStatic = () => exports.del(config.paths.static);
|
||||
|
|
|
|||
|
|
@ -1,15 +1,13 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under AGPL 3 */
|
||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under MIT */
|
||||
const path = require('path');
|
||||
const { argv } = require('yargs');
|
||||
|
||||
const config = {
|
||||
head: {
|
||||
rainloop: '/* RainLoop Webmail (c) RainLoop Team | Licensed under RainLoop Software License */',
|
||||
agpl: '/* RainLoop Webmail (c) RainLoop Team | Licensed under AGPL v3 */'
|
||||
mit: '/* RainLoop Webmail (c) RainLoop Team | Licensed under MIT */'
|
||||
},
|
||||
devVersion: '0.0.0',
|
||||
releasesPath: 'build/dist/releases',
|
||||
community: !argv.pro,
|
||||
source: !!argv.source,
|
||||
watch: false,
|
||||
watchInterval: 1000,
|
||||
|
|
@ -20,7 +18,6 @@ const config = {
|
|||
cleanPath: '',
|
||||
zipSrcPath: '',
|
||||
zipFile: '',
|
||||
// zipFileShort: '',
|
||||
|
||||
paths: {}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under AGPL 3 */
|
||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under MIT */
|
||||
const gulp = require('gulp');
|
||||
|
||||
const concat = require('gulp-concat-util');
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under AGPL 3 */
|
||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under MIT */
|
||||
const gulp = require('gulp');
|
||||
|
||||
const concat = require('gulp-concat-util'),
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under AGPL 3 */
|
||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under MIT */
|
||||
/* eslint-disable consistent-return */
|
||||
|
||||
const gulp = require('gulp');
|
||||
|
|
@ -48,7 +48,7 @@ const owncloudSetup = (done) => {
|
|||
.replace('<version>0.0</version>', '<version>' + versionFull + '</version>')
|
||||
.replace(
|
||||
'<licence></licence>',
|
||||
'<licence>' + (config.community ? 'AGPLv3' : 'RainLoop Software License') + '</licence>'
|
||||
'<licence>MIT</licence>'
|
||||
)
|
||||
);
|
||||
|
||||
|
|
@ -58,8 +58,7 @@ const owncloudSetup = (done) => {
|
|||
config.destPath = config.releasesPath + '/owncloud/' + versionFull + '/';
|
||||
config.cleanPath = dist;
|
||||
config.zipSrcPath = dist;
|
||||
config.zipFile = 'rainloop-owncloud-app-' + (config.community ? '' : 'standard-') + versionFull + '.zip';
|
||||
// config.zipFileShort = 'rainloop' + (config.community ? '' : '-standard') + '.zip';
|
||||
config.zipFile = 'rainloop-owncloud-app-legacy-' + versionFull + '.zip';
|
||||
|
||||
done();
|
||||
};
|
||||
|
|
@ -80,10 +79,6 @@ const owncloudClean = (done) => {
|
|||
done();
|
||||
};
|
||||
|
||||
// const owncloudShortname = (done) => {
|
||||
// copy(config.destPath + config.zipFile, config.destPath + config.zipFileShort, done);
|
||||
// };
|
||||
|
||||
exports.owncloud = gulp.series(
|
||||
owncloudCopy,
|
||||
rainloopBuild,
|
||||
|
|
@ -92,5 +87,4 @@ exports.owncloud = gulp.series(
|
|||
owncloudSetup,
|
||||
owncloudZip,
|
||||
owncloudClean
|
||||
// owncloudShortname
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under AGPL 3 */
|
||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under MIT */
|
||||
/* eslint-disable consistent-return */
|
||||
const gulp = require('gulp');
|
||||
const fs = require('node-fs');
|
||||
|
|
@ -6,7 +6,7 @@ const chmod = require('gulp-chmod');
|
|||
|
||||
const pkg = require('../package.json');
|
||||
const { config } = require('./config');
|
||||
const { copy, zip, del } = require('./common');
|
||||
const { zip, del } = require('./common');
|
||||
|
||||
const rainloopCopy = () => {
|
||||
const versionFull = pkg.version,
|
||||
|
|
@ -32,23 +32,14 @@ const rainloopSetup = (done) => {
|
|||
fs
|
||||
.readFileSync('index.php', 'utf8')
|
||||
.replace("'APP_VERSION', '0.0.0'", "'APP_VERSION', '" + versionFull + "'")
|
||||
.replace(
|
||||
"'APP_VERSION_TYPE', 'source'",
|
||||
"'APP_VERSION_TYPE', '" + (config.community ? 'community' : 'standard') + "'"
|
||||
)
|
||||
);
|
||||
|
||||
fs.writeFileSync(dist + 'rainloop/v/' + versionFull + '/index.php.root', fs.readFileSync(dist + 'index.php'));
|
||||
|
||||
if (config.community) {
|
||||
require('rimraf').sync(dist + 'rainloop/v/' + versionFull + '/app/libraries/RainLoop/Providers/Prem.php');
|
||||
}
|
||||
|
||||
config.destPath = config.releasesPath + '/webmail/' + versionFull + '/';
|
||||
config.cleanPath = dist;
|
||||
config.zipSrcPath = dist;
|
||||
config.zipFile = 'rainloop-' + (config.community ? 'community-' : '') + versionFull + '.zip';
|
||||
// config.zipFileShort = 'rainloop-' + (config.community ? 'community-' : '') + 'latest.zip';
|
||||
config.zipFile = 'rainloop-legacy-' + versionFull + '.zip';
|
||||
|
||||
config.rainloopBuilded = true;
|
||||
|
||||
|
|
@ -71,8 +62,6 @@ const rainloopClean = (done) => {
|
|||
done();
|
||||
};
|
||||
|
||||
// const rainloopShortName = (done) => copy(config.destPath + config.zipFile, config.destPath + config.zipFileShort, done);
|
||||
|
||||
exports.rainloopBuild = gulp.series(rainloopCopy, rainloopSetup);
|
||||
|
||||
exports.rainloop = gulp.series(exports.rainloopBuild, rainloopZip, rainloopClean /*, rainloopShortName*/);
|
||||
exports.rainloop = gulp.series(exports.rainloopBuild, rainloopZip, rainloopClean);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under AGPL 3 */
|
||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under MIT */
|
||||
const gulp = require('gulp');
|
||||
const header = require('gulp-header');
|
||||
const stripbom = require('gulp-stripbom');
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under AGPL 3 */
|
||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under MIT */
|
||||
const gulp = require('gulp');
|
||||
|
||||
const { config } = require('./config');
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under AGPL 3 */
|
||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under MIT */
|
||||
const webpack = require('webpack');
|
||||
const gutil = require('gulp-util');
|
||||
|
||||
|
|
@ -34,5 +34,5 @@ const webpackCallback = (done) => (err, stats) => {
|
|||
};
|
||||
|
||||
exports.webpack = (done) => {
|
||||
webpack(webpackCfgBuilder(config.paths.staticJS, !config.community, 'production'), webpackCallback(done));
|
||||
webpack(webpackCfgBuilder(config.paths.staticJS, 'production'), webpackCallback(done));
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue