@24i/smartapps-bigscreen-rnv-build-engine 0.17.6-alpha.4 → 0.17.6-alpha.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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getProductionZipFilePath = exports.resolveZippedPlatformBuildsRelativeFilePath = exports.resolvePackageVersions = exports.resolveBuildFileExtension = exports.resolveUsedFlavours = exports.resolveSupportedPlatforms = exports.getBaseConfig = exports.resolveBuildFileName = exports.resolveBuildFileBaseName = exports.resolveHbbtvDeployConfig = exports.resolveHbbtvDeployUrl = exports.resolveHbbtvRemoteBuildDirRelativePath = exports.resolveDeployLocations = exports.resolveBuildVersionOffset = exports.resolveBuildVersion = exports.resolveBuildEnvName = exports.resolveBaseUrl = void 0;
3
+ exports.getProductionZipFileRelativePath = exports.resolveZippedPlatformBuildsRelativeFilePath = exports.resolvePackageVersions = exports.resolveBuildFileExtension = exports.resolveUsedFlavours = exports.resolveSupportedPlatforms = exports.getBaseConfig = exports.resolveBuildFileName = exports.resolveBuildFileBaseName = exports.resolveHbbtvDeployConfig = exports.resolveHbbtvDeployUrl = exports.resolveHbbtvRemoteBuildDirRelativePath = exports.resolveDeployLocations = exports.resolveBuildVersionOffset = exports.resolveBuildVersion = exports.resolveBuildEnvName = exports.resolveBaseUrl = void 0;
4
4
  var resolveBaseUrl_1 = require("./resolveBaseUrl");
5
5
  Object.defineProperty(exports, "resolveBaseUrl", { enumerable: true, get: function () { return resolveBaseUrl_1.resolveBaseUrl; } });
6
6
  var resolveBuildEnvName_1 = require("./resolveBuildEnvName");
@@ -33,5 +33,5 @@ var resolvePackageVersions_1 = require("./resolvePackageVersions");
33
33
  Object.defineProperty(exports, "resolvePackageVersions", { enumerable: true, get: function () { return resolvePackageVersions_1.resolvePackageVersions; } });
34
34
  var resolveZippedPlatformBuildsRelativeFilePath_1 = require("./resolveZippedPlatformBuildsRelativeFilePath");
35
35
  Object.defineProperty(exports, "resolveZippedPlatformBuildsRelativeFilePath", { enumerable: true, get: function () { return resolveZippedPlatformBuildsRelativeFilePath_1.resolveZippedPlatformBuildsRelativeFilePath; } });
36
- var resolveProductionZipFilePath_1 = require("./resolveProductionZipFilePath");
37
- Object.defineProperty(exports, "getProductionZipFilePath", { enumerable: true, get: function () { return resolveProductionZipFilePath_1.getProductionZipFilePath; } });
36
+ var resolveProductionZipFileRelativePath_1 = require("./resolveProductionZipFileRelativePath");
37
+ Object.defineProperty(exports, "getProductionZipFileRelativePath", { enumerable: true, get: function () { return resolveProductionZipFileRelativePath_1.getProductionZipFileRelativePath; } });
@@ -23,9 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.getProductionZipFilePath = void 0;
26
+ exports.getProductionZipFileRelativePath = void 0;
27
27
  const path = __importStar(require("path"));
28
- const getProductionZipFilePath = (c) => {
28
+ const getProductionZipFileRelativePath = (c) => {
29
29
  const { appNameInFileName } = c.buildConfig.common;
30
30
  const buildVersion = c.buildConfig.common.packageVersion;
31
31
  const { platformBuildsDir } = c.buildConfig.paths;
@@ -33,4 +33,4 @@ const getProductionZipFilePath = (c) => {
33
33
  const zipFileName = `${appNameInFileName}.production_packages_v${buildVersion}.zip`;
34
34
  return path.join(platformBuildsDirPath, zipFileName);
35
35
  };
36
- exports.getProductionZipFilePath = getProductionZipFilePath;
36
+ exports.getProductionZipFileRelativePath = getProductionZipFileRelativePath;
@@ -29,7 +29,7 @@ const path = __importStar(require("path"));
29
29
  const fse = __importStar(require("fs-extra"));
30
30
  const forEachSupportedPlatformFlavour_1 = require("../utils/forEachSupportedPlatformFlavour");
31
31
  const resolvers_1 = require("../resolvers");
32
- const getZippedDirPath = (c) => {
32
+ const getZippedDirRelativePath = (c) => {
33
33
  const { platformBuildsDir } = c.buildConfig.paths;
34
34
  return path.join(platformBuildsDir, 'zipped_production_packages');
35
35
  };
@@ -41,7 +41,7 @@ const buildTask = (options, c) => {
41
41
  const buildDirName = `${flavour}_${platform}`;
42
42
  const buildDirPath = path.join(platformBuildsDir, buildDirName);
43
43
  const buildOutputDirPath = path.join(buildDirPath, 'output');
44
- const zippedDir = path.join(getZippedDirPath(c), platform);
44
+ const zippedDir = path.join(getZippedDirRelativePath(c), platform);
45
45
  fse.copySync(buildOutputDirPath, zippedDir);
46
46
  fs.rmSync(buildDirPath, { recursive: true, force: true });
47
47
  };
@@ -52,8 +52,8 @@ const buildProductionAll = () => {
52
52
  c.runtime.scheme = scheme;
53
53
  (0, forEachSupportedPlatformFlavour_1.forEachSupportedPlatformFlavour)(c, (options) => buildTask(options, c), { schemes, schemeIndex });
54
54
  });
55
- const zippedDirPath = getZippedDirPath(c);
56
- const zipFilePath = (0, resolvers_1.getProductionZipFilePath)(c);
55
+ const zippedDirPath = path.resolve(getZippedDirRelativePath(c));
56
+ const zipFilePath = path.resolve((0, resolvers_1.getProductionZipFileRelativePath)(c));
57
57
  (0, child_process_1.execSync)(`zip -r ${zipFilePath} *`, { cwd: `${zippedDirPath}` });
58
58
  fs.rmSync(zippedDirPath, { recursive: true, force: true });
59
59
  return true;
@@ -63,7 +63,7 @@ const deployProductionToAppCenter = (c) => {
63
63
  return;
64
64
  const { appName: centerAppName } = appCenterConfig;
65
65
  const token = getAppCenterToken();
66
- const zipPath = (0, index_1.getProductionZipFilePath)(c);
66
+ const zipPath = (0, index_1.getProductionZipFileRelativePath)(c);
67
67
  const { appName, packageVersion } = c.buildConfig.common;
68
68
  if (!centerAppName || !token || !zipPath || !packageVersion)
69
69
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@24i/smartapps-bigscreen-rnv-build-engine",
3
- "version": "0.17.6-alpha.4",
3
+ "version": "0.17.6-alpha.5",
4
4
  "description": "Package with build engine for SmartApps BIGscreen projects...",
5
5
  "main": "dist/src/index.js",
6
6
  "scripts": {