Skip to content
Snippets Groups Projects
Commit 62fe5c83 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Create script to build livechat on windows

parent 18617047
No related merge requests found
......@@ -2,8 +2,12 @@ var fs = Npm.require('fs');
var path = Npm.require('path');
var shell = Npm.require('shelljs');
var curPath = path.resolve('.')
var curPath = path.resolve('.');
var packagePath = path.join(path.resolve('.'), 'packages', 'rocketchat-livechat');
var pluginPath = path.join(packagePath, 'plugin');
shell.exec('sh '+pluginPath+'/build.sh');
if (process.platform === 'win32') {
shell.exec(pluginPath+'/build.bat');
} else {
shell.exec('sh '+pluginPath+'/build.sh');
}
@echo off
cd packages/rocketchat-livechat/app
meteor build .meteor/build/ --directory
cd ..
mkdir public
rm -f public/livechat.css
rm -f public/livechat.js
rm -f public/head.html
cp app/.meteor/build/bundle/programs/web.browser/*.css public/livechat.css
cp app/.meteor/build/bundle/programs/web.browser/*.js public/livechat.js
cp app/.meteor/build/bundle/programs/web.browser/head.html public/head.html
::echo "body {background-color: red;}" > livechat.css
rm -rf app/.meteor/build/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment