Commit Graph

30 Commits

Author SHA1 Message Date
FinnHornhoover
096fcee49f added script itself and migration logic 2023-11-11 23:55:04 +03:00
FinnHornhoover
b2ba0ba1b6 use python child process to handle cache ops 2023-11-11 23:55:03 +03:00
FinnHornhoover
60aba00ad5 WIP added offline cache pointing logic 2023-11-11 23:55:02 +03:00
FinnHornhoover
1c3e3f81b0 delegated downloads to wget exe due to memory leak 2023-11-11 23:55:02 +03:00
FinnHornhoover
f7d1b73806 implemented delete as ipc, adjusted for cache swap 2023-11-11 23:55:02 +03:00
FinnHornhoover
a1678cb1e9 adjusted download and hash check logic and data 2023-11-11 23:55:02 +03:00
FinnHornhoover
3f56895d3b integrated download and hash functionality 2023-11-11 23:55:02 +03:00
FinnHornhoover
2c5337938a added async hash checking 2023-11-11 23:55:02 +03:00
FinnHornhoover
b644edb774 WIP ipc downloads 2023-11-11 23:55:02 +03:00
FinnHornhoover
ee309319c9 WIP download bugfix 2023-11-11 23:55:02 +03:00
FinnHornhoover
01e329e621 WIP button functionality (download, delete) 2023-11-11 23:55:02 +03:00
CakeLancelot
71e4694ff6 Misc comment cleanup, correct holiday date range, simplify JSON loading 2023-09-19 08:57:50 -05:00
CakeLancelot
76f4a05287 Move server-selector over to path.join(), fix issues with cache swapping
Before, swapping would continually fail if a cache tried to be stored at a directory that already existed. The skipping mechanism likely also didn't work as intended. Both have been fixed now.
Additionally:
* Added .editorconfig file 
* Ran prettier format
* Misc. refactoring
2023-09-19 08:57:29 -05:00
CakeLancelot
97144aad59 Remove initial setup window
Now that we only copy a few json files for the initial setup, the process is so fast the progress window isn't really needed anymore
2023-09-17 13:02:19 -05:00
CakeLancelot
43f0c8c684 Revise loader DLL to work under Wine, loading screen beta text, cleanup 2023-09-16 20:57:13 -05:00
CakeLancelot
dabb8bf484 Use extra-plugin-dirs in Electron to load plugin, add fusion manifest.
This has the advantage of being self contained (doesn't conflict with Unity 3.x - 5.x loader, so we can use the original one) and **disabling auto updates actually works**.

We can also eliminate any code used to install and verify unity, since it's all self contained.

Also added fusion manifest file to set process as DPI aware, and set ACP to UTF-8 on Windows 10 1903 and above.

Bumped version to 1.4.2
2023-09-14 05:29:34 -05:00
CakeLancelot
043bf219e7 Consistency pass and small tweaks
**Formatting going forward**
Variables: camelCase (capitalization of two letter abbreviations is OK, e.g. playerID)
Classes: PascalCase
CSS: kebab-case
Files: kebab-case

**Other miscellaneous changes**
* The WebPlayer crashing as well as failing to load the config file are now fatal  errors and will quit the app
* Moved some style attributes from index.html into openfusion.css
2023-09-03 05:12:30 -05:00
CakeLancelot
7131026b2f Misc tweaks
loadURL() -> loadUrl() in index.js
Move Bootstrap files
2023-09-02 23:03:00 -05:00
CakeLancelot
48e2052748
Fix call to nonexistent function in URL redirection
Gotta love runtime errors
2023-04-23 15:37:44 -05:00
CakeLancelot
2bf916ea58 Fix bug in WebPlayer installation logic
Also run prettier
2023-02-09 12:52:57 -06:00
CakeLancelot
d554b6b968 Get version number from package.json on app start
This is easy to miss when prepping a new release so I figured we might as well automate it
2023-02-09 11:56:53 -06:00
CakeLancelot
101de9d68b Added WebPlayer verification/reinstallation logic 2023-02-09 01:05:41 -06:00
CakeLancelot
3d9107a7f1 Install Unity Web Player through Electron rather than the bat file
This method is a lot more reliable, as the bat file was known to not work in certain configurations of Windows and on Wine
2023-02-08 15:21:35 -06:00
CakeLancelot
c1db7bc047 Refactor cache swapping logic
* Hoist everything into a function
* Add error handling
* Rename vars for clarity
* Skip renaming if the current and new version are the same: this along with the error handling should fix the black screen when using multiple clients
2023-02-08 14:06:54 -06:00
Hichem Fantar
fd92f2de5e switch from tabs to spaces & set indent size to 4 2022-07-26 15:41:07 +01:00
Hichem Fantar
9a083d7a04 configure prettier for a prettier project 2022-07-18 19:19:22 +01:00
gsemaj
c997ab96ec Fix broken calls to copySync 2021-09-18 18:05:33 -04:00
gsemaj
17ca1f3c24 Add routine for migration from pre-1.4 2021-09-18 17:59:15 -04:00
CakeLancelot
bfac6e9250 Use fs-extra for copying files synchronously
Also, sorry about the diff. Turns out some of the files in the repo were CRLF.
2021-05-16 21:06:57 -05:00
CakeLancelot
5d5dce9647 Move to npm for development and packaging
I had to hack the package.json to force `electron-prebuilt` to use a 32-bit binary - everything else should be fairly out of the box
2021-04-28 12:37:22 -05:00