diff --git a/.gitignore b/.gitignore index c7adeb9..7fa2c65 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules/ *.swp coverage/ .vscode/ +.idea/ \ No newline at end of file diff --git a/lib/upload.js b/lib/upload.js index ced2683..d572b7d 100644 --- a/lib/upload.js +++ b/lib/upload.js @@ -13,7 +13,7 @@ var shelljs = require('shelljs'); var log = require('./logging').logger; var chalk = require('chalk'); -var TEMP_FILENAME = 'www.zip'; +var TEMP_FILENAME = ''; var Upload = module.exports; Upload.doUpload = function doUpload(appDirectory, jar, note, deploy) { @@ -29,6 +29,8 @@ Upload.doUpload = function doUpload(appDirectory, jar, note, deploy) { var documentRoot = project.get('documentRoot') || 'www'; var indexPath = path.join(appDirectory, documentRoot, 'index.html'); var upload; + + TEMP_FILENAME = documentRoot + '.zip'; try { return Upload.addCacheBusters(indexPath) .then(function() {