diff --git a/assets/project/add-project.zip b/assets/project/add-project.zip index f68488fb8..44c987143 100644 Binary files a/assets/project/add-project.zip and b/assets/project/add-project.zip differ diff --git a/assets/project/workspace.zip b/assets/project/workspace.zip index 85886e159..683a8a834 100644 Binary files a/assets/project/workspace.zip and b/assets/project/workspace.zip differ diff --git a/src/renderer/editor/project/converter/scenes-converter.ts b/src/renderer/editor/project/converter/scenes-converter.ts index 955a278f6..ceab75f0f 100644 --- a/src/renderer/editor/project/converter/scenes-converter.ts +++ b/src/renderer/editor/project/converter/scenes-converter.ts @@ -62,5 +62,14 @@ export class WorkspaceSceneConverter { editor.console.logInfo(`Converted scene "${p}" to scene file "${sceneFileName}"`); })); + + // Update workspace file + const workspaceJson = await readJSON(workspacePath, { encoding: "utf-8" }) as IWorkSpace; + workspaceJson.editorVersion = editor._packageJson.version; + + await writeJSON(workspacePath, workspaceJson, { + spaces: "\t", + encoding: "utf-8", + }); } } diff --git a/src/renderer/editor/project/welcome/welcome.tsx b/src/renderer/editor/project/welcome/welcome.tsx index b71279148..8aa208954 100644 --- a/src/renderer/editor/project/welcome/welcome.tsx +++ b/src/renderer/editor/project/welcome/welcome.tsx @@ -222,6 +222,7 @@ export class WelcomeDialog extends React.Component { + try { + await writeJson(join(path, "assets/scene.scene"), { + createdAt: new Date(Date.now()).toDateString(), + }, { + spaces: "\t", + encoding: "utf-8", + }); + } catch (e) { + // Catch silently. + } + } + /** * Returns wether or not the folder is empty. */