mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Fix build problems pipeline (#3761)
* tentative number one
* add more log
* write folder
* Revert "change unzip lib"
This reverts commit 9eb0833d2f
.
* travis
* fix script download
This commit is contained in:
13
scripts/upload-build-lib-in-cs.js
Executable file → Normal file
13
scripts/upload-build-lib-in-cs.js
Executable file → Normal file
@@ -3,8 +3,7 @@ var AlfrescoApi = require('alfresco-js-api-node');
|
||||
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
var AdmZip = require('adm-zip');
|
||||
var writeZip = new AdmZip();
|
||||
var archiver = require('archiver');
|
||||
|
||||
writeZipLib = async function (zipName, zipFolder) {
|
||||
|
||||
@@ -12,8 +11,14 @@ writeZipLib = async function (zipName, zipFolder) {
|
||||
fs.mkdirSync(zipFolder);
|
||||
}
|
||||
|
||||
writeZip.addFile(path.join(__dirname, `../lib/dist/${zipName}`), Buffer.alloc(0));
|
||||
return writeZip.writeZip(`${zipName}.zip`);
|
||||
// create a file to stream archive data to.
|
||||
let output = fs.createWriteStream(path.join(zipFolder, `${zipName}.zip`));
|
||||
let archive = archiver('zip');
|
||||
|
||||
archive.pipe(output);
|
||||
archive.directory(path.join(__dirname, `../lib/dist/${zipName}`), zipName);
|
||||
|
||||
return archive.finalize();
|
||||
};
|
||||
|
||||
async function main() {
|
||||
|
Reference in New Issue
Block a user