Permalink
Browse files
selectively copy only good necessary files
- Loading branch information...
Showing
with
17 additions
and
4 deletions.
-
+12
−1
deploy.js
-
+2
−2
package.json
-
+3
−1
server/installer.js
|
@@ -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)
|
|
|
|
@@ -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"
|
|
|
}
|
|
|
-}
|
|
|
+}
|
|
@@ -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