sunrize 2.6.3 → 2.6.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/package.json +2 -2
- package/src/Application/Document.js +10 -8
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sunrize",
|
|
3
3
|
"productName": "Sunrize X3D Editor",
|
|
4
|
-
"version": "2.6.
|
|
4
|
+
"version": "2.6.4",
|
|
5
5
|
"description": "Sunrize — A Multi-Platform X3D Editor",
|
|
6
6
|
"main": "src/main.js",
|
|
7
7
|
"bin": {
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"string-similarity": "^4.0.4",
|
|
125
125
|
"tweakpane": "^4.0.5",
|
|
126
126
|
"update-electron-app": "^3.3.0",
|
|
127
|
-
"x_ite": "^16.6.
|
|
127
|
+
"x_ite": "^16.6.1",
|
|
128
128
|
"x_ite-off-parser": "^1.3.1",
|
|
129
129
|
"x_ite-sog-parser": "^2.1.1",
|
|
130
130
|
"x_ite-spz-parser": "^2.1.2",
|
|
@@ -465,30 +465,32 @@ module .exports = class Document extends Interface
|
|
|
465
465
|
{
|
|
466
466
|
const
|
|
467
467
|
response = await fetch ("https://api.github.com/repos/create3000/sunrize/releases/latest"),
|
|
468
|
-
|
|
468
|
+
latest = await response .json (),
|
|
469
469
|
pkg = require ("../../package.json");
|
|
470
470
|
|
|
471
|
-
if (
|
|
471
|
+
if (latest .name === `v${pkg .version}`)
|
|
472
472
|
return setTimeout (() => this .checkReleases (), 24 * 60 * 60 * 1_000);
|
|
473
473
|
|
|
474
|
-
let
|
|
474
|
+
let filename;
|
|
475
475
|
|
|
476
476
|
switch (process .platform)
|
|
477
477
|
{
|
|
478
478
|
case "win32":
|
|
479
|
-
|
|
479
|
+
filename = `Sunrize.X3D.Editor-${latest .name .substring (1)}.Setup.exe`;
|
|
480
480
|
break;
|
|
481
481
|
case "darwin":
|
|
482
|
-
|
|
482
|
+
filename = `Sunrize.X3D.Editor-darwin-arm64-${latest .name .substring (1)}.zip`;
|
|
483
483
|
break;
|
|
484
484
|
default:
|
|
485
|
-
|
|
485
|
+
filename = `Sunrize.X3D.Editor-${latest .name .substring (1)}-x64.AppImage`;
|
|
486
486
|
break;
|
|
487
487
|
}
|
|
488
488
|
|
|
489
|
+
const fileURL = `https://github.com/create3000/sunrize/releases/download/${latest .name}/${filename}`;
|
|
490
|
+
|
|
489
491
|
this .footer .console .addSplitter ();
|
|
490
|
-
this .footer .console .addMessage ("info", "", 0, `A new Sunrize version ${
|
|
491
|
-
this .footer .console .addMessage ("info", "", 0, `Download new version: <a download href="
|
|
492
|
+
this .footer .console .addMessage ("info", "", 0, `A new Sunrize version ${latest .name} is now available on GitHub.`);
|
|
493
|
+
this .footer .console .addMessage ("info", "", 0, `Download new version: <a download href="${fileURL}">${filename}</a>`, true);
|
|
492
494
|
this .footer .console .addSplitter ();
|
|
493
495
|
}
|
|
494
496
|
catch
|