@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
|
-
|
|
115
|
-
|
|
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
|
-
|
|
119
|
-
|
|
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
|
-
|
|
123
|
-
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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