@open-audio-stack/core 0.1.22 → 0.1.23
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.
|
@@ -222,10 +222,10 @@ export class ManagerLocal extends Manager {
|
|
|
222
222
|
formatDir = presetFormatDir;
|
|
223
223
|
if (this.type === RegistryType.Projects)
|
|
224
224
|
formatDir = projectFormatDir;
|
|
225
|
-
archiveExtract(filePath, dirSource);
|
|
225
|
+
await archiveExtract(filePath, dirSource);
|
|
226
226
|
// Move entire directory, maintaining the same folder structure.
|
|
227
227
|
if (pkgVersion.type === PluginType.Sampler) {
|
|
228
|
-
const dirTarget = path.join(this.typeDir,
|
|
228
|
+
const dirTarget = path.join(this.typeDir, 'Samplers', dirSub);
|
|
229
229
|
dirCreate(dirTarget);
|
|
230
230
|
dirMove(dirSource, dirTarget);
|
|
231
231
|
fileCreateJson(path.join(dirTarget, 'index.json'), pkgVersion);
|
|
@@ -302,7 +302,7 @@ export class ManagerLocal extends Manager {
|
|
|
302
302
|
return this.log(`Package ${slug} version ${versionNum} not installed`);
|
|
303
303
|
// Elevate permissions if not running as admin.
|
|
304
304
|
if (!isAdmin() && !isTests()) {
|
|
305
|
-
let command = `--appDir "${this.config.get('appDir')}" --operation "
|
|
305
|
+
let command = `--appDir "${this.config.get('appDir')}" --operation "uninstall" --type "${this.type}" --id "${slug}"`;
|
|
306
306
|
if (version)
|
|
307
307
|
command += ` --ver "${version}"`;
|
|
308
308
|
if (this.debug)
|
package/build/helpers/file.js
CHANGED
|
@@ -23,8 +23,8 @@ export async function archiveExtract(filePath, dirPath) {
|
|
|
23
23
|
const zip = new AdmZip(filePath);
|
|
24
24
|
return zip.extractAllTo(dirPath);
|
|
25
25
|
}
|
|
26
|
-
else if (ext === '.tar' || ext === '.
|
|
27
|
-
return await tar.
|
|
26
|
+
else if (ext === '.tar' || ext === '.gz' || ext === '.tgz') {
|
|
27
|
+
return await tar.extract({
|
|
28
28
|
file: filePath,
|
|
29
29
|
cwd: dirPath,
|
|
30
30
|
});
|
|
@@ -5,7 +5,7 @@ export declare enum FileFormat {
|
|
|
5
5
|
DebianPackage = "deb",// Installer
|
|
6
6
|
ExecutableInstaller = "exe",// Installer
|
|
7
7
|
RedHatPackage = "rpm",// Installer
|
|
8
|
-
Tarball = "
|
|
8
|
+
Tarball = "gz",// Archive
|
|
9
9
|
TarballLegacy = "tgz",// Archive
|
|
10
10
|
WindowsInstaller = "msi",// Installer
|
|
11
11
|
Zip = "zip",// Archive
|
|
@@ -9,7 +9,7 @@ export var FileFormat;
|
|
|
9
9
|
FileFormat["DebianPackage"] = "deb";
|
|
10
10
|
FileFormat["ExecutableInstaller"] = "exe";
|
|
11
11
|
FileFormat["RedHatPackage"] = "rpm";
|
|
12
|
-
FileFormat["Tarball"] = "
|
|
12
|
+
FileFormat["Tarball"] = "gz";
|
|
13
13
|
FileFormat["TarballLegacy"] = "tgz";
|
|
14
14
|
FileFormat["WindowsInstaller"] = "msi";
|
|
15
15
|
FileFormat["Zip"] = "zip";
|