@24i/smartapps-bigscreen-rnv-build-engine 0.17.11-alpha.3 → 0.17.11

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.
@@ -110,17 +110,30 @@ const handleLinuxKeyring = () => {
110
110
  const setTizenCertificate = (c) => {
111
111
  const { TIZEN_SECURITY_PROFILE_NAME = '24i-SmartApps-BigScreen', TIZEN_AUTHOR_CERTIFICATE_RELATIVE_PATH = 'certificates/24i_smartapps_bigscreen_author.p12', TIZEN_AUTHOR_CERTIFICATE_PASSWORD, } = process.env;
112
112
  const tizenCliPath = c.cli.tizen;
113
+ const isDebug = c.runtime.scheme === constants_1.BuildSchemes.DEBUG;
113
114
  if (!fs.existsSync(TIZEN_AUTHOR_CERTIFICATE_RELATIVE_PATH)) {
114
- console.log(`'process.env.TIZEN_AUTHOR_CERTIFICATE_RELATIVE_PATH' points to not existing location: ${TIZEN_AUTHOR_CERTIFICATE_RELATIVE_PATH}`);
115
- return false;
115
+ const err = `'process.env.TIZEN_AUTHOR_CERTIFICATE_RELATIVE_PATH' points to not existing location: ${TIZEN_AUTHOR_CERTIFICATE_RELATIVE_PATH}`;
116
+ if (isDebug) {
117
+ rnv_1.Logger.logWarning(err);
118
+ return false;
119
+ }
120
+ throw new Error(err);
116
121
  }
117
122
  if (!TIZEN_AUTHOR_CERTIFICATE_PASSWORD) {
118
- console.log('\'process.env.TIZEN_AUTHOR_CERTIFICATE_PASSWORD\' password is not set');
119
- return false;
123
+ const err = `'process.env.TIZEN_AUTHOR_CERTIFICATE_PASSWORD' password is not set`;
124
+ if (isDebug) {
125
+ rnv_1.Logger.logWarning(err);
126
+ return false;
127
+ }
128
+ throw new Error(err);
120
129
  }
121
130
  if (!tizenCliPath) {
122
- console.log('\'c.cli.tizen\' is not set');
123
- return false;
131
+ const err = `'c.cli.tizen\' is not set`;
132
+ if (isDebug) {
133
+ rnv_1.Logger.logWarning(err);
134
+ return false;
135
+ }
136
+ throw new Error(err);
124
137
  }
125
138
  const spawnSyncReturn = (0, child_process_1.spawnSync)(tizenCliPath, [
126
139
  'security-profiles', 'add',
@@ -63,13 +63,10 @@ const buildCoreWebpackProject = async (c) => {
63
63
  ].filter(Boolean).join(' ');
64
64
  const wpConfigPath = `./platformBuilds/${appId}_${platform}/webpack.config.${configName}.js`;
65
65
  const wpCmd = `node ${wp} build --mode production --config ${wpConfigPath}`;
66
- const options = process.env.TRAVIS ? {
67
- interactive: true,
68
- mono: true,
69
- stdio: 'pipe',
70
- shell: false,
71
- } : {};
72
- await rnv_1.Exec.executeAsync(c, `npx cross-env ${envVars} ${wpCmd}`, options);
66
+ if (c.program.mono) {
67
+ rnv_1.Logger.logRaw(`Executing: npx cross-env ${envVars} ${wpCmd}`);
68
+ }
69
+ await rnv_1.Exec.executeAsync(c, `npx cross-env ${envVars} ${wpCmd}`);
73
70
  const coloredBuildDir = rnv_1.Logger.chalk().cyan(rnv_1.Common.getPlatformProjectDir(c));
74
71
  rnv_1.Logger.logSuccess(`Your build is located in ${coloredBuildDir}.`);
75
72
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@24i/smartapps-bigscreen-rnv-build-engine",
3
- "version": "0.17.11-alpha.3",
3
+ "version": "0.17.11",
4
4
  "description": "Package with build engine for SmartApps BIGscreen projects...",
5
5
  "main": "dist/src/index.js",
6
6
  "scripts": {