amxxpack 0.1.1 → 0.1.2
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.
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare const DOWNLOAD_HOST = "https://www.amxmodx.org";
|
|
2
2
|
export declare const SCRIPTING_DIR = "addons/amxmodx/scripting/";
|
|
3
3
|
export declare const EXTENSIONS_IGNORE_LIST: string[];
|
|
4
|
-
export declare const DOWNLOAD_DIR = ".downloads";
|
|
5
4
|
export declare enum CompilerPlatform {
|
|
6
5
|
Windows = "windows",
|
|
7
6
|
Linux = "linux",
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DistSource = exports.CompilerPlatform = exports.
|
|
3
|
+
exports.DistSource = exports.CompilerPlatform = exports.EXTENSIONS_IGNORE_LIST = exports.SCRIPTING_DIR = exports.DOWNLOAD_HOST = void 0;
|
|
4
4
|
exports.DOWNLOAD_HOST = 'https://www.amxmodx.org';
|
|
5
5
|
exports.SCRIPTING_DIR = 'addons/amxmodx/scripting/';
|
|
6
6
|
exports.EXTENSIONS_IGNORE_LIST = ['.sma'];
|
|
7
|
-
exports.DOWNLOAD_DIR = '.downloads';
|
|
8
7
|
var CompilerPlatform;
|
|
9
8
|
(function (CompilerPlatform) {
|
|
10
9
|
CompilerPlatform["Windows"] = "windows";
|
|
@@ -61,6 +61,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
61
61
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
62
|
var fs_1 = __importDefault(require("fs"));
|
|
63
63
|
var path_1 = __importDefault(require("path"));
|
|
64
|
+
var os_1 = __importDefault(require("os"));
|
|
64
65
|
var https_1 = __importDefault(require("https"));
|
|
65
66
|
var mkdirp_1 = __importDefault(require("mkdirp"));
|
|
66
67
|
var normalize_path_1 = __importDefault(require("normalize-path"));
|
|
@@ -73,7 +74,7 @@ function downloadDist(dist) {
|
|
|
73
74
|
return __generator(this, function (_a) {
|
|
74
75
|
switch (_a.label) {
|
|
75
76
|
case 0:
|
|
76
|
-
downloadDir = path_1.default.join(
|
|
77
|
+
downloadDir = path_1.default.join(os_1.default.tmpdir(), '.amxxpack/downloads');
|
|
77
78
|
return [4 /*yield*/, (0, mkdirp_1.default)(downloadDir)];
|
|
78
79
|
case 1:
|
|
79
80
|
_a.sent();
|