@24i/smartapps-bigscreen-rnv-build-engine 0.12.1-alpha.1714 → 0.12.1-alpha.1716
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.
|
@@ -57,7 +57,9 @@ const zipOutput = async (c) => {
|
|
|
57
57
|
(0, child_process_1.execSync)(`zip -r ${outputDirectory}/${fileName} *`, { cwd: `${tmpOutputDirectory}` });
|
|
58
58
|
await fs.rm(tmpOutputDirectory, { recursive: true, force: true });
|
|
59
59
|
}
|
|
60
|
-
catch {
|
|
60
|
+
catch {
|
|
61
|
+
throw new Error('Unable to zip the output folder');
|
|
62
|
+
}
|
|
61
63
|
};
|
|
62
64
|
const createVSSolution = async (c, outputPath, manifest) => {
|
|
63
65
|
logTask('createVSSolution');
|
|
@@ -66,7 +68,14 @@ const createVSSolution = async (c, outputPath, manifest) => {
|
|
|
66
68
|
const platform = new manifoldjs_windows10_1.Platform('package', ['windows10']);
|
|
67
69
|
await platform.create(manifest, outputPath, ['windows10'], '');
|
|
68
70
|
}
|
|
69
|
-
catch {
|
|
71
|
+
catch (e) {
|
|
72
|
+
if (e instanceof Error) {
|
|
73
|
+
if (!e.message.includes('Error retrieving information for module')) {
|
|
74
|
+
console.error(e.message);
|
|
75
|
+
throw new Error('Failed to create VSSolution');
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
70
79
|
};
|
|
71
80
|
const createHostedApplication = async (c) => {
|
|
72
81
|
logTask('createHostedApplication');
|
|
@@ -111,8 +120,7 @@ const replacePublisherId = async (c, basePath) => {
|
|
|
111
120
|
await fs.writeFile(output, appxmanifest ?? '');
|
|
112
121
|
}
|
|
113
122
|
catch {
|
|
114
|
-
|
|
115
|
-
console.log(errorMessage);
|
|
123
|
+
throw new Error('Failed to modify the xbox appxmanifest.xml');
|
|
116
124
|
}
|
|
117
125
|
};
|
|
118
126
|
const replaceImages = async (c) => {
|
|
@@ -132,7 +140,7 @@ const replaceImages = async (c) => {
|
|
|
132
140
|
await fs.rm(appIconsDirectory, { recursive: true, force: true });
|
|
133
141
|
}
|
|
134
142
|
catch {
|
|
135
|
-
|
|
143
|
+
throw new Error('Failed to replace the xbox icons');
|
|
136
144
|
}
|
|
137
145
|
};
|
|
138
146
|
const buildXboxProject = async (c) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@24i/smartapps-bigscreen-rnv-build-engine",
|
|
3
|
-
"version": "0.12.1-alpha.
|
|
3
|
+
"version": "0.12.1-alpha.1716+db06644f",
|
|
4
4
|
"description": "Package with build engine for SmartApps BIGscreen projects...",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"keywords": [],
|
|
79
79
|
"author": "24i",
|
|
80
80
|
"license": "ISC",
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "db06644f7751af2c65dbb4644c7526b2ff2ed005"
|
|
82
82
|
}
|