Permalink
Browse files

selectively copy only good necessary files

  • Loading branch information...
coolaj86 committed May 26, 2012
1 parent d57559a commit 770019d7f0520260e3f9a6a50e7312a90e453b09
Showing with 17 additions and 4 deletions.
  1. +12 −1 deploy.js
  2. +2 −2 package.json
  3. +3 −1 server/installer.js
View
@@ -83,13 +83,24 @@
, chunks = []
;
- tar = spawn('tar', ['-czf', '-', '.']);
+ tar = spawn('tar', ['-czf', '-'
+ , 'bin'
+ , 'browser'
+ , 'node_modules'
+ , 'package.json'
+ , 'server'
+ , 'server.js'
+ , 'webclient-deployed'
+ ]);
+
tar.stdout.on('data', function (chunk) {
chunks.push(chunk);
});
+
tar.stderr.on('data', function (chunk) {
util.print(chunk.toString('utf8'));
});
+
tar.on('exit', function (code) {
var url = wacProto + 'somethingkindasecret:yknow@' + wacHost + '/version/' + releaseLevel
, buffer = Buffer.concat(chunks)
View
@@ -5,7 +5,7 @@
],
"name": "webappcenter-client",
"description": "The client (laptop / desktop) side of appr.",
- "version": "0.1.6",
+ "version": "0.1.09",
"repository": {
"url": "git://github.com/coolaj86/appr-client.git"
},
@@ -43,4 +43,4 @@
"connect_router": "~1.8.6",
"fs.extra": "~1.1.1"
}
-}
+}
View
@@ -15,9 +15,11 @@
, weirdThing = false
// careful to keep pkgRoot as the real root
, pkgRoot = path.join(__dirname, '..')
+ , tmpPath = process.env.TEMP || process.env.TMPDIR || '/tmp'
;
- if(process.platform === 'win32') {
+ if(/^win/.exec(process.platform)) {
+ //tmpPath = process.env['TEMP'];
weirdThing = true;
}

0 comments on commit 770019d

Please sign in to comment.