@directivegames/genesys.sdk 4.2.0 → 4.2.4
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.
package/dist/src/dependencies.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Includes dependencies from the main package.
|
|
10
10
|
*/
|
|
11
11
|
export const DEPENDENCIES = {
|
|
12
|
-
'@directivegames/genesys.js': '4.2.
|
|
12
|
+
'@directivegames/genesys.js': '4.2.5',
|
|
13
13
|
'@electron/rebuild': '4.0.2',
|
|
14
14
|
'@emotion/react': '11.14.0',
|
|
15
15
|
'@emotion/styled': '11.14.1',
|
|
@@ -115,38 +115,26 @@ async function updateProject(projectPath, onBeginVerifyProject, onEndVerifyProje
|
|
|
115
115
|
}
|
|
116
116
|
onEndVerifyProject();
|
|
117
117
|
if (updateItems.length > 0) {
|
|
118
|
-
|
|
119
|
-
dialog.showMessageBox(mainWindow, {
|
|
118
|
+
const { response } = await dialog.showMessageBox(mainWindow, {
|
|
120
119
|
type: 'info',
|
|
121
120
|
buttons: ['Update', 'Ignore'],
|
|
122
121
|
title: 'Project Update Required',
|
|
123
122
|
message: 'The project requires the following updates: ',
|
|
124
123
|
detail: updateItems.join('\n'),
|
|
125
|
-
}).then(async ({ response }) => {
|
|
126
|
-
if (response === 0) {
|
|
127
|
-
onBeginUpdateProject();
|
|
128
|
-
try {
|
|
129
|
-
await performProjectUpdate(projectPath, projectPackageJson, expectedPackageJson, projectPackageJsonPath);
|
|
130
|
-
}
|
|
131
|
-
catch (error) {
|
|
132
|
-
logger.log(`Error updating project: ${error.message}`);
|
|
133
|
-
// dialog.showMessageBox(mainWindow!, {
|
|
134
|
-
// type: 'error',
|
|
135
|
-
// buttons: ['OK'],
|
|
136
|
-
// title: 'Project Update Failed',
|
|
137
|
-
// message: 'Failed to update the project',
|
|
138
|
-
// detail: (error as Error).message,
|
|
139
|
-
// }).catch((dialogError) => {
|
|
140
|
-
// logger.log(`Error showing update dialog: ${(dialogError as Error).message}`);
|
|
141
|
-
// });
|
|
142
|
-
}
|
|
143
|
-
finally {
|
|
144
|
-
onEndUpdateProject();
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}).catch((error) => {
|
|
148
|
-
logger.log(`Error showing update dialog: ${error.message}`);
|
|
149
124
|
});
|
|
125
|
+
if (response === 0) {
|
|
126
|
+
onBeginUpdateProject();
|
|
127
|
+
try {
|
|
128
|
+
await performProjectUpdate(projectPath, projectPackageJson, expectedPackageJson, projectPackageJsonPath);
|
|
129
|
+
}
|
|
130
|
+
catch (error) {
|
|
131
|
+
logger.log(`Error updating project: ${error.message}`);
|
|
132
|
+
throw error;
|
|
133
|
+
}
|
|
134
|
+
finally {
|
|
135
|
+
onEndUpdateProject();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
150
138
|
}
|
|
151
139
|
}
|
|
152
140
|
catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@directivegames/genesys.sdk",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.4",
|
|
4
4
|
"description": "Genesys SDK - A development toolkit for game development",
|
|
5
5
|
"author": "Directive Games",
|
|
6
6
|
"main": "index.js",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
|
112
|
-
"@directivegames/genesys.js": "^4.2.
|
|
112
|
+
"@directivegames/genesys.js": "^4.2.5",
|
|
113
113
|
"@electron/rebuild": "^4.0.2",
|
|
114
114
|
"@emotion/react": "^11.14.0",
|
|
115
115
|
"@emotion/styled": "^11.14.0",
|