1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-13 02:01:51 +00:00
Commit Graph

3 Commits

Author SHA1 Message Date
Даниїл Григор'єв
f7d2ccccff
Preliminary ASAR mods support in main process
Consider mods broken in this commit. Many areas are unfinished and use
weird or missing types.
2025-04-11 00:01:52 +03:00
Даниїл Григор'єв
1e19a5e40d
Check fullscreen state before modifying it
Workaround for an Electron bug which causes menus to disappear when
using BrowserWindow#setFullscreen(false).
2025-04-06 01:41:56 +03:00
Даниїл Григор'єв
c836589d9b
Rewrite the Electron wrapper (#47)
* Migrate Electron wrapper to ESM

Use ESM syntax for main process, move some fs usages to fs.promises,
switch to import.meta.url/import.meta.dirname to handle file paths;
clean up redundant code.

* Add TypeScript support to Electron wrapper

The support is very basic, tsc is used to transpile code. Build scripts
are modified to not copy any Electron code other than preload.cjs and
use an extremely cursed setup to call the TypeScript compiler.

* [TS] Rename platform/storage

* Rewrite Electron wrapper

MVP, missing some features from the old wrapper and most planned
features. Some of the functionality hasn't been verified.
2025-03-21 16:30:13 +02:00