cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [1/2] git commit: CB-6420: tools release now use npm pack instead of git archive
Date Tue, 08 Apr 2014 22:16:05 GMT
Repository: cordova-coho
Updated Branches:
  refs/heads/master 045a2b72f -> 22087c798


CB-6420: tools release now use npm pack instead of git archive


Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/d1ae6653
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/d1ae6653
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/d1ae6653

Branch: refs/heads/master
Commit: d1ae66535a0af69adfd8e8f12b5536f2ea8de038
Parents: d5b6d74
Author: Steven Gill <stevengill97@gmail.com>
Authored: Tue Apr 8 16:15:22 2014 -0600
Committer: Steven Gill <stevengill97@gmail.com>
Committed: Tue Apr 8 16:15:22 2014 -0600

----------------------------------------------------------------------
 coho | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/d1ae6653/coho
----------------------------------------------------------------------
diff --git a/coho b/coho
index 00d5022..b765514 100755
--- a/coho
+++ b/coho
@@ -598,8 +598,15 @@ function createArchiveCommand(argv) {
     forEachRepo(repos, function(repo) {
         var tag = argv.tag || findMostRecentTag();
         print('Creating archive of ' + repo.repoName + '@' + tag);
-        var outPath = path.join(absOutDir, repo.repoName + '-' + tag + '.zip');
-        execHelper('git archive --format zip --prefix ' + repo.repoName + '/ -o "' + outPath
+ '" ' + tag);
+
+        if(repo.id==='plugman'|| repo.id==='cli'){
+            var tgzname = execHelper('npm pack', true);
+            var outPath = path.join(absOutDir, 'cordova-' + tgzname);
+            shjs.mv(tgzname, outPath);
+        }else{
+            var outPath = path.join(absOutDir, repo.repoName + '-' + tag + '.zip');
+            execHelper('git archive --format zip --prefix ' + repo.repoName + '/ -o "' +
outPath + '" ' + tag);
+        }
         if (argv.sign) {
             execHelper('gpg --armor --detach-sig --output "' + outPath + '.asc" "' + outPath
+ '"');
             fs.writeFileSync(outPath + '.md5', computeHash(outPath, 'MD5'));
@@ -608,7 +615,7 @@ function createArchiveCommand(argv) {
     });
     print();
     print('Archives created.');
-    print('Verify them using: coho verify-archive ' + path.join(outDir, '*.zip'));
+    print('Verify them using: coho verify-archive ' + path.join(outDir, '*.zip') + ' ' +
path.join(outDir, '*.tgz'));
 }
 
 function computeHash(path, algo) {


Mime
View raw message