gf-packages-cli 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/exportPackage.js +1 -2
package/package.json
CHANGED
package/src/exportPackage.js
CHANGED
|
@@ -5,7 +5,6 @@ const { execSync, spawn } = require('child_process');
|
|
|
5
5
|
const fs = require('fs');
|
|
6
6
|
const path = require('path');
|
|
7
7
|
const os = require('os');
|
|
8
|
-
const AdmZip = require('adm-zip');
|
|
9
8
|
const archiver = require('archiver');
|
|
10
9
|
const { getDeviceList, selectDevice, runAdbSync } = require('../lib/tools/adb.js');
|
|
11
10
|
const { getThirdPartyPackages, selectPackages } = require('../lib/common/appCommon.js');
|
|
@@ -96,7 +95,7 @@ function buildApks(tmpDir, targetApksPath) {
|
|
|
96
95
|
if (apkFiles.length === 0) return resolve(false);
|
|
97
96
|
|
|
98
97
|
const output = fs.createWriteStream(targetApksPath);
|
|
99
|
-
const archive = archiver(
|
|
98
|
+
const archive = new archiver.ZipArchive();
|
|
100
99
|
|
|
101
100
|
output.on('close', () => resolve(true));
|
|
102
101
|
archive.on('error', reject);
|