Compare commits

..

243 Commits

Author SHA1 Message Date
MathieuG-P 109d560953 bumb to 1.3.2 2023-10-08 23:03:00 +02:00
MathieuG-P bfc853ee55 Merge pull request #337 from Zagrios/bugfix/one-click-download-playlist-conflict-with-shared-maps
[bugfix] Fix error when downloading playlist with OneClick and having maps linked
2023-10-08 22:53:00 +02:00
MathieuG-P fc2cb676d2 [bugfix] Fix error when downloading playlist with OneClick and having maps linked 2023-10-08 22:38:34 +02:00
MathieuG-P 226468aa00 Merge pull request #336 from Zagrios/bugfix/fix-english-translation-typos
[bugfix] Fix english translation typos
2023-10-08 11:28:24 +02:00
MathieuG-P 767bbf389b [bugfix] Fix english translation typos 2023-10-08 11:24:14 +02:00
MathieuG-P 0de2ea44d3 Merge pull request #335 from Zagrios/bugfix/advanced-launch-arguments-not-work-with-shortcuts
[bugfix] when only one advanced launch arg was set for a shortcut it was mishandled
2023-10-07 21:41:18 +02:00
MathieuG-P 1dde41f4f6 [bugfix] when only one advanced launch arg was set for a shortcut it was mishandled 2023-10-07 21:28:57 +02:00
Iluhadesu 029df85ddb Add v1.32.0 to bs_versions.json 2023-10-05 20:14:17 +02:00
MathieuG-P 139f17d7fc Merge pull request #331 from Zagrios/bugfix/one-click-map-download-may-not-work-with-shared-maps
[bugfix] Fix OneClick map download may not work with multiple maps sharing
2023-10-04 00:21:22 +02:00
MathieuG-P 92fd59be1e [bugfix] Fix OneClick map download may not work with multiple maps sharing 2023-10-04 00:10:05 +02:00
MathieuG-P d61f59c714 bumb to 1.3.1 2023-10-02 13:36:22 +02:00
MathieuG-P 64e3652b60 Merge pull request #330 from Zagrios/bugfix/steam-vr-restored-before-beatsaber-was-launched
[bugfix] increase timout for restoring SteamVR after launching Beat Saber
2023-10-02 13:35:46 +02:00
MathieuG-P 6f018e6a32 [bugfix] increase timout for restoring SteamVR after launching Beat Saber 2023-10-02 13:30:23 +02:00
MathieuG-P da3b2b13a8 Merge pull request #328 from Zagrios/bugfix/replace-resvg-that-need-dll-by-sharp
[bugfix] Remove resvg lib that need DLL by Sharp that doesnt
2023-09-25 12:52:40 +02:00
MathieuG-P 381daa80a4 [bufix] install node-abi 2023-09-25 12:34:05 +02:00
MathieuG-P bdfe8ce535 [bugfix] Remove resvg lib that need DLL by Sharp that doesnt 2023-09-25 11:55:34 +02:00
MathieuG-P 7f71d3006c bumb to 1.3.1-alpha.2 2023-09-25 08:12:50 +02:00
MathieuG-P 120470de5e Merge pull request #326 from Zagrios/bugfix/bsm-was-using-the-parent-of-bs-content-folder
[bugfix] fix of using the parent of installation folder when it was set in the config
2023-09-23 16:14:27 +02:00
MathieuG-P 8efe5be63f [bugfix] fix of using the parent of installation folder when it was set in the config 2023-09-23 16:09:24 +02:00
MathieuG-P 7378b234eb Merge pull request #325 from Insprill/fix/liv-linux
Skip Liv initialization on Linux
2023-09-21 17:17:37 +02:00
Pierce Thompson d256f2989f Pass noError instead of using a dummy impl 2023-09-21 10:59:13 -04:00
Pierce Thompson 85d43639af Skip Liv initialization on Linux 2023-09-20 22:47:59 -04:00
MathieuG-P f849b0d570 Merge pull request #323 from Zagrios/bugfix/steam-and-oculus-are-not-at-the-top
[bugfix] Steam and Oculus are not at the top of the versions list
2023-09-20 17:38:37 +02:00
MathieuG-P 34936f6666 [bugfix] Steam and Oculus are not at the top of the versions list 2023-09-20 17:32:45 +02:00
MathieuG-P d8a4889298 Merge pull request #321 from Zagrios/bugfix/add-no-yeet-args-prevent-mods-to-be-yeeted
[bugfix] Add no-yeet agrs to prevent mods to be yeeted
2023-09-18 15:29:35 +02:00
MathieuG-P 21c7f9d225 [bugfix] Add no-yeet agrs to prevent mods to be moved when UserData folder is linked 2023-09-18 15:24:53 +02:00
MathieuG-P 1048ca6b9b remove code sign verification 2023-09-18 15:14:09 +02:00
MathieuG-P b2b7002a8e Merge branch 'master' of https://github.com/Zagrios/bs-manager 2023-09-18 14:37:43 +02:00
MathieuG-P 1776f5f769 [chore] update code sign sha 2023-09-18 14:37:40 +02:00
MathieuG-P f17c8a27cc for code sign verification 2023-09-15 17:05:43 +02:00
MathieuG-P 1b8e009a62 bumb to 1.3.1-alpha.1 2023-09-15 16:58:50 +02:00
MathieuG-P 3a44779ade Merge pull request #320 from Zagrios/feature/liv-shortcuts
[feature] Liv shortcuts
2023-09-15 09:51:13 +02:00
MathieuG-P c407997dc2 [feature] remove code smells 2023-09-15 09:44:55 +02:00
MathieuG-P d61c1a519f [feature] remove unused function, and add logs 2023-09-15 09:39:08 +02:00
MathieuG-P 46eb8d065b [feature] Start LIV service on startup 2023-09-14 22:36:59 +02:00
MathieuG-P 9ee036527c [feature] LIV shortcut synchronise with installed BSM versions 2023-09-13 23:41:46 +02:00
MathieuG-P 825b35d164 [feature] create LIV service 2023-09-13 00:14:38 +02:00
MathieuG-P 9de0a4a821 [chore] update deps 2023-09-12 22:38:18 +02:00
MathieuG-P e01fe02c08 Merge pull request #319 from Zagrios/chore/change-default-contents-path
[chore] Change default contents path to avoid OneDrive issues
2023-09-11 22:08:17 +02:00
MathieuG-P 2e376b03fc [chore] fix sonarcloud bug 2023-09-11 21:53:58 +02:00
MathieuG-P 6bdf47678e [chore] Change default contents path to avoid OneDrive issues 2023-09-11 21:49:43 +02:00
Iluhadesu c9bcdc8da6 Add v1.31.1 to bs_versions.json 2023-09-04 13:34:54 +02:00
MathieuG-P 7d21ba5bca add patreon 2023-09-03 17:14:58 +02:00
MathieuG-P 7fb19f46d0 Merge pull request #314 from Zagrios/bugfix/steamvr-not-retored-after-fpfc-mode/313
[bugfix-313] Restore SteamVR shortly after launching BS and on disabl…
2023-08-28 16:45:18 +02:00
MathieuG-P 195bc1ad64 [bugfix-313] remove unused imports 2023-08-28 16:36:31 +02:00
MathieuG-P ccc133cf6d [bugfix-313] Restore SteamVR shortly after launching BS and on disabling FPFC Mode 2023-08-28 16:33:53 +02:00
MathieuG-P 549d4473ab Merge pull request #312 from Zagrios/feature/use-arcviewer/237
[feature-237] use ArcViewer
2023-08-28 00:36:09 +02:00
MathieuG-P 23d7f8ad64 [feature-237] remove unused import 2023-08-28 00:29:56 +02:00
MathieuG-P 3edb3f583b [feature-237] use ArcViewer 2023-08-28 00:25:43 +02:00
MathieuG-P 71a2a01aca [chore] update electron 2023-08-27 23:33:42 +02:00
MathieuG-P e3468fac0a Merge pull request #311 from Zagrios/bugfix/song-not-goes-in-custom-symlink/310
[bugfix] one click install contents not goes in custom symlinks
2023-08-27 20:54:13 +02:00
MathieuG-P 8d2075012b [bugfix] one click install contents not goes in custom symlinks 2023-08-27 20:39:21 +02:00
MathieuG-P f3ed2a8477 Merge pull request #309 from GabiRP/master
Better spanish translations
2023-08-17 13:07:42 +02:00
GabiRP 5355f84bc6 better spanish translations 2023-08-16 21:11:26 +02:00
MathieuG-P 6758e5937e Merge pull request #308 from Zagrios/chore/no-need-to-delete-cetrificateSha1-in-packagejson-to-test-a-build
[chore] no need to delete "certificateSha1" in package.json to run "npm run package" when don't have certificate
2023-08-14 19:04:18 +02:00
MathieuG-P de2d38bd45 [chore] no need to delete "certificateSha1" in package.json to run "npm run package" when don't have certificate 2023-08-14 19:00:54 +02:00
MathieuG-P 7b8c98e809 Merge pull request #307 from Zagrios/bugfix/installing-version-disappear-on-uninstall-another/304
[bugfix] On uninstalling a version, downloading version disappears
2023-08-14 16:21:05 +02:00
MathieuG-P bda7c6719a Merge pull request #303 from slinkstr/chore/registered-typo
typo: isDeepLinkRegistred -> isDeepLinkRegistered
2023-08-14 16:07:27 +02:00
MathieuG-P 254047e99e remove useless import 2023-08-14 16:03:42 +02:00
MathieuG-P 578f2ec335 [bugfix] On uninstalling a version, downloading version disappears 2023-08-14 16:00:05 +02:00
MathieuG-P 8cc5449818 Merge pull request #305 from Zagrios/chore/update-packages
Chore/update packages
2023-08-13 20:42:19 +02:00
MathieuG-P 323e666d5a [chore] update semver 2023-08-13 20:40:00 +02:00
MathieuG-P cbe6cb06c0 [chore] update framer-motion 2023-08-13 20:33:48 +02:00
MathieuG-P 3e36321ba5 [chore] update dot-prop 2023-08-13 20:30:27 +02:00
MathieuG-P c9677b1224 [chore] update electron 2023-08-13 20:26:58 +02:00
MathieuG-P e6387b45c5 Add patreon 2023-08-12 12:37:24 +02:00
slinky 8b4a5f15e7 typo: isDeepLinkRegistred -> isDeepLinkRegistered 2023-08-11 20:04:46 -07:00
MathieuG-P 4b741ead15 bumb to 1.3.0 2023-08-10 19:02:14 +02:00
MathieuG-P de03044ff9 remove diamond rank 2023-08-10 18:52:43 +02:00
MathieuG-P b3a3955f69 [hotfix] useless word in EN translation 2023-08-10 18:51:40 +02:00
MathieuG-P f5c83ee9ca bumb to 1.3.0-alpha.6 2023-08-10 01:31:42 +02:00
MathieuG-P e1546d0975 Merge pull request #301 from Zagrios/chore/add-logs-for-depotdownloader-events
[chore] add logs for depotdownloader events
2023-08-10 01:26:09 +02:00
MathieuG-P d69ecac496 [chore] add logs for depotdownloader events 2023-08-10 01:19:06 +02:00
MathieuG-P 8f1a2015bd Merge pull request #300 from Zagrios/bugfix/change-token-rejected-translation
[bugfix] change error message for TokenReject error from DepotDownloader
2023-08-10 00:40:22 +02:00
MathieuG-P 3e4afe5a07 [bugfix] change error message for TokenReject error from DepotDownloader 2023-08-10 00:34:44 +02:00
MathieuG-P 288c219417 Merge pull request #297 from Insprill/fix/depot-downloader-linux
Fix Depot Downloader not working on Linux
2023-08-09 23:50:45 +02:00
Pierce Thompson 31db079b08 Fix process command/args 2023-08-09 17:16:15 -04:00
MathieuG-P 5e1eff7143 Merge pull request #299 from Zagrios/bugfix/fix-focus-outside-element-with-tabs/298
[bugfix-298] fix focus outside element with tab key
2023-08-09 23:01:39 +02:00
MathieuG-P 301d2fdfc4 [bugfix-298] fix focus outside element with tab key 2023-08-09 22:46:10 +02:00
Pierce Thompson 9638c65407 Fix Depot Downloader not working on Linux 2023-08-08 23:51:38 -04:00
MathieuG-P efd69e4bb3 bumb to 1.3.0-alpha.5 2023-08-08 02:13:45 +02:00
MathieuG-P 90cb0d5038 Merge pull request #296 from Zagrios/bugfix/incorrect-text-colors-on-models-elemtnts-with-light-theme
[bugfix] Incorrect text colors on Models elements with light theme in download modal
2023-08-08 02:11:01 +02:00
MathieuG-P 73e8e0f15a Merge pull request #295 from Zagrios/bugfix/unable-download-bs-version-with-fresh-install
[bugfix] Ensure BSInstances exist before running depotdownloader
2023-08-08 02:07:10 +02:00
MathieuG-P b169b04637 [bugfix] Incorrect text colors on Models elements with light theme in download modal 2023-08-08 02:06:50 +02:00
MathieuG-P 6296a78cbc [bugfix] Ensure BSInstances exist before running depotdownloader 2023-08-08 01:51:07 +02:00
MathieuG-P 1305756cac add patreon 2023-08-07 19:07:48 +02:00
MathieuG-P 1f2601427b add patreon 2023-08-06 21:41:35 +02:00
MathieuG-P 1e7ec798e6 bumb to 1.3.0-alpha.4 2023-08-06 16:42:34 +02:00
MathieuG-P d56262b56d Merge pull request #294 from Zagrios/chore/update-electron-updater
[chore] update electron-builder & electron-updater
2023-08-06 16:30:27 +02:00
MathieuG-P 4a3528229e [chore] update electron-builder & electron-updater 2023-08-06 16:25:35 +02:00
MathieuG-P f61d44b14a Merge pull request #293 from Zagrios/feature/login-with-qr-code
[feature] login to Steam with QRCode + handle login approval from Steam app
2023-08-06 16:16:07 +02:00
MathieuG-P 1f99ce1ec1 [feature] remove code smells 2023-08-06 16:07:58 +02:00
MathieuG-P 0d75b56d19 [feature] Correct translation + adjust qr code color with loght theme 2023-08-06 15:39:12 +02:00
MathieuG-P 35aa1af377 add patreon 2023-08-06 15:00:39 +02:00
MathieuG-P 4ee4d0f565 [feature] use the fixed depot downloader 2023-08-06 03:19:59 +02:00
MathieuG-P 30275a920e Merge pull request #292 from Zagrios/bugfix/shared-folders-not-saved
[bugfix] Fix additionnal shared folders not saved
2023-08-05 04:25:14 +02:00
MathieuG-P e51e63af8e [bugfix] Fix additionnal shared folders not saved 2023-08-05 04:20:58 +02:00
MathieuG-P 1be3b7af31 [feature] Add notifications for BS download 2023-08-05 03:50:04 +02:00
MathieuG-P a92c65be53 [feature] Add waiting for Steam app approval modal 2023-08-03 03:52:13 +02:00
MathieuG-P 922aad7867 [feature] can now login to Steam with QRCode + ipc management optimization 2023-08-02 02:36:36 +02:00
MathieuG-P 82bca18f3f [bugfix] fix no dependency in useEffect 2023-08-02 02:33:19 +02:00
MathieuG-P d0aff9d27b [feature] properly handle link click from renderer 2023-08-02 02:31:41 +02:00
MathieuG-P b308d66c2c Add patreon 2023-07-29 21:06:36 +02:00
MathieuG-P 82675925ff bumb to 1.3.0-alpha.3 2023-07-23 18:54:19 +02:00
MathieuG-P 8adda9c027 [hotfix] unable to install mods 2023-07-23 18:46:43 +02:00
MathieuG-P 5d4a824a76 bumb to 1.3.0-alpha.2 2023-07-23 16:26:20 +02:00
MathieuG-P 6472aff718 Merge pull request #291 from Zagrios/bugfix/sometimes-installing-mods-downgrades-newer-installed-mods
[bugfix] do not install mods that are less recent than those installed
2023-07-22 23:58:51 +02:00
MathieuG-P 02d3d64a18 [bugfix] do not install mods that are less recent than those installed 2023-07-22 23:53:44 +02:00
MathieuG-P 6d8d3e993a Merge pull request #288 from Zagrios/bugfix/crash-loading-bunch-of-maps/276
[bugfix-276] Fix crashing when loading bunch of maps
2023-07-21 04:19:29 +02:00
MathieuG-P 570a20470e Merge pull request #290 from Zagrios/bugfix/window-title-become-index.html-when-closing-settings/289
[bugfix-289] Add title in index.ejs to prevent the window title to be wiped magically
2023-07-21 02:29:17 +02:00
MathieuG-P e96a977abe [bugfix-289] Add title in index.ejs to prevent the window title to be wiped magically 2023-07-21 02:24:37 +02:00
MathieuG-P 6ef328caec Merge pull request #287 from Dead0Duck/feature/russian-translation
[feature] Russian translation
2023-07-18 22:44:10 +02:00
DeadDuck 80f625102e [fix] Corrected translation of oculus-description 2023-07-18 18:36:09 +07:00
MathieuG-P abf622e68f Merge pull request #286 from Snailedlt/chore/rework-issue-templates
Chore/rework issue templates
2023-07-17 23:29:56 +02:00
MathieuG-P 63c9bd9436 [bugfix-276] use stream to reduce ram consumption + load maps by chunk to avoid open files limit 2023-07-17 23:19:49 +02:00
MathieuG-P 5e763c99d8 bumb to v1.3.0-alpha1 2023-07-17 23:16:24 +02:00
DeadDuck 2e5b11bdb0 [feature] Russian translation 2023-07-17 22:25:22 +07:00
MathieuG-P 6aaa269ba5 [chore] re-enabling asar 2023-07-17 03:47:21 +02:00
Jørgen Kalsnes Hagen 7287dfffde Update -bug--bug-report.md 2023-07-16 23:27:00 +02:00
Jørgen Kalsnes Hagen 92461639b0 Update -feat---feature-request.md 2023-07-16 23:24:13 +02:00
MathieuG-P c2432f8626 [chore] move original slideshow images in "ressources" 2023-07-16 22:58:17 +02:00
MathieuG-P a070108c7d [chore] remove useless deps (ctrlc-windows, is-online) 2023-07-16 22:30:51 +02:00
MathieuG-P 3556da8f24 [chore] update electron to v25 2023-07-16 21:59:11 +02:00
MathieuG-P 3c3ff65c5e Merge pull request #284 from Zagrios/hotfix/nothing-happens-launch-unexisting-version-from-shortcut
[hotflix] fix nothing happens when launching a version from shortcut that no longer exist
2023-07-16 20:50:01 +02:00
MathieuG-P de56986a6e [hotflix] fix nothing happens when launching a version from shortcut that no longer exist 2023-07-16 20:45:10 +02:00
MathieuG-P 72f41a3557 Merge pull request #283 from Zagrios/chore/code-cleaning/245
[chore] some code cleanning
2023-07-16 17:51:40 +02:00
MathieuG-P 6bf26edae5 [chore] remove some code smells 2023-07-16 17:40:19 +02:00
MathieuG-P 4963c44e15 [chore-245] fix promise return but void expected 2023-07-16 17:36:16 +02:00
MathieuG-P 7d688d3632 [chore-245] fix type getInstance function in modal service 2023-07-16 17:30:45 +02:00
MathieuG-P 59896400e0 [chore-245] convert some "send" calls to "sendV2" 2023-07-16 17:26:55 +02:00
MathieuG-P 1edcb55c90 [chore-245] remove some code smells 2023-07-16 16:31:58 +02:00
MathieuG-P f751345d32 [chore-245] resolve "promise but void expected" error 2023-07-16 15:39:11 +02:00
MathieuG-P 4f62cc9427 [chore-245] resolve "promise but void expected" error 2023-07-16 15:36:12 +02:00
MathieuG-P d8f5b9565a [chore-245] resolve "promise but void expected" error 2023-07-16 15:34:02 +02:00
MathieuG-P 928c816344 [chore-245] resolve "promise but void expected" error 2023-07-16 15:28:37 +02:00
MathieuG-P cac216c4eb [chore-245] resolve "promise but void expected" error 2023-07-16 15:24:20 +02:00
MathieuG-P 2d7b1bd8f3 [chore-245] clean "setInstallationDirectory" process 2023-07-16 15:10:00 +02:00
MathieuG-P cab6a90c78 [chore-245] dark and light theme is now generic for all windows 2023-07-16 14:34:07 +02:00
MathieuG-P cdbe9aa740 [chore-245] remove some warnings 2023-07-16 14:33:13 +02:00
MathieuG-P 6e920cc257 [chore-245] use appropriate hook everywhere 2023-07-16 13:58:01 +02:00
MathieuG-P 9098957447 Merge pull request #282 from Zagrios/feature/launch-bs-from-shortcut
[feature] Launch Beat Saber from shortcut
2023-07-16 10:49:11 +02:00
MathieuG-P a4e7816d7b [feature] remove useless import 2023-07-16 04:21:13 +02:00
MathieuG-P c010ca8fe6 [feature] remove useless imports 2023-07-16 04:18:42 +02:00
MathieuG-P 0acb70cf7e [feature] can now create launch shortcut 2023-07-16 04:00:16 +02:00
MathieuG-P 2f3b5bf610 [feature] can now launch beat saber from shortcut 2023-07-14 14:18:23 +02:00
MathieuG-P 8a7ffdc264 [feature] prepare shortcut creation 2023-07-10 01:36:37 +02:00
MathieuG-P 215586a41b [feature] nothing 2023-07-09 18:49:08 +02:00
MathieuG-P 66b95a1736 Merge branch 'master' into feature/launch-bs-from-shortcut 2023-07-09 18:34:14 +02:00
MathieuG-P 93bfc66251 Merge branch 'master' of https://github.com/Zagrios/bs-manager 2023-07-09 17:38:54 +02:00
KnuckleDF 64e4dc5c41 undo unnecessary wording change 2023-07-09 17:29:29 +02:00
KnuckleDF 15c8c8876e Various wording changes to improve clarity and consistency in English 2023-07-09 17:29:29 +02:00
MathieuG-P 1495693de9 [hotfix] Desktop mode to FPFC mode 2023-07-09 17:28:43 +02:00
KnuckleDF ccebfa0713 undo unnecessary wording change 2023-07-09 17:28:43 +02:00
KnuckleDF 3f86389867 Various wording changes to improve clarity and consistency in English 2023-07-09 17:28:43 +02:00
Zagrios a23d59fae4 add patreon 2023-07-09 17:27:22 +02:00
MathieuG-P a4395764e8 [bugfix-272] fix wrong folder separator for maps 2023-07-09 17:26:25 +02:00
MathieuG-P 32e41117ce [chore] remove sonarcloud action for test 2023-07-09 17:24:02 +02:00
MathieuG-P 23c7056f32 [chore] update sonarcloud action 2023-07-09 17:24:02 +02:00
RedlineTriad 20cf93103d fix(linux): skip oculus library detection
Since linux doesn't have a registry, trying to read from it will fail.
With this fix and my other pr #264 basic linux functionallity works.
2023-07-09 17:23:16 +02:00
MathieuG-P a014ea2099 Merge branch 'master' of https://github.com/Zagrios/bs-manager 2023-07-09 17:10:52 +02:00
MathieuG-P ed096b84d4 [hotfix] Desktop mode to FPFC mode 2023-07-09 17:04:14 +02:00
KnuckleDF 90b0cb5fc6 undo unnecessary wording change 2023-07-09 17:04:14 +02:00
KnuckleDF 0ec0150622 Various wording changes to improve clarity and consistency in English 2023-07-09 17:04:14 +02:00
Zagrios 84cec6971b add patreon 2023-07-09 17:04:14 +02:00
MathieuG-P 656c45017a [hotfix] Desktop mode to FPFC mode 2023-07-09 16:45:22 +02:00
MathieuG-P 6cee7f0053 Merge pull request #279 from KnuckleDF/master
Change wording in English translation for consistency and clarity
2023-07-06 15:00:44 +02:00
KnuckleDF 1858d5a061 undo unnecessary wording change 2023-07-06 07:20:53 -05:00
KnuckleDF 25fc7b9a6a Various wording changes to improve clarity and consistency in English 2023-07-06 07:08:00 -05:00
Zagrios bd2593c121 add patreon 2023-07-03 13:04:20 +02:00
MathieuG-P 37e88441ec Merge pull request #273 from Zagrios/bugfix/invalid-path-separator-maps-folders-linux/272
[bugfix-272] fix wrong folder separator for maps
2023-07-02 02:16:11 +02:00
MathieuG-P 8fdb39c89f [bugfix-272] fix wrong folder separator for maps 2023-07-02 02:06:33 +02:00
MathieuG-P 30245a3352 [chore] remove sonarcloud action for test 2023-07-02 01:28:07 +02:00
MathieuG-P 49fd6f1858 [chore] update sonarcloud action 2023-07-02 00:55:27 +02:00
MathieuG-P 8f360cca60 Merge pull request #266 from RedlineTriad/linux-fix-oculus-registry-error
fix(linux): skip oculus library detection
2023-07-02 00:30:23 +02:00
RedlineTriad 9c9e0861dd fix(linux): skip oculus library detection
Since linux doesn't have a registry, trying to read from it will fail.
With this fix and my other pr #264 basic linux functionallity works.
2023-07-01 22:34:52 +02:00
MathieuG-P f47a1de05e [chore] prettify + config prettier 2023-07-01 22:12:47 +02:00
MathieuG-P 0f85e0dcf9 Merge pull request #271 from RedlineTriad/prettier-ignore
style: add .prettierignore
2023-07-01 22:00:05 +02:00
MathieuG-P b3251595ab [chore] update sonar action 2023-07-01 20:24:33 +02:00
MathieuG-P b8f4651554 Merge pull request #269 from Zagrios/chore/fix-some-sonarcloud-findings
[chore] fix some sonarcloud code smells
2023-07-01 19:18:52 +02:00
MathieuG-P 577352180e [chore] no need for shell + use native openPath 2023-07-01 19:09:17 +02:00
RedlineTriad 01907361b2 style: add .prettierignore
Without this it would try to format the release folder.
Which would take a *very* long time.
2023-07-01 17:39:59 +02:00
MathieuG-P 7e261fcb93 [chore] fix some sonarcloud code smells 2023-07-01 16:48:30 +02:00
MathieuG-P 8a99c412fd Merge pull request #268 from Zagrios/chore/add-snarcloud-action
[chore] add sonarcloud action
2023-07-01 15:22:14 +02:00
MathieuG-P 6a1abb9caf [chore-268] update sonarcloud action 2023-07-01 15:11:54 +02:00
MathieuG-P 68d6367283 [chore-268] add mandatory ids 2023-07-01 15:05:20 +02:00
MathieuG-P 9fb41ae85e Create sonarcloud.yml 2023-07-01 15:01:28 +02:00
MathieuG-P 27d04dee40 Merge branch 'master' of https://github.com/Zagrios/bs-manager 2023-07-01 03:18:46 +02:00
MathieuG-P 7b975a7ff0 [chore] fix some lint warnings 2023-07-01 03:18:40 +02:00
MathieuG-P 0db4d53bb0 Merge pull request #267 from RedlineTriad/ci
Adding CI starts work on #265
2023-07-01 03:06:20 +02:00
MathieuG-P d62727c3f9 [chore] fix lint errors 2023-07-01 03:01:38 +02:00
RedlineTriad b1ac8bd6fe ci: add basic linting
Currently always fails.
We can switch to differential linting or fix all of them later.
2023-06-30 22:54:25 +02:00
RedlineTriad aeb9a449ca ci: add automated testing
Doesn't actually succeed yet because there are quite a few errors.
2023-06-30 22:38:13 +02:00
RedlineTriad ecc5d8c2b8 ci: add automated build testing 2023-06-30 21:53:42 +02:00
RedlineTriad 600184c925 chore: update package-log.json 2023-06-30 21:53:29 +02:00
MathieuG-P 943118538d [feature] Can now launch a bs version from cmd + fix some bugs + some code cleaning 2023-06-30 21:00:02 +02:00
MathieuG-P 6eb3f75e9d Merge branch 'master' into feature/launch-bs-from-shortcut 2023-06-30 15:44:57 +02:00
MathieuG-P 7addb57613 Merge pull request #264 from RedlineTriad/fix-info-loading
fix(linux): search for info file case insensitively
2023-06-29 22:15:14 +02:00
RedlineTriad a4c7ee04db refactor: use find instead of filter for nicer code and perf 2023-06-29 21:48:27 +02:00
RedlineTriad 3b8a202ba4 refactor: avoid async for iterating over dir entries
Also uses nicer functional pipeline instead of loops.
2023-06-29 21:47:47 +02:00
Iluhadesu 2f24e657e3 Add v1.31.0 to bs_versions.json 2023-06-29 15:04:13 +00:00
RedlineTriad 17a2bc552e fix(linux): search for info file case insensitively
On linux only exactly Info.dat was matched, and many maps use different casing.
2023-06-28 22:53:26 +02:00
MathieuG-P 90d4ebc7e3 [hotfix] fix missing import 2023-06-28 22:33:12 +02:00
MathieuG-P 6a867d0e28 Merge pull request #257 from Insprill/fix/running-processes
Get running processes independent of platform
2023-06-28 22:29:49 +02:00
Pierce Thompson 0e4d1e1950 Merge branch 'master' into fix/running-processes 2023-06-28 16:29:27 -04:00
MathieuG-P 999fe2f740 Merge pull request #259 from Insprill/fix/open-folder
Use the platform native file manager when opening instance folder
2023-06-28 22:24:48 +02:00
MathieuG-P 8793b0091a Merge pull request #260 from Insprill/fix/steam-path-linux
Use the correct steam installation path on Linux
2023-06-28 22:20:25 +02:00
MathieuG-P 8df49cea3c Merge pull request #263 from Insprill/fix/tailwind-deprecation-warning
Fix Tailwind deprecation warnings during build
2023-06-28 22:17:01 +02:00
Pierce Thompson c757307627 Fix Tailwind deprecation warnings during build 2023-06-28 16:03:52 -04:00
Pierce Thompson 911eb980af Use the Windows registery again to get running Steam process 2023-06-28 15:49:05 -04:00
MathieuG-P 0e5eb113b0 [hotfix] fix maps disappear when switch tab in shared contents 2023-06-28 21:43:19 +02:00
MathieuG-P f162b4009e [hotfix] fix error reding "once" on "downloadProcess" 2023-06-28 21:41:48 +02:00
MathieuG-P 3902ccdf72 [chore] update deps 2023-06-28 21:41:09 +02:00
Pierce Thompson 0c3e342a45 Use Electron to get home directory 2023-06-28 15:39:46 -04:00
Pierce Thompson 896a68f215 Remove old method of opening instance folder 2023-06-28 15:31:14 -04:00
MathieuG-P a03bcbd3bc Merge pull request #262 from Zagrios/hotflix/cant-delete-maps-in-shared-contents
[hotfix] fix cant delete maps in shared contents + fix conflict with …
2023-06-28 20:43:48 +02:00
MathieuG-P f50ee1c25d [hotfix] fix cant delete maps in shared contents + fix conflict with maps selected and maps deletion 2023-06-28 20:43:19 +02:00
MathieuG-P e27cc7d254 remove useless hook 2023-06-28 20:31:16 +02:00
MathieuG-P c7b6908cb8 [hotfix] shared maps no longer load 2023-06-28 20:30:06 +02:00
MathieuG-P ed6db7cc88 Merge pull request #261 from Zagrios/hotfix/avoid-useless-maps-load
[hotfix] avoid useless maps loading when going directly to mods or models
2023-06-28 20:26:57 +02:00
MathieuG-P 4667c80904 [hotfix] avoid useless maps loading when going directly to mods or models 2023-06-28 20:26:13 +02:00
MathieuG-P a8be987158 Merge pull request #258 from Insprill/fix/kill-download-process
Properly kill the download process on non-Windows systems
2023-06-28 09:31:21 +02:00
Pierce Thompson 1577cc828f Use the correct steam installation path on Linux 2023-06-27 23:20:03 -04:00
Pierce Thompson be0f9d3305 Use the platform native file manager when opening instance folder 2023-06-27 23:13:19 -04:00
Pierce Thompson 338391f9ac Properly kill the download process on non-Windows systems 2023-06-27 23:01:13 -04:00
Pierce Thompson 27d3461aa6 Downgrade ps-list
ps-list moved to a pure-ESM module in 8.0.0, making it incompatible.
2023-06-27 22:58:34 -04:00
Pierce Thompson e9f384b285 Fix missing awaits 2023-06-27 20:29:03 -04:00
Pierce Thompson 12f8724de4 Get running processes independent of platform 2023-06-27 20:09:21 -04:00
MathieuG-P aa6e2488df Merge pull request #256 from Insprill/hotifx/color-types
Move @types/color to devDependencies
2023-06-27 23:42:41 +02:00
MathieuG-P 237c86d34e Update patreon name 2023-06-27 23:07:17 +02:00
MathieuG-P a67bbb1040 Merge branch 'master' of https://github.com/Zagrios/bs-manager 2023-06-27 23:04:16 +02:00
MathieuG-P e93e091db4 Add patreon 2023-06-27 23:04:13 +02:00
Pierce Thompson 70b50be400 Move @types/color to devDependencies 2023-06-27 15:19:04 -04:00
MathieuG-P 1661a61bab [feature] Add translation for "BS_LAUNCHING" event + add TODO 2023-06-27 11:38:19 +02:00
MathieuG-P c03089471a Update CONTRIBUTING.md 2023-06-27 09:57:18 +02:00
MathieuG-P b7e287c86a [feature] Rework of the BS launching system to prepare for shortcuts 2023-06-26 23:25:53 +02:00
MathieuG-P f9674df2ce Merge pull request #255 from Zagrios/feature/start-steam-if-not-running-and-bs-automatically-after
[feature] Steam now launch automatically if it not running then BS launch just after
2023-06-25 22:30:52 +02:00
MathieuG-P ae5961e8de [feature] Steam now launch automatically if it not running then BS launch just after 2023-06-25 22:28:09 +02:00
MathieuG-P 66f0fdc3d6 add patreon 2023-06-22 19:44:55 +02:00
MathieuG-P bf6e129b1f add patreon 2023-06-21 21:41:59 +02:00
MathieuG-P 446f56d85d Merge branch 'master' of https://github.com/Zagrios/bs-manager 2023-06-19 23:13:58 +02:00
MathieuG-P f49069622f bumb to 1.2.0 2023-06-19 23:13:55 +02:00
MathieuG-P ee3ea58a88 Merge pull request #249 from AltyFox/patch-1
Change wording for a tad more accuracy / Fix typo.
2023-06-18 12:52:50 +02:00
Alteran 52c02213dd Change wording for a tad more accuracy / Fix typo.
"performances" should have been singular, but reworded to remove implication that it *will* increase performance when that is *not* the case for everyone.
2023-06-18 04:53:04 -05:00
365 changed files with 46980 additions and 41826 deletions
+11 -11
View File
@@ -1,13 +1,13 @@
{
"rules": {
"no-console": "off",
"global-require": "off",
"import/no-dynamic-require": "off",
"prettier/prettier": 0,
"no-await-in-loop": "off",
"import/prefer-default-export": "off",
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": "off",
"@angular-eslint/no-empty-lifecycle-method": "off"
}
"rules": {
"no-console": "off",
"global-require": "off",
"import/no-dynamic-require": "off",
"prettier/prettier": 0,
"no-await-in-loop": "off",
"import/prefer-default-export": "off",
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": "off",
"@angular-eslint/no-empty-lifecycle-method": "off"
}
}
+4 -4
View File
@@ -1,6 +1,6 @@
const tailwindcss = require('tailwindcss');
const autoprefixer = require('autoprefixer');
const tailwindcss = require("tailwindcss");
const autoprefixer = require("autoprefixer");
module.exports = {
plugins: [tailwindcss, autoprefixer],
};
plugins: [tailwindcss, autoprefixer],
};
+39 -39
View File
@@ -2,52 +2,52 @@
* Base webpack config used across other specific configs
*/
import webpack from 'webpack';
import webpackPaths from './webpack.paths';
import { dependencies as externals } from '../../release/app/package.json';
import webpack from "webpack";
import webpackPaths from "./webpack.paths";
import { dependencies as externals } from "../../release/app/package.json";
const configuration: webpack.Configuration = {
externals: [...Object.keys(externals || {})],
externals: [...Object.keys(externals || {})],
stats: 'errors-only',
stats: "errors-only",
module: {
rules: [
{
test: /\.[jt]sx?$/,
exclude: /node_modules/,
use: {
loader: 'ts-loader',
options: {
// Remove this line to enable type checking in webpack builds
transpileOnly: true,
},
},
},
],
},
output: {
path: webpackPaths.srcPath,
// https://github.com/webpack/webpack/issues/1114
library: {
type: 'commonjs2',
module: {
rules: [
{
test: /\.[jt]sx?$/,
exclude: /node_modules/,
use: {
loader: "ts-loader",
options: {
// Remove this line to enable type checking in webpack builds
transpileOnly: true,
},
},
},
],
},
},
/**
* Determine the array of extensions that should be used to resolve modules.
*/
resolve: {
extensions: ['.js', '.jsx', '.json', '.ts', '.tsx'],
modules: [webpackPaths.srcPath, 'node_modules'],
},
output: {
path: webpackPaths.srcPath,
// https://github.com/webpack/webpack/issues/1114
library: {
type: "commonjs2",
},
},
plugins: [
new webpack.EnvironmentPlugin({
NODE_ENV: 'production',
}),
],
/**
* Determine the array of extensions that should be used to resolve modules.
*/
resolve: {
extensions: [".js", ".jsx", ".json", ".ts", ".tsx"],
modules: [webpackPaths.srcPath, "node_modules"],
},
plugins: [
new webpack.EnvironmentPlugin({
NODE_ENV: "production",
}),
],
};
export default configuration;
+1 -1
View File
@@ -1,3 +1,3 @@
/* eslint import/no-unresolved: off, import/no-self-import: off */
module.exports = require('./webpack.config.renderer.dev').default;
module.exports = require("./webpack.config.renderer.dev").default;
+60 -60
View File
@@ -2,81 +2,81 @@
* Webpack config for production electron main process
*/
import path from 'path';
import webpack from 'webpack';
import { merge } from 'webpack-merge';
import TerserPlugin from 'terser-webpack-plugin';
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
import baseConfig from './webpack.config.base';
import webpackPaths from './webpack.paths';
import checkNodeEnv from '../scripts/check-node-env';
import deleteSourceMaps from '../scripts/delete-source-maps';
import path from "path";
import webpack from "webpack";
import { merge } from "webpack-merge";
import TerserPlugin from "terser-webpack-plugin";
import { BundleAnalyzerPlugin } from "webpack-bundle-analyzer";
import baseConfig from "./webpack.config.base";
import webpackPaths from "./webpack.paths";
import checkNodeEnv from "../scripts/check-node-env";
import deleteSourceMaps from "../scripts/delete-source-maps";
checkNodeEnv('production');
checkNodeEnv("production");
deleteSourceMaps();
const devtoolsConfig =
process.env.DEBUG_PROD === 'true'
? {
devtool: 'source-map',
}
: {};
process.env.DEBUG_PROD === "true"
? {
devtool: "source-map",
}
: {};
const configuration: webpack.Configuration = {
...devtoolsConfig,
...devtoolsConfig,
mode: 'production',
mode: "production",
target: 'electron-main',
target: "electron-main",
entry: {
main: path.join(webpackPaths.srcMainPath, 'main.ts'),
preload: path.join(webpackPaths.srcMainPath, 'preload.ts'),
},
entry: {
main: path.join(webpackPaths.srcMainPath, "main.ts"),
preload: path.join(webpackPaths.srcMainPath, "preload.ts"),
},
output: {
path: webpackPaths.distMainPath,
filename: '[name].js',
},
output: {
path: webpackPaths.distMainPath,
filename: "[name].js",
},
optimization: {
minimizer: [
new TerserPlugin({
parallel: true,
}),
optimization: {
minimizer: [
new TerserPlugin({
parallel: true,
}),
],
},
plugins: [
new BundleAnalyzerPlugin({
analyzerMode: process.env.ANALYZE === "true" ? "server" : "disabled",
}),
/**
* Create global constants which can be configured at compile time.
*
* Useful for allowing different behaviour between development builds and
* release builds
*
* NODE_ENV should be production so that modules do not perform certain
* development checks
*/
new webpack.EnvironmentPlugin({
NODE_ENV: "production",
DEBUG_PROD: false,
START_MINIMIZED: false,
}),
],
},
plugins: [
new BundleAnalyzerPlugin({
analyzerMode: process.env.ANALYZE === 'true' ? 'server' : 'disabled',
}),
/**
* Create global constants which can be configured at compile time.
*
* Useful for allowing different behaviour between development builds and
* release builds
*
* NODE_ENV should be production so that modules do not perform certain
* development checks
* Disables webpack processing of __dirname and __filename.
* If you run the bundle in node.js it falls back to these values of node.js.
* https://github.com/webpack/webpack/issues/2010
*/
new webpack.EnvironmentPlugin({
NODE_ENV: 'production',
DEBUG_PROD: false,
START_MINIMIZED: false,
}),
],
/**
* Disables webpack processing of __dirname and __filename.
* If you run the bundle in node.js it falls back to these values of node.js.
* https://github.com/webpack/webpack/issues/2010
*/
node: {
__dirname: false,
__filename: false,
},
node: {
__dirname: false,
__filename: false,
},
};
export default merge(baseConfig, configuration);
+50 -50
View File
@@ -1,68 +1,68 @@
import path from 'path';
import webpack from 'webpack';
import { merge } from 'webpack-merge';
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
import baseConfig from './webpack.config.base';
import webpackPaths from './webpack.paths';
import checkNodeEnv from '../scripts/check-node-env';
import path from "path";
import webpack from "webpack";
import { merge } from "webpack-merge";
import { BundleAnalyzerPlugin } from "webpack-bundle-analyzer";
import baseConfig from "./webpack.config.base";
import webpackPaths from "./webpack.paths";
import checkNodeEnv from "../scripts/check-node-env";
// When an ESLint server is running, we can't set the NODE_ENV so we'll check if it's
// at the dev webpack config is not accidentally run in a production environment
if (process.env.NODE_ENV === 'production') {
checkNodeEnv('development');
if (process.env.NODE_ENV === "production") {
checkNodeEnv("development");
}
const configuration: webpack.Configuration = {
devtool: 'inline-source-map',
devtool: "inline-source-map",
mode: 'development',
mode: "development",
target: 'electron-preload',
target: "electron-preload",
entry: path.join(webpackPaths.srcMainPath, 'preload.ts'),
entry: path.join(webpackPaths.srcMainPath, "preload.ts"),
output: {
path: webpackPaths.dllPath,
filename: 'preload.js',
},
output: {
path: webpackPaths.dllPath,
filename: "preload.js",
},
plugins: [
new BundleAnalyzerPlugin({
analyzerMode: process.env.ANALYZE === 'true' ? 'server' : 'disabled',
}),
plugins: [
new BundleAnalyzerPlugin({
analyzerMode: process.env.ANALYZE === "true" ? "server" : "disabled",
}),
/**
* Create global constants which can be configured at compile time.
*
* Useful for allowing different behaviour between development builds and
* release builds
*
* NODE_ENV should be production so that modules do not perform certain
* development checks
*
* By default, use 'development' as NODE_ENV. This can be overriden with
* 'staging', for example, by changing the ENV variables in the npm scripts
*/
new webpack.EnvironmentPlugin({
NODE_ENV: "development",
}),
new webpack.LoaderOptionsPlugin({
debug: true,
}),
],
/**
* Create global constants which can be configured at compile time.
*
* Useful for allowing different behaviour between development builds and
* release builds
*
* NODE_ENV should be production so that modules do not perform certain
* development checks
*
* By default, use 'development' as NODE_ENV. This can be overriden with
* 'staging', for example, by changing the ENV variables in the npm scripts
* Disables webpack processing of __dirname and __filename.
* If you run the bundle in node.js it falls back to these values of node.js.
* https://github.com/webpack/webpack/issues/2010
*/
new webpack.EnvironmentPlugin({
NODE_ENV: 'development',
}),
node: {
__dirname: false,
__filename: false,
},
new webpack.LoaderOptionsPlugin({
debug: true,
}),
],
/**
* Disables webpack processing of __dirname and __filename.
* If you run the bundle in node.js it falls back to these values of node.js.
* https://github.com/webpack/webpack/issues/2010
*/
node: {
__dirname: false,
__filename: false,
},
watch: true,
watch: true,
};
export default merge(baseConfig, configuration);
+56 -56
View File
@@ -2,76 +2,76 @@
* Builds the DLL for development electron renderer process
*/
import webpack from 'webpack';
import path from 'path';
import { merge } from 'webpack-merge';
import baseConfig from './webpack.config.base';
import webpackPaths from './webpack.paths';
import { dependencies } from '../../package.json';
import checkNodeEnv from '../scripts/check-node-env';
import webpack from "webpack";
import path from "path";
import { merge } from "webpack-merge";
import baseConfig from "./webpack.config.base";
import webpackPaths from "./webpack.paths";
import { dependencies } from "../../package.json";
import checkNodeEnv from "../scripts/check-node-env";
checkNodeEnv('development');
checkNodeEnv("development");
const dist = webpackPaths.dllPath;
const configuration: webpack.Configuration = {
context: webpackPaths.rootPath,
context: webpackPaths.rootPath,
devtool: 'eval',
devtool: "eval",
mode: 'development',
mode: "development",
target: 'electron-renderer',
target: "electron-renderer",
externals: ['fsevents', 'crypto-browserify'],
/**
* Use `module` from `webpack.config.renderer.dev.js`
*/
module: require('./webpack.config.renderer.dev').default.module,
entry: {
renderer: Object.keys(dependencies || {}),
},
output: {
path: dist,
filename: '[name].dev.dll.js',
library: {
name: 'renderer',
type: 'var',
},
},
plugins: [
new webpack.DllPlugin({
path: path.join(dist, '[name].json'),
name: '[name]',
}),
externals: ["fsevents", "crypto-browserify"],
/**
* Create global constants which can be configured at compile time.
*
* Useful for allowing different behaviour between development builds and
* release builds
*
* NODE_ENV should be production so that modules do not perform certain
* development checks
* Use `module` from `webpack.config.renderer.dev.js`
*/
new webpack.EnvironmentPlugin({
NODE_ENV: 'development',
}),
module: require("./webpack.config.renderer.dev").default.module,
new webpack.LoaderOptionsPlugin({
debug: true,
options: {
context: webpackPaths.srcPath,
output: {
path: webpackPaths.dllPath,
entry: {
renderer: Object.keys(dependencies || {}),
},
output: {
path: dist,
filename: "[name].dev.dll.js",
library: {
name: "renderer",
type: "var",
},
},
}),
],
},
plugins: [
new webpack.DllPlugin({
path: path.join(dist, "[name].json"),
name: "[name]",
}),
/**
* Create global constants which can be configured at compile time.
*
* Useful for allowing different behaviour between development builds and
* release builds
*
* NODE_ENV should be production so that modules do not perform certain
* development checks
*/
new webpack.EnvironmentPlugin({
NODE_ENV: "development",
}),
new webpack.LoaderOptionsPlugin({
debug: true,
options: {
context: webpackPaths.srcPath,
output: {
path: webpackPaths.dllPath,
},
},
}),
],
};
export default merge(baseConfig, configuration);
+155 -172
View File
@@ -1,43 +1,34 @@
import 'webpack-dev-server';
import path from 'path';
import fs from 'fs';
import webpack from 'webpack';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import chalk from 'chalk';
import { merge } from 'webpack-merge';
import { execSync, spawn } from 'child_process';
import ReactRefreshWebpackPlugin from '@pmmmwh/react-refresh-webpack-plugin';
import baseConfig from './webpack.config.base';
import webpackPaths from './webpack.paths';
import checkNodeEnv from '../scripts/check-node-env';
import { AppWindow } from "../../src/shared/models/window-manager/app-window.model"
import "webpack-dev-server";
import path from "path";
import fs from "fs";
import webpack from "webpack";
import HtmlWebpackPlugin from "html-webpack-plugin";
import chalk from "chalk";
import { merge } from "webpack-merge";
import { execSync, spawn } from "child_process";
import ReactRefreshWebpackPlugin from "@pmmmwh/react-refresh-webpack-plugin";
import baseConfig from "./webpack.config.base";
import webpackPaths from "./webpack.paths";
import checkNodeEnv from "../scripts/check-node-env";
import { AppWindow } from "../../src/shared/models/window-manager/app-window.model";
// When an ESLint server is running, we can't set the NODE_ENV so we'll check if it's
// at the dev webpack config is not accidentally run in a production environment
if (process.env.NODE_ENV === 'production') {
checkNodeEnv('development');
if (process.env.NODE_ENV === "production") {
checkNodeEnv("development");
}
const port = process.env.PORT || 1212;
const manifest = path.resolve(webpackPaths.dllPath, 'renderer.json');
const manifest = path.resolve(webpackPaths.dllPath, "renderer.json");
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const requiredByDLLConfig = module.parent!.filename.includes(
'webpack.config.renderer.dev.dll'
);
const requiredByDLLConfig = module.parent!.filename.includes("webpack.config.renderer.dev.dll");
/**
* Warn if the DLL is not built
*/
if (
!requiredByDLLConfig &&
!(fs.existsSync(webpackPaths.dllPath) && fs.existsSync(manifest))
) {
console.log(
chalk.black.bgYellow.bold(
'The DLL files are missing. Sit back while we build them for you with "npm run build-dll"'
)
);
execSync('npm run postinstall');
if (!requiredByDLLConfig && !(fs.existsSync(webpackPaths.dllPath) && fs.existsSync(manifest))) {
console.log(chalk.black.bgYellow.bold('The DLL files are missing. Sit back while we build them for you with "npm run build-dll"'));
execSync("npm run postinstall");
}
const getHtmlPageOptions = (page: AppWindow): HtmlWebpackPlugin.Options => {
@@ -45,169 +36,161 @@ const getHtmlPageOptions = (page: AppWindow): HtmlWebpackPlugin.Options => {
filename: path.join(page),
template: path.join(webpackPaths.srcRendererPath, page.replace(".html", ".ejs")),
minify: {
collapseWhitespace: true,
removeAttributeQuotes: true,
removeComments: true,
collapseWhitespace: true,
removeAttributeQuotes: true,
removeComments: true,
},
isBrowser: false,
env: process.env.NODE_ENV,
isDevelopment: process.env.NODE_ENV !== 'production',
isDevelopment: process.env.NODE_ENV !== "production",
nodeModules: webpackPaths.appNodeModulesPath,
}
}
};
};
const configuration: webpack.Configuration = {
devtool: 'inline-source-map',
devtool: "inline-source-map",
mode: 'development',
mode: "development",
target: ['web', 'electron-renderer'],
target: ["web", "electron-renderer"],
entry: [
`webpack-dev-server/client?http://localhost:${port}/dist`,
'webpack/hot/only-dev-server',
path.join(webpackPaths.srcRendererPath, 'index.tsx'),
],
entry: [`webpack-dev-server/client?http://localhost:${port}/dist`, "webpack/hot/only-dev-server", path.join(webpackPaths.srcRendererPath, "index.tsx")],
output: {
path: webpackPaths.distRendererPath,
publicPath: '/',
filename: 'renderer.dev.js',
library: {
type: 'umd',
output: {
path: webpackPaths.distRendererPath,
publicPath: "/",
filename: "renderer.dev.js",
library: {
type: "umd",
},
},
},
module: {
rules: [
{
test: /\.s?css$/,
use: [
'style-loader',
{
loader: 'css-loader',
options: {
modules: true,
sourceMap: true,
importLoaders: 1,
module: {
rules: [
{
test: /\.s?css$/,
use: [
"style-loader",
{
loader: "css-loader",
options: {
modules: true,
sourceMap: true,
importLoaders: 1,
},
},
"sass-loader",
],
include: /\.module\.s?(c|a)ss$/,
},
},
'sass-loader',
],
include: /\.module\.s?(c|a)ss$/,
},
{
test: /\.s?css$/,
use: [
'style-loader',
'css-loader',
'sass-loader',
{
loader: 'postcss-loader',
options: {
postcssOptions: {
plugins:
[
require('tailwindcss'),
require('autoprefixer'),
]
},
{
test: /\.s?css$/,
use: [
"style-loader",
"css-loader",
"sass-loader",
{
loader: "postcss-loader",
options: {
postcssOptions: {
plugins: [require("tailwindcss"), require("autoprefixer")],
},
},
},
],
exclude: /\.module\.s?(c|a)ss$/,
},
// Fonts
{
test: /\.(woff|woff2|eot|ttf|otf)$/i,
type: "asset/resource",
},
// Images
{
test: /\.(png|svg|jpg|jpeg|gif|mp4|webp)$/i,
type: "asset/resource",
},
},
],
exclude: /\.module\.s?(c|a)ss$/,
},
// Fonts
{
test: /\.(woff|woff2|eot|ttf|otf)$/i,
type: 'asset/resource',
},
// Images
{
test: /\.(png|svg|jpg|jpeg|gif|mp4|webp)$/i,
type: 'asset/resource',
},
},
plugins: [
...(requiredByDLLConfig
? []
: [
new webpack.DllReferencePlugin({
context: webpackPaths.dllPath,
manifest: require(manifest),
sourceType: "var",
}),
]),
new webpack.NoEmitOnErrorsPlugin(),
/**
* Create global constants which can be configured at compile time.
*
* Useful for allowing different behaviour between development builds and
* release builds
*
* NODE_ENV should be production so that modules do not perform certain
* development checks
*
* By default, use 'development' as NODE_ENV. This can be overriden with
* 'staging', for example, by changing the ENV variables in the npm scripts
*/
new webpack.EnvironmentPlugin({
NODE_ENV: "development",
}),
new webpack.LoaderOptionsPlugin({
debug: true,
}),
new ReactRefreshWebpackPlugin(),
new HtmlWebpackPlugin(getHtmlPageOptions("index.html")),
new HtmlWebpackPlugin(getHtmlPageOptions("launcher.html")),
new HtmlWebpackPlugin(getHtmlPageOptions("oneclick-download-map.html")),
new HtmlWebpackPlugin(getHtmlPageOptions("oneclick-download-playlist.html")),
new HtmlWebpackPlugin(getHtmlPageOptions("oneclick-download-model.html")),
new HtmlWebpackPlugin(getHtmlPageOptions("shortcut-launch.html")),
],
},
plugins: [
...(requiredByDLLConfig
? []
: [
new webpack.DllReferencePlugin({
context: webpackPaths.dllPath,
manifest: require(manifest),
sourceType: 'var',
}),
]),
new webpack.NoEmitOnErrorsPlugin(),
/**
* Create global constants which can be configured at compile time.
*
* Useful for allowing different behaviour between development builds and
* release builds
*
* NODE_ENV should be production so that modules do not perform certain
* development checks
*
* By default, use 'development' as NODE_ENV. This can be overriden with
* 'staging', for example, by changing the ENV variables in the npm scripts
*/
new webpack.EnvironmentPlugin({
NODE_ENV: 'development',
}),
new webpack.LoaderOptionsPlugin({
debug: true,
}),
new ReactRefreshWebpackPlugin(),
new HtmlWebpackPlugin(getHtmlPageOptions("index.html")),
new HtmlWebpackPlugin(getHtmlPageOptions("launcher.html")),
new HtmlWebpackPlugin(getHtmlPageOptions("oneclick-download-map.html")),
new HtmlWebpackPlugin(getHtmlPageOptions("oneclick-download-playlist.html")),
new HtmlWebpackPlugin(getHtmlPageOptions("oneclick-download-model.html")),
],
node: {
__dirname: false,
__filename: false,
},
devServer: {
port,
compress: true,
hot: true,
headers: { 'Access-Control-Allow-Origin': '*' },
static: {
publicPath: '/',
node: {
__dirname: false,
__filename: false,
},
historyApiFallback: true,
setupMiddlewares(middlewares) {
console.log('Starting preload.js builder...');
const preloadProcess = spawn('npm', ['run', 'start:preload'], {
shell: true,
stdio: 'inherit',
})
.on('close', (code: number) => process.exit(code!))
.on('error', (spawnError) => console.error(spawnError));
console.log('Starting Main Process...');
spawn('npm', ['run', 'start:main'], {
shell: true,
stdio: 'inherit',
})
.on('close', (code: number) => {
preloadProcess.kill();
process.exit(code!);
})
.on('error', (spawnError) => console.error(spawnError));
return middlewares;
devServer: {
port,
compress: true,
hot: true,
headers: { "Access-Control-Allow-Origin": "*" },
static: {
publicPath: "/",
},
historyApiFallback: true,
setupMiddlewares(middlewares) {
console.log("Starting preload.js builder...");
const preloadProcess = spawn("npm", ["run", "start:preload"], {
shell: true,
stdio: "inherit",
})
.on("close", (code: number) => process.exit(code!))
.on("error", spawnError => console.error(spawnError));
console.log("Starting Main Process...");
spawn("npm", ["run", "start:main"], {
shell: true,
stdio: "inherit",
})
.on("close", (code: number) => {
preloadProcess.kill();
process.exit(code!);
})
.on("error", spawnError => console.error(spawnError));
return middlewares;
},
},
},
};
export default merge(baseConfig, configuration);
+120 -125
View File
@@ -2,157 +2,152 @@
* Build config for electron renderer process
*/
import path from 'path';
import webpack from 'webpack';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
import CssMinimizerPlugin from 'css-minimizer-webpack-plugin';
import { merge } from 'webpack-merge';
import TerserPlugin from 'terser-webpack-plugin';
import baseConfig from './webpack.config.base';
import webpackPaths from './webpack.paths';
import checkNodeEnv from '../scripts/check-node-env';
import deleteSourceMaps from '../scripts/delete-source-maps';
import { AppWindow } from "../../src/shared/models/window-manager/app-window.model"
import path from "path";
import webpack from "webpack";
import HtmlWebpackPlugin from "html-webpack-plugin";
import MiniCssExtractPlugin from "mini-css-extract-plugin";
import { BundleAnalyzerPlugin } from "webpack-bundle-analyzer";
import CssMinimizerPlugin from "css-minimizer-webpack-plugin";
import { merge } from "webpack-merge";
import TerserPlugin from "terser-webpack-plugin";
import baseConfig from "./webpack.config.base";
import webpackPaths from "./webpack.paths";
import checkNodeEnv from "../scripts/check-node-env";
import deleteSourceMaps from "../scripts/delete-source-maps";
import { AppWindow } from "../../src/shared/models/window-manager/app-window.model";
checkNodeEnv('production');
checkNodeEnv("production");
deleteSourceMaps();
const devtoolsConfig =
process.env.DEBUG_PROD === 'true'
? {
devtool: 'source-map',
}
: {};
process.env.DEBUG_PROD === "true"
? {
devtool: "source-map",
}
: {};
const getHtmlPageOptions = (page: AppWindow): HtmlWebpackPlugin.Options => {
return {
filename: path.join(page),
template: path.join(webpackPaths.srcRendererPath, page.replace(".html", ".ejs")),
minify: {
collapseWhitespace: true,
removeAttributeQuotes: true,
removeComments: true,
collapseWhitespace: true,
removeAttributeQuotes: true,
removeComments: true,
},
isBrowser: false,
env: process.env.NODE_ENV,
isDevelopment: process.env.NODE_ENV !== 'production',
isDevelopment: process.env.NODE_ENV !== "production",
nodeModules: webpackPaths.appNodeModulesPath,
}
}
};
};
const configuration: webpack.Configuration = {
...devtoolsConfig,
...devtoolsConfig,
mode: 'production',
mode: "production",
target: ['web', 'electron-renderer'],
target: ["web", "electron-renderer"],
entry: [path.join(webpackPaths.srcRendererPath, 'index.tsx')],
entry: [path.join(webpackPaths.srcRendererPath, "index.tsx")],
output: {
path: webpackPaths.distRendererPath,
publicPath: './',
filename: 'renderer.js',
library: {
type: 'umd',
output: {
path: webpackPaths.distRendererPath,
publicPath: "./",
filename: "renderer.js",
library: {
type: "umd",
},
},
},
module: {
rules: [
{
test: /\.s?(a|c)ss$/,
use: [
MiniCssExtractPlugin.loader,
{
loader: 'css-loader',
options: {
modules: true,
sourceMap: true,
importLoaders: 1,
module: {
rules: [
{
test: /\.s?(a|c)ss$/,
use: [
MiniCssExtractPlugin.loader,
{
loader: "css-loader",
options: {
modules: true,
sourceMap: true,
importLoaders: 1,
},
},
"sass-loader",
],
include: /\.module\.s?(c|a)ss$/,
},
},
'sass-loader',
],
include: /\.module\.s?(c|a)ss$/,
},
{
test: /\.s?(a|c)ss$/,
use: [
MiniCssExtractPlugin.loader,
'css-loader',
'sass-loader',
{
loader: 'postcss-loader',
options: {
postcssOptions: {
plugins:
[
require('tailwindcss'),
require('autoprefixer'),
]
},
{
test: /\.s?(a|c)ss$/,
use: [
MiniCssExtractPlugin.loader,
"css-loader",
"sass-loader",
{
loader: "postcss-loader",
options: {
postcssOptions: {
plugins: [require("tailwindcss"), require("autoprefixer")],
},
},
},
],
exclude: /\.module\.s?(c|a)ss$/,
},
// Fonts
{
test: /\.(woff|woff2|eot|ttf|otf)$/i,
type: "asset/resource",
},
// Images
{
test: /\.(png|svg|jpg|jpeg|gif|mp4|webp)$/i,
type: "asset/resource",
},
},
],
exclude: /\.module\.s?(c|a)ss$/,
},
// Fonts
{
test: /\.(woff|woff2|eot|ttf|otf)$/i,
type: 'asset/resource',
},
// Images
{
test: /\.(png|svg|jpg|jpeg|gif|mp4|webp)$/i,
type: 'asset/resource',
},
},
optimization: {
minimize: true,
minimizer: [
new TerserPlugin({
parallel: true,
}),
new CssMinimizerPlugin(),
],
},
plugins: [
/**
* Create global constants which can be configured at compile time.
*
* Useful for allowing different behaviour between development builds and
* release builds
*
* NODE_ENV should be production so that modules do not perform certain
* development checks
*/
new webpack.EnvironmentPlugin({
NODE_ENV: "production",
DEBUG_PROD: false,
}),
new MiniCssExtractPlugin({
filename: "style.css",
}),
new BundleAnalyzerPlugin({
analyzerMode: process.env.ANALYZE === "true" ? "server" : "disabled",
}),
new HtmlWebpackPlugin(getHtmlPageOptions("index.html")),
new HtmlWebpackPlugin(getHtmlPageOptions("launcher.html")),
new HtmlWebpackPlugin(getHtmlPageOptions("oneclick-download-map.html")),
new HtmlWebpackPlugin(getHtmlPageOptions("oneclick-download-playlist.html")),
new HtmlWebpackPlugin(getHtmlPageOptions("oneclick-download-model.html")),
new HtmlWebpackPlugin(getHtmlPageOptions("shortcut-launch.html")),
],
},
optimization: {
minimize: true,
minimizer: [
new TerserPlugin({
parallel: true,
}),
new CssMinimizerPlugin(),
],
},
plugins: [
/**
* Create global constants which can be configured at compile time.
*
* Useful for allowing different behaviour between development builds and
* release builds
*
* NODE_ENV should be production so that modules do not perform certain
* development checks
*/
new webpack.EnvironmentPlugin({
NODE_ENV: 'production',
DEBUG_PROD: false,
}),
new MiniCssExtractPlugin({
filename: 'style.css',
}),
new BundleAnalyzerPlugin({
analyzerMode: process.env.ANALYZE === 'true' ? 'server' : 'disabled',
}),
new HtmlWebpackPlugin(getHtmlPageOptions("index.html")),
new HtmlWebpackPlugin(getHtmlPageOptions("launcher.html")),
new HtmlWebpackPlugin(getHtmlPageOptions("oneclick-download-map.html")),
new HtmlWebpackPlugin(getHtmlPageOptions("oneclick-download-playlist.html")),
new HtmlWebpackPlugin(getHtmlPageOptions("oneclick-download-model.html")),
],
};
export default merge(baseConfig, configuration);
+29 -29
View File
@@ -1,38 +1,38 @@
const path = require('path');
const path = require("path");
const rootPath = path.join(__dirname, '../..');
const rootPath = path.join(__dirname, "../..");
const dllPath = path.join(__dirname, '../dll');
const dllPath = path.join(__dirname, "../dll");
const srcPath = path.join(rootPath, 'src');
const srcMainPath = path.join(srcPath, 'main');
const srcRendererPath = path.join(srcPath, 'renderer');
const srcPath = path.join(rootPath, "src");
const srcMainPath = path.join(srcPath, "main");
const srcRendererPath = path.join(srcPath, "renderer");
const releasePath = path.join(rootPath, 'release');
const appPath = path.join(releasePath, 'app');
const appPackagePath = path.join(appPath, 'package.json');
const appNodeModulesPath = path.join(appPath, 'node_modules');
const srcNodeModulesPath = path.join(srcPath, 'node_modules');
const releasePath = path.join(rootPath, "release");
const appPath = path.join(releasePath, "app");
const appPackagePath = path.join(appPath, "package.json");
const appNodeModulesPath = path.join(appPath, "node_modules");
const srcNodeModulesPath = path.join(srcPath, "node_modules");
const distPath = path.join(appPath, 'dist');
const distMainPath = path.join(distPath, 'main');
const distRendererPath = path.join(distPath, 'renderer');
const distPath = path.join(appPath, "dist");
const distMainPath = path.join(distPath, "main");
const distRendererPath = path.join(distPath, "renderer");
const buildPath = path.join(releasePath, 'build');
const buildPath = path.join(releasePath, "build");
export default {
rootPath,
dllPath,
srcPath,
srcMainPath,
srcRendererPath,
releasePath,
appPath,
appPackagePath,
appNodeModulesPath,
srcNodeModulesPath,
distPath,
distMainPath,
distRendererPath,
buildPath,
rootPath,
dllPath,
srcPath,
srcMainPath,
srcRendererPath,
releasePath,
appPath,
appPackagePath,
appNodeModulesPath,
srcNodeModulesPath,
distPath,
distMainPath,
distRendererPath,
buildPath,
};
+1 -1
View File
@@ -1 +1 @@
export default 'test-file-stub';
export default "test-file-stub";
+6 -6
View File
@@ -1,8 +1,8 @@
{
"rules": {
"no-console": "off",
"global-require": "off",
"import/no-dynamic-require": "off",
"import/no-extraneous-dependencies": "off"
}
"rules": {
"no-console": "off",
"global-require": "off",
"import/no-dynamic-require": "off",
"import/no-extraneous-dependencies": "off"
}
}
+8 -16
View File
@@ -1,24 +1,16 @@
// Check if the renderer and main bundles are built
import path from 'path';
import chalk from 'chalk';
import fs from 'fs';
import webpackPaths from '../configs/webpack.paths';
import path from "path";
import chalk from "chalk";
import fs from "fs";
import webpackPaths from "../configs/webpack.paths";
const mainPath = path.join(webpackPaths.distMainPath, 'main.js');
const rendererPath = path.join(webpackPaths.distRendererPath, 'renderer.js');
const mainPath = path.join(webpackPaths.distMainPath, "main.js");
const rendererPath = path.join(webpackPaths.distRendererPath, "renderer.js");
if (!fs.existsSync(mainPath)) {
throw new Error(
chalk.whiteBright.bgRed.bold(
'The main process is not built yet. Build it by running "npm run build:main"'
)
);
throw new Error(chalk.whiteBright.bgRed.bold('The main process is not built yet. Build it by running "npm run build:main"'));
}
if (!fs.existsSync(rendererPath)) {
throw new Error(
chalk.whiteBright.bgRed.bold(
'The renderer process is not built yet. Build it by running "npm run build:renderer"'
)
);
throw new Error(chalk.whiteBright.bgRed.bold('The renderer process is not built yet. Build it by running "npm run build:renderer"'));
}
+34 -50
View File
@@ -1,54 +1,38 @@
import fs from 'fs';
import chalk from 'chalk';
import { execSync } from 'child_process';
import { dependencies } from '../../package.json';
import fs from "fs";
import chalk from "chalk";
import { execSync } from "child_process";
import { dependencies } from "../../package.json";
if (dependencies) {
const dependenciesKeys = Object.keys(dependencies);
const nativeDeps = fs
.readdirSync('node_modules')
.filter((folder) => fs.existsSync(`node_modules/${folder}/binding.gyp`));
if (nativeDeps.length === 0) {
process.exit(0);
}
try {
// Find the reason for why the dependency is installed. If it is installed
// because of a devDependency then that is okay. Warn when it is installed
// because of a dependency
const { dependencies: dependenciesObject } = JSON.parse(
execSync(`npm ls ${nativeDeps.join(' ')} --json`).toString()
);
const rootDependencies = Object.keys(dependenciesObject);
const filteredRootDependencies = rootDependencies.filter((rootDependency) =>
dependenciesKeys.includes(rootDependency)
);
if (filteredRootDependencies.length > 0) {
const plural = filteredRootDependencies.length > 1;
console.log(`
${chalk.whiteBright.bgYellow.bold(
'Webpack does not work with native dependencies.'
)}
${chalk.bold(filteredRootDependencies.join(', '))} ${
plural ? 'are native dependencies' : 'is a native dependency'
} and should be installed inside of the "./release/app" folder.
First, uninstall the packages from "./package.json":
${chalk.whiteBright.bgGreen.bold('npm uninstall your-package')}
${chalk.bold(
'Then, instead of installing the package to the root "./package.json":'
)}
${chalk.whiteBright.bgRed.bold('npm install your-package')}
${chalk.bold('Install the package to "./release/app/package.json"')}
${chalk.whiteBright.bgGreen.bold(
'cd ./release/app && npm install your-package'
)}
Read more about native dependencies at:
${chalk.bold(
'https://electron-react-boilerplate.js.org/docs/adding-dependencies/#module-structure'
)}
`);
process.exit(1);
const dependenciesKeys = Object.keys(dependencies);
const nativeDeps = fs.readdirSync("node_modules").filter(folder => fs.existsSync(`node_modules/${folder}/binding.gyp`));
if (nativeDeps.length === 0) {
process.exit(0);
}
try {
// Find the reason for why the dependency is installed. If it is installed
// because of a devDependency then that is okay. Warn when it is installed
// because of a dependency
const { dependencies: dependenciesObject } = JSON.parse(execSync(`npm ls ${nativeDeps.join(" ")} --json`).toString());
const rootDependencies = Object.keys(dependenciesObject);
const filteredRootDependencies = rootDependencies.filter(rootDependency => dependenciesKeys.includes(rootDependency));
if (filteredRootDependencies.length > 0) {
const plural = filteredRootDependencies.length > 1;
console.log(`
${chalk.whiteBright.bgYellow.bold("Webpack does not work with native dependencies.")}
${chalk.bold(filteredRootDependencies.join(", "))} ${plural ? "are native dependencies" : "is a native dependency"} and should be installed inside of the "./release/app" folder.
First, uninstall the packages from "./package.json":
${chalk.whiteBright.bgGreen.bold("npm uninstall your-package")}
${chalk.bold('Then, instead of installing the package to the root "./package.json":')}
${chalk.whiteBright.bgRed.bold("npm install your-package")}
${chalk.bold('Install the package to "./release/app/package.json"')}
${chalk.whiteBright.bgGreen.bold("cd ./release/app && npm install your-package")}
Read more about native dependencies at:
${chalk.bold("https://electron-react-boilerplate.js.org/docs/adding-dependencies/#module-structure")}
`);
process.exit(1);
}
} catch (e) {
console.log("Native dependencies could not be checked");
}
} catch (e) {
console.log('Native dependencies could not be checked');
}
}
+8 -12
View File
@@ -1,16 +1,12 @@
import chalk from 'chalk';
import chalk from "chalk";
export default function checkNodeEnv(expectedEnv) {
if (!expectedEnv) {
throw new Error('"expectedEnv" not set');
}
if (!expectedEnv) {
throw new Error('"expectedEnv" not set');
}
if (process.env.NODE_ENV !== expectedEnv) {
console.log(
chalk.whiteBright.bgRed.bold(
`"process.env.NODE_ENV" must be "${expectedEnv}" to use this webpack config`
)
);
process.exit(2);
}
if (process.env.NODE_ENV !== expectedEnv) {
console.log(chalk.whiteBright.bgRed.bold(`"process.env.NODE_ENV" must be "${expectedEnv}" to use this webpack config`));
process.exit(2);
}
}
+8 -12
View File
@@ -1,16 +1,12 @@
import chalk from 'chalk';
import detectPort from 'detect-port';
import chalk from "chalk";
import detectPort from "detect-port";
const port = process.env.PORT || '1212';
const port = process.env.PORT || "1212";
detectPort(port, (err, availablePort) => {
if (port !== String(availablePort)) {
throw new Error(
chalk.whiteBright.bgRed.bold(
`Port "${port}" on "localhost" is already in use. Please use another port. ex: PORT=4343 npm start`
)
);
} else {
process.exit(0);
}
if (port !== String(availablePort)) {
throw new Error(chalk.whiteBright.bgRed.bold(`Port "${port}" on "localhost" is already in use. Please use another port. ex: PORT=4343 npm start`));
} else {
process.exit(0);
}
});
+11 -11
View File
@@ -1,17 +1,17 @@
import rimraf from 'rimraf';
import process from 'process';
import webpackPaths from '../configs/webpack.paths';
import rimraf from "rimraf";
import process from "process";
import webpackPaths from "../configs/webpack.paths";
const args = process.argv.slice(2);
const commandMap = {
dist: webpackPaths.distPath,
release: webpackPaths.releasePath,
dll: webpackPaths.dllPath,
dist: webpackPaths.distPath,
release: webpackPaths.releasePath,
dll: webpackPaths.dllPath,
};
args.forEach((x) => {
const pathToRemove = commandMap[x];
if (pathToRemove !== undefined) {
rimraf.sync(pathToRemove);
}
args.forEach(x => {
const pathToRemove = commandMap[x];
if (pathToRemove !== undefined) {
rimraf.sync(pathToRemove);
}
});
+5 -5
View File
@@ -1,8 +1,8 @@
import path from 'path';
import rimraf from 'rimraf';
import webpackPaths from '../configs/webpack.paths';
import path from "path";
import rimraf from "rimraf";
import webpackPaths from "../configs/webpack.paths";
export default function deleteSourceMaps() {
rimraf.sync(path.join(webpackPaths.distMainPath, '*.js.map'));
rimraf.sync(path.join(webpackPaths.distRendererPath, '*.js.map'));
rimraf.sync(path.join(webpackPaths.distMainPath, "*.js.map"));
rimraf.sync(path.join(webpackPaths.distRendererPath, "*.js.map"));
}
+11 -18
View File
@@ -1,20 +1,13 @@
import { execSync } from 'child_process';
import fs from 'fs';
import { dependencies } from '../../release/app/package.json';
import webpackPaths from '../configs/webpack.paths';
import { execSync } from "child_process";
import fs from "fs";
import { dependencies } from "../../release/app/package.json";
import webpackPaths from "../configs/webpack.paths";
if (
Object.keys(dependencies || {}).length > 0 &&
fs.existsSync(webpackPaths.appNodeModulesPath)
) {
const electronRebuildCmd =
'../../node_modules/.bin/electron-rebuild --force --types prod,dev,optional --module-dir .';
const cmd =
process.platform === 'win32'
? electronRebuildCmd.replace(/\//g, '\\')
: electronRebuildCmd;
execSync(cmd, {
cwd: webpackPaths.appPath,
stdio: 'inherit',
});
if (Object.keys(dependencies || {}).length > 0 && fs.existsSync(webpackPaths.appNodeModulesPath)) {
const electronRebuildCmd = "../../node_modules/.bin/electron-rebuild --force --types prod,dev,optional --module-dir .";
const cmd = process.platform === "win32" ? electronRebuildCmd.replace(/\//g, "\\") : electronRebuildCmd;
execSync(cmd, {
cwd: webpackPaths.appPath,
stdio: "inherit",
});
}
+3 -3
View File
@@ -1,9 +1,9 @@
import fs from 'fs';
import webpackPaths from '../configs/webpack.paths';
import fs from "fs";
import webpackPaths from "../configs/webpack.paths";
const { srcNodeModulesPath } = webpackPaths;
const { appNodeModulesPath } = webpackPaths;
if (!fs.existsSync(srcNodeModulesPath) && fs.existsSync(appNodeModulesPath)) {
fs.symlinkSync(appNodeModulesPath, srcNodeModulesPath, 'junction');
fs.symlinkSync(appNodeModulesPath, srcNodeModulesPath, "junction");
}
+21 -23
View File
@@ -1,30 +1,28 @@
const { notarize } = require('electron-notarize');
const { build } = require('../../package.json');
const { notarize } = require("electron-notarize");
const { build } = require("../../package.json");
exports.default = async function notarizeMacos(context) {
const { electronPlatformName, appOutDir } = context;
if (electronPlatformName !== 'darwin') {
return;
}
const { electronPlatformName, appOutDir } = context;
if (electronPlatformName !== "darwin") {
return;
}
if (process.env.CI !== 'true') {
console.warn('Skipping notarizing step. Packaging is not running in CI');
return;
}
if (process.env.CI !== "true") {
console.warn("Skipping notarizing step. Packaging is not running in CI");
return;
}
if (!('APPLE_ID' in process.env && 'APPLE_ID_PASS' in process.env)) {
console.warn(
'Skipping notarizing step. APPLE_ID and APPLE_ID_PASS env variables must be set'
);
return;
}
if (!("APPLE_ID" in process.env && "APPLE_ID_PASS" in process.env)) {
console.warn("Skipping notarizing step. APPLE_ID and APPLE_ID_PASS env variables must be set");
return;
}
const appName = context.packager.appInfo.productFilename;
const appName = context.packager.appInfo.productFilename;
await notarize({
appBundleId: build.appId,
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APPLE_ID_PASS,
});
await notarize({
appBundleId: build.appId,
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APPLE_ID_PASS,
});
};
+67 -56
View File
@@ -1,60 +1,71 @@
module.exports = {
extends: 'erb',
rules: {
// A temporary hack related to IDE not resolving correct package.json
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'error',
// Since React 17 and typescript 4.1 you can safely disable the rule
'react/react-in-jsx-scope': 'off',
'prettier/prettier': 0,
"global-require": 0,
"import/prefer-default-export": "off",
"no-empty-function": "off",
"no-await-in-loop": "off",
"no-continue": "off",
"@typescript-eslint/no-empty-function": "off",
'@typescript-eslint/lines-between-class-members': "off",
"class-methods-use-this": "off",
"promise/catch-or-return": "off",
"promise/always-return": "off",
"import/order": "off",
"react/destructuring-assignment": "off",
"promise/no-nesting": "off",
"react-hooks/exhaustive-deps": "off",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/no-use-before-define": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"react/require-default-props": "off",
"consistent-return": "off",
"no-underscore-dangle": "off",
"no-restricted-syntax": "off",
"@typescript-eslint/no-throw-literal": "off",
"@typescript-eslint/no-unused-expressions": "off",
"no-param-reassign": "off",
"no-useless-escape": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"no-async-promise-executor": "off",
"new-cap": "off"
},
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
project: './tsconfig.json',
tsconfigRootDir: __dirname,
createDefaultProgram: true,
},
settings: {
'import/resolver': {
// See https://github.com/benmosher/eslint-plugin-import/issues/1396#issuecomment-575727774 for line below
node: {},
webpack: {
config: require.resolve('./.erb/configs/webpack.config.eslint.ts'),
},
typescript: {},
extends: "erb",
rules: {
// A temporary hack related to IDE not resolving correct package.json
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "error",
// Since React 17 and typescript 4.1 you can safely disable the rule
"react/react-in-jsx-scope": "off",
"prettier/prettier": 0,
"global-require": 0,
"import/prefer-default-export": "off",
"no-empty-function": "off",
"no-await-in-loop": "off",
"no-continue": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/lines-between-class-members": "off",
"class-methods-use-this": "off",
"promise/catch-or-return": "off",
"promise/always-return": "off",
"import/order": "off",
"react/destructuring-assignment": "off",
"promise/no-nesting": "off",
"react-hooks/exhaustive-deps": "off",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/no-use-before-define": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"react/require-default-props": "off",
"consistent-return": "off",
"no-underscore-dangle": "off",
"no-restricted-syntax": "off",
"@typescript-eslint/no-throw-literal": "off",
"@typescript-eslint/no-unused-expressions": "off",
"no-param-reassign": "off",
"no-useless-escape": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"no-async-promise-executor": "off",
"new-cap": "off",
"no-new": "off",
"no-plusplus": "off",
"react/jsx-props-no-spreading": "off",
"jsx-a11y/iframe-has-title": "off",
"import/no-dynamic-require": "off",
radix: "off",
"jsx-a11y/alt-text": "off",
"react/prop-types": "off",
"import/no-cycle": "off",
"prefer-promise-reject-errors": "off",
"react/jsx-no-target-blank": "off"
},
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
project: "./tsconfig.json",
tsconfigRootDir: __dirname,
createDefaultProgram: true,
},
settings: {
"import/resolver": {
// See https://github.com/benmosher/eslint-plugin-import/issues/1396#issuecomment-575727774 for line below
node: {},
webpack: {
config: require.resolve("./.erb/configs/webpack.config.eslint.ts"),
},
typescript: {},
},
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"],
},
},
},
};
+18 -14
View File
@@ -4,28 +4,32 @@ about: Create a report to help us improve
title: "[BUG] : "
labels: bug
assignees: Zagrios
---
**Describe the bug**
A clear and concise description of what the bug is.
## Bug Description
<!-- A clear and concise description of what the bug is. -->
## Reproduction Steps
<!-- Steps to reproduce the behavior:
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
-->
**Expected behavior**
A clear and concise description of what you expected to happen.
## Expected Behavior
<!-- A clear and concise description of what you expected to happen. -->
**Screenshots**
If applicable, add screenshots to help explain your problem.
## Screenshots
<!-- If applicable, add screenshots to help explain your problem. -->
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Version [e.g. 22]
## System Specs
<!-- **Desktop (please complete the following information):**
**Additional context**
Add any other context about the problem here.
- OS: [e.g. iOS]
- Version [e.g. 22]
-->
## Additional context
<!-- Add any other context about the problem here. -->
@@ -4,17 +4,19 @@ about: Suggest an idea for this project
title: "[FEAT.] : "
labels: enhancement
assignees: Zagrios
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
## Problem
<!-- **Is your feature request related to a problem? Please describe.** -->
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
## Solution
<!-- **Describe the solution you'd like** -->
<!-- A clear and concise description of what you want to happen. -->
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
## Alternative solutions (if any)
<!-- **Describe alternatives you've considered** -->
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
**Additional context**
Add any other context or screenshots about the feature request here.
## Additional context
<!-- Add any other context or screenshots about the feature request here. -->
+24
View File
@@ -0,0 +1,24 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Linting
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "npm"
- run: npm ci
- run: npm run lint
+31
View File
@@ -0,0 +1,31 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "npm"
- run: npm ci
- run: npm run build
- run: npm test
# Currently typescript, eslint, and prettier are unhappy
continue-on-error: true
+2
View File
@@ -0,0 +1,2 @@
**/dist
coverage
+1 -1
View File
@@ -1,3 +1,3 @@
{
"recommendations": ["dbaeumer.vscode-eslint", "EditorConfig.EditorConfig"]
"recommendations": ["dbaeumer.vscode-eslint", "EditorConfig.EditorConfig"]
}
+26 -28
View File
@@ -1,30 +1,28 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Electron: Main",
"type": "node",
"request": "launch",
"protocol": "inspector",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run start:main --inspect=5858 --remote-debugging-port=9223"
],
"preLaunchTask": "Start Webpack Dev"
},
{
"name": "Electron: Renderer",
"type": "chrome",
"request": "attach",
"port": 9223,
"webRoot": "${workspaceFolder}",
"timeout": 15000
}
],
"compounds": [
{
"name": "Electron: All",
"configurations": ["Electron: Main", "Electron: Renderer"]
}
]
"version": "0.2.0",
"configurations": [
{
"name": "Electron: Main",
"type": "node",
"request": "launch",
"protocol": "inspector",
"runtimeExecutable": "npm",
"runtimeArgs": ["run start:main --inspect=5858 --remote-debugging-port=9223"],
"preLaunchTask": "Start Webpack Dev"
},
{
"name": "Electron: Renderer",
"type": "chrome",
"request": "attach",
"port": 9223,
"webRoot": "${workspaceFolder}",
"timeout": 15000
}
],
"compounds": [
{
"name": "Electron: All",
"configurations": ["Electron: Main", "Electron: Renderer"]
}
]
}
+22 -28
View File
@@ -1,33 +1,27 @@
{
"files.associations": {
".eslintrc": "jsonc",
".prettierrc": "jsonc",
".eslintignore": "ignore"
},
"files.associations": {
".eslintrc": "jsonc",
".prettierrc": "jsonc",
".eslintignore": "ignore"
},
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
"typescriptreact"
],
"eslint.validate": ["javascript", "javascriptreact", "html", "typescriptreact"],
"javascript.validate.enable": false,
"javascript.format.enable": false,
"typescript.format.enable": false,
"javascript.validate.enable": false,
"javascript.format.enable": false,
"typescript.format.enable": false,
"search.exclude": {
".git": true,
".eslintcache": true,
".erb/dll": true,
"release/{build,app/dist}": true,
"node_modules": true,
"npm-debug.log.*": true,
"test/**/__snapshots__": true,
"package-lock.json": true,
"*.{css,sass,scss}.d.ts": true
},
"editor.detectIndentation": false,
"editor.tabSize": 4
"search.exclude": {
".git": true,
".eslintcache": true,
".erb/dll": true,
"release/{build,app/dist}": true,
"node_modules": true,
"npm-debug.log.*": true,
"test/**/__snapshots__": true,
"package-lock.json": true,
"*.{css,sass,scss}.d.ts": true
},
"editor.detectIndentation": false,
"editor.tabSize": 4
}
+22 -22
View File
@@ -1,25 +1,25 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"label": "Start Webpack Dev",
"script": "start:renderer",
"options": {
"cwd": "${workspaceFolder}"
},
"isBackground": true,
"problemMatcher": {
"owner": "custom",
"pattern": {
"regexp": "____________"
},
"background": {
"activeOnStart": true,
"beginsPattern": "Compiling\\.\\.\\.$",
"endsPattern": "(Compiled successfully|Failed to compile)\\.$"
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"label": "Start Webpack Dev",
"script": "start:renderer",
"options": {
"cwd": "${workspaceFolder}"
},
"isBackground": true,
"problemMatcher": {
"owner": "custom",
"pattern": {
"regexp": "____________"
},
"background": {
"activeOnStart": true,
"beginsPattern": "Compiling\\.\\.\\.$",
"endsPattern": "(Compiled successfully|Failed to compile)\\.$"
}
}
}
}
}
]
]
}
+14 -11
View File
@@ -1,16 +1,19 @@
## [0.2.0](https://github.com/Zagrios/bs-manager/releases/tag/v0.2.0) (October 23, 2022)
### Features
- Mods management fully implementd [5c47897](https://github.com/Zagrios/bs-manager/commit/5c478979e96b14dd54a3889e551c163ece701b4a)
- Add close button in settings page #5
- Add GitHub and contribution actions in settings page #3
### Fixes
- Lunch Beat Saber multiple times #1
- Placeholders and some texts not with light theme #6
- Wrong background color when version is downloading #7
- Add missing translations [5817260](https://github.com/Zagrios/bs-manager/commit/58172606f3f4731c90c9aa838fb89ac95458e032)
- Error when loading downloaded versions when Steam is not installed [6e07adb](https://github.com/Zagrios/bs-manager/commit/6e07adb990f78073dd68c2b9cf6209562bb4bf2b)
### Features
- Mods management fully implementd [5c47897](https://github.com/Zagrios/bs-manager/commit/5c478979e96b14dd54a3889e551c163ece701b4a)
- Add close button in settings page #5
- Add GitHub and contribution actions in settings page #3
### Fixes
- Lunch Beat Saber multiple times #1
- Placeholders and some texts not with light theme #6
- Wrong background color when version is downloading #7
- Add missing translations [5817260](https://github.com/Zagrios/bs-manager/commit/58172606f3f4731c90c9aa838fb89ac95458e032)
- Error when loading downloaded versions when Steam is not installed [6e07adb](https://github.com/Zagrios/bs-manager/commit/6e07adb990f78073dd68c2b9cf6209562bb4bf2b)
## [0.1.0](https://github.com/Zagrios/bs-manager/releases/tag/v0.1.0) (September 19, 2022)
- Initial public release
- Initial public release
+19 -20
View File
@@ -1,4 +1,3 @@
# Contributor Covenant Code of Conduct
## Our Pledge
@@ -18,24 +17,24 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:
* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the overall
community
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
- Focusing on what is best not just for us as individuals, but for the overall
community
Examples of unacceptable behavior include:
* The use of sexualized language or imagery, and sexual attention or advances of
any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email address,
without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
- The use of sexualized language or imagery, and sexual attention or advances of
any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email address,
without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting
## Enforcement Responsibilities
@@ -119,14 +118,14 @@ version 2.1, available at
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
Community Impact Guidelines were inspired by
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
[Mozilla's code of conduct enforcement ladder][mozilla coc].
For answers to common questions about this code of conduct, see the FAQ at
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
[https://www.contributor-covenant.org/faq][faq]. Translations are available at
[https://www.contributor-covenant.org/translations][translations].
[homepage]: https://www.contributor-covenant.org
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
[Mozilla CoC]: https://github.com/mozilla/diversity
[FAQ]: https://www.contributor-covenant.org/faq
[mozilla coc]: https://github.com/mozilla/diversity
[faq]: https://www.contributor-covenant.org/faq
[translations]: https://www.contributor-covenant.org/translations
+3 -3
View File
@@ -19,14 +19,14 @@ We'd also love PRs. If you're thinking of a large PR, we advise opening up an is
1. [Fork][fork] and clone the repository.
1. Configure and install the dependencies: `npm install`.
1. Create a new branch following naming convention: `git checkout -b (feature|bufix|hotfix)/(short-description)(/issue-id)`.
1. Create a new branch following naming convention: `git checkout -b (feature|bugfix|hotfix|chore)/(short-description)(/issue-id)`.
1. Make your change, test, and make sure BSManager work fine.
1. Push to your fork and [submit a pull request][pr].
1. Pat your self on the back and wait for your pull request to be reviewed and merged.
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
- Follow the [style guide][style] which is using standard.
- Keep your changes as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
- Follow the [style guide][style] which is using standard.
- Keep your changes as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
Work in Progress pull requests are also welcome to get feedback early on, or if there is something blocked you.
+10 -3
View File
@@ -9,7 +9,6 @@
*** https://www.markdownguide.org/basic-syntax/#reference-style-links
-->
<!-- TITLE -->
<div align="center">
<a href="https://github.com/Zagrios/bs-manager">
@@ -32,8 +31,8 @@
</span>
</div>
<!-- BADGES -->
---
## <!-- BADGES -->
<br>
<div align="center" >
<a href="https://github.com/Zagrios/bs-manager/stargazers"><img src ="https://img.shields.io/github/stars/Zagrios/bs-manager?style=for-the-badge" alt="Stargazers"/></a>
@@ -50,8 +49,11 @@
</div>
---
<!-- TABLE OF CONTENTS -->
<b>Table of Contents</b>
<ul>
<li>
<a href="#about-the-project">About The Project</a>
@@ -143,6 +145,7 @@
<div align="center">
https://user-images.githubusercontent.com/40648115/213008824-25cfdda3-6350-42dc-aa53-2132b4b8e838.mov
</div>
<!--CUSTOM UR VERSIONS-->
@@ -156,6 +159,7 @@ https://user-images.githubusercontent.com/40648115/213008824-25cfdda3-6350-42dc-
<div align="center">
https://user-images.githubusercontent.com/40648115/213296794-74a1e20b-12dc-44ec-a67f-e25d7010bd3d.mov
</div>
<!--INSTALL MODS-->
@@ -169,6 +173,7 @@ https://user-images.githubusercontent.com/40648115/213296794-74a1e20b-12dc-44ec-
<div align="center">
https://user-images.githubusercontent.com/40648115/213296816-bdaafc90-da76-4835-8d83-9ac6a4e1c549.mov
</div>
<!--INSTALL MAPS-->
@@ -182,6 +187,7 @@ https://user-images.githubusercontent.com/40648115/213296816-bdaafc90-da76-4835-
<div align="center">
https://user-images.githubusercontent.com/40648115/213296838-f775fe83-866d-4764-a7d0-648dbb8ec983.mov
</div>
<!--ONE CLICK-->
@@ -195,6 +201,7 @@ https://user-images.githubusercontent.com/40648115/213296838-f775fe83-866d-4764-
<div align="center">
https://user-images.githubusercontent.com/40648115/213435051-7feb815d-f32b-4135-b095-ef49726a836c.mov
</div>
<!--HAVING PROBLEMS?-->
+27 -27
View File
@@ -1,46 +1,46 @@
type Styles = Record<string, string>;
declare module '*.svg' {
const content: string;
export default content;
declare module "*.svg" {
const content: string;
export default content;
}
declare module '*.png' {
const content: string;
export default content;
declare module "*.png" {
const content: string;
export default content;
}
declare module '*.webp' {
const content: string;
export default content;
declare module "*.webp" {
const content: string;
export default content;
}
declare module '*.mp4' {
const content: string;
export default content;
declare module "*.mp4" {
const content: string;
export default content;
}
declare module '*.jpg' {
const content: string;
export default content;
declare module "*.jpg" {
const content: string;
export default content;
}
declare module '*.gif' {
const content: string;
export default content;
declare module "*.gif" {
const content: string;
export default content;
}
declare module '*.scss' {
const content: Styles;
export default content;
declare module "*.scss" {
const content: Styles;
export default content;
}
declare module '*.sass' {
const content: Styles;
export default content;
declare module "*.sass" {
const content: Styles;
export default content;
}
declare module '*.css' {
const content: Styles;
export default content;
declare module "*.css" {
const content: Styles;
export default content;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

+24
View File
@@ -557,5 +557,29 @@
"ReleaseImg": "https://clan.akamai.steamstatic.com/images/32055887/6d78e092c54f411b36f2c0577d62eb1b25f91aa3.png",
"ReleaseDate": "1686668364",
"year": "2023"
},
{
"BSVersion": "1.31.0",
"BSManifest": "676582354127623831",
"ReleaseURL": "https://steamcommunity.com/games/620980/announcements/detail/3674423070127121445",
"ReleaseImg": "https://clan.cloudflare.steamstatic.com/images/32055887/28993aecc56a75c52295fa07620f58cb0e4b09e8.png",
"ReleaseDate": "1688050646",
"year": "2023"
},
{
"BSVersion": "1.31.1",
"BSManifest": "5239818041644201119",
"ReleaseURL": "https://steamcommunity.com/games/620980/announcements/detail/3664295677895178184",
"ReleaseImg": "https://clan.akamai.steamstatic.com/images/32055887/58621b3cb8bf42fcfbf3b97fe47aa91b290eea04.png",
"ReleaseDate": "1693824747",
"year": "2023"
},
{
"BSVersion": "1.32.0",
"BSManifest": "1660149393914874041",
"ReleaseURL": "https://steamcommunity.com/games/620980/announcements/detail/3723971545002767483",
"ReleaseImg": "https://clan.cloudflare.steamstatic.com/images/32055887/02284793f06188caf740da66939679afc25415e4.png",
"ReleaseDate": "1696517680",
"year": "2023"
}
]
+13 -4
View File
@@ -1,12 +1,21 @@
[
{"username": "Shidorien"},
{"username": "iPixelGalaxy", "type": "diamond", "link": "https://twitch.tv/ipixelgalaxy"},
{"username": "iPixelGalaxy"},
{"username": "Emyte", "type": "gold"},
{"username": "GoodOldNervy"},
{"username": "Carbon", "type": "gold"},
{"username": "Naysy"},
{"username": "Falmil"},
{"username": "K1Lc4m"},
{"username": "Adam"},
{"username": "Cabalia"}
]
{"username": "Cabalia"},
{"username": "Anonymously42", "type": "diamond", "link": "https://www.twitch.tv/anonymously42tv"},
{"username": "En4Yuz"},
{"username": "AndyIsHereBoi", "type": "gold"},
{"username": "grtroadrunner"},
{"username": "Ilnahro"},
{"username": "T3chLog"},
{"username": "Phil", "type": "gold"},
{"username": "Protocrush", "type": "gold"},
{"username": "ServerMensch", "type": "gold"},
{"username": "policepigou"}
]
+124 -123
View File
@@ -16,7 +16,7 @@
"copy": "Kopieren",
"copied": "Kopiert!"
},
"nav-bar":{
"nav-bar": {
"add-version": "Version Hinzufügen",
"settings": "Einstellungen",
"shared": {
@@ -25,14 +25,14 @@
}
},
"pages": {
"shared-maps":{
"shared-maps": {
"title": "Geteilte Maps"
},
"version-viewer": {
"launch-mods": {
"oculus": "Oculus Modus",
"oculus-description": "Wenn du Beat Saber über Steam benutzt, es ermöglicht dir Oculus's VR-Composer zu nutzen ohne SteamVR, um bessere Leistung zu erhalten. Dies wird nicht benötigt für Oculus Headsets",
"desktop": "Desktop Modus",
"desktop": "FPFC Modus",
"desktop-description": "Auf diese Weise kannst du WASD und die Maus verwenden, um im Spiel durch das Menü zu navigieren. Dies erleichtert das Testen erheblich, da Du dein Headset nicht aufsetzen musst!",
"debug": "Debug Modus",
"debug-description": "Aktiviert das Ausgabeprotokollfenster für IPA. Dies zeigt die Debug-Konsole, die Mods verwenden.",
@@ -64,9 +64,9 @@
}
}
},
"empty-maps":{
"text":"Keine Maps",
"button":"Maps Herunterladen"
"empty-maps": {
"text": "Keine Maps",
"button": "Maps Herunterladen"
}
}
}
@@ -97,6 +97,7 @@
"clone": "Klonen",
"edit": "Bearbeiten",
"uninstall": "Entfernen",
"create-shortcut": "Verknüpfung erstellen",
"shared-folders": "Geteilte Ordner"
}
},
@@ -105,7 +106,7 @@
"steam-release": "Versions Seite",
"dropdown": {
"refresh": "Liste aktualisieren",
"import-version" :"Importiere eine Version"
"import-version": "Importiere eine Version"
}
},
"settings": {
@@ -146,12 +147,14 @@
"fr-FR": "Français",
"es-ES": "Español",
"de-DE": "Deutsch",
"ru-RU": "Русский",
"translated": {
"en-EN": "Englisch, Vereinigtes Königreich",
"en-US": "Englisch, USA",
"fr-FR": "Französisch",
"es-ES": "Spanisch",
"de-DE": "Deutsch"
"de-DE": "Deutsch",
"ru-RU": "Russisch"
}
}
},
@@ -221,15 +224,14 @@
}
},
"errors": {
"titles":{
"titles": {
"dotnet-required": ".NET 6 Benötigt"
},
"msg": {
"401": "Steam scheint uns BeatSaber nicht herunterladen zu lassen 😢",
"404": "Steam-Server können nicht kontaktiert werden.",
"Password": "Passwort ist ungültig.",
"InvalidCredentials": "Deine E-Mail oder Passwort ist ungültig 😴",
"InvalidPassword": "Dein Passwort ist ungültig 😕",
"InvalidCredentials": "Ungültige Anmeldedaten, nicht genehmigte Verbindung oder zu viele Anmeldeversuche.",
"NoManifest": "Es wurde keine Manifest gefunden",
"DirectoryCreate": "Die erforderlichen Ordner können nicht installiert werden.",
"NotAvailableApp": "Versuchst du, Beat Saber herunterzuladen, wenn Du es nicht hast? 🤣",
@@ -245,19 +247,18 @@
"SteamLib": "Wenn dieser Fehler auftritt, melde den Fehler auf Github mit Protokollen, bitte.",
"ConnectionError": "Kann nach 10 Versuchen keine Verbindung zu Steam herstellen 🤯",
"LicenceError": "Die Liste der Lizenzen kann nicht abgerufen werden.",
"verification-failed": "Verifikation fehlgeschlagen, versuche es später erneut.",
"RateLimitExceeded": "Du hast es zu oft versucht, warte eine Weile und versuche es später erneut.",
"AlreadyDownloading": "Ein Download ist bereits im Gange",
"no-internet": "Keine Internet Verbindung",
"TokenRejected": "Ihr Anmeldetoken wurde abgelehnt 😕 Bitte versuchen Sie es erneut.",
"AccessDenied": "Der Zugang zu Steam wurde verweigert.",
"dotnet-required": ".NET 6 Runtime muss installiert sein, um eine Version von BeatSaber herunterzuladen. Lade es herunter, indem Du auf die Schaltfläche unten klickst."
},
"actions":{
"actions": {
"download-dotnet": ".NET 6 Herunterladen"
}
}
},
"bs-import-version":{
"success":{
"bs-import-version": {
"success": {
"start-import": {
"title": "Import im Gange 👌",
"desc": "Der Import kann je nach Konfiguration einige Minuten dauern."
@@ -266,8 +267,8 @@
"title": "Versionen Importiert 🎉"
}
},
"errors":{
"import-error":{
"errors": {
"import-error": {
"desc": "Überprüfe, ob der ausgewählte Ordner eine BeatSaber-Installation ist."
}
}
@@ -300,31 +301,31 @@
}
}
},
"additional-content":{
"additional-content": {
"deep-link": {
"select-all": "Alle Auswählen",
"activation":{
"success":{
"title":"OneClick aktiviert!",
"description":"OneClick-Installationen wurden aktiviert."
"activation": {
"success": {
"title": "OneClick aktiviert!",
"description": "OneClick-Installationen wurden aktiviert."
},
"error":{
"description":"OneClick-Installationen konnten nicht aktiviert werden."
"error": {
"description": "OneClick-Installationen konnten nicht aktiviert werden."
}
},
"deactivation":{
"success":{
"title":"OneClick deaktiviert!",
"description":"OneClick-Installationen wurden deaktiviert."
"deactivation": {
"success": {
"title": "OneClick deaktiviert!",
"description": "OneClick-Installationen wurden deaktiviert."
},
"error":{
"description":"Ein Unbekannter Fehler ist aufgetreten."
"error": {
"description": "Ein Unbekannter Fehler ist aufgetreten."
}
},
"check-all-enabled":{
"check-all-enabled": {
"title": "OneClick deaktiviert",
"description": "Eine oder mehrere OneClick-Installationen sind deaktiviert. Gehe in die Einstellungen, um sie zu aktivieren.",
"actions":{
"actions": {
"settings": "Einstellungen",
"not-remind": "Erinnere mich nicht"
}
@@ -335,12 +336,17 @@
"bs-launch": {
"success": {
"titles": {
"launching": "Starte...🚀"
"BS_LAUNCHING": "Starte...🚀",
"STEAM_LAUNCHING": "Steam startet!"
},
"msg": {
"BS_LAUNCHING": "Vergiss nicht, dich aufzuwärmen 😉",
"STEAM_LAUNCHING": "Beat Saber wird automatisch nach Steam gestartet."
}
},
"errors": {
"titles": {
"UNABLE_TO_LAUNCH": "Start nicht möglich",
"UNKNOWN_ERROR": "Start nicht möglich",
"STEAM_NOT_RUNNING": "Steam läuft nicht",
"OCULUS_NOT_RUNNING": "Oculus läuft nicht",
"BS_ALREADY_RUNNING": "BeatSaber läuft bereits",
@@ -348,21 +354,22 @@
"EXIT": "Abrupter Stop"
},
"msg": {
"UNKNOWN_ERROR": "Ein unbekannter Fehler ist aufgetreten.",
"STEAM_NOT_RUNNING": "Steam muss laufen, um BeatSaber zu starten.",
"OCULUS_NOT_RUNNING": "Oculus muss ausgeführt werden, um BeatSaber zu starten.",
"BS_ALREADY_RUNNING": "Schließe BeatSaber, bevor Du es erneut startest.",
"EXE_NOT_FINDED": "Einige Dateien scheinen zu fehlen, versuche die Dateien zu überprüfen.",
"EXIT": "BeatSaber stoppte abrupt, versuche die Dateien zu überprüfen."
},
"actions":{
"actions": {
"STEAM_NOT_RUNNING": "Starte Steam"
}
}
},
"steam":{
"steam-launching":{
"steam": {
"steam-launching": {
"title": "Steam startet!",
"description": "Abhängig von deiner Konfiguration kann es einige Zeit dauern, bis Steam gestartet wird."
"description": "Beat Saber wird automatisch nach Steam gestartet."
}
},
"custom-version": {
@@ -420,35 +427,44 @@
}
}
},
"maps":{
"one-click-install":{
"success":"Map installation abegschlossen",
"error":"Ein Fehler ist aufgetreten während der installation der Map"
"maps": {
"one-click-install": {
"success": "Map installation abegschlossen",
"error": "Ein Fehler ist aufgetreten während der installation der Map"
}
},
"playlists":{
"one-click-install":{
"success":"Playlist installation abgeschlossen",
"error":"Ein Fehler ist aufgetreten während der installation der Playlist"
"playlists": {
"one-click-install": {
"success": "Playlist installation abgeschlossen",
"error": "Ein Fehler ist aufgetreten während der installation der Playlist"
}
},
"models":{
"one-click-install":{
"success":"Modell installation abgeschlossen",
"error":"Ein Fehler ist aufgetreten während der installation des Modells"
"models": {
"one-click-install": {
"success": "Modell installation abgeschlossen",
"error": "Ein Fehler ist aufgetreten während der installation des Modells"
}
},
"shared-folder": {
"info": {
"userdata-backup-created":{
"userdata-backup-created": {
"title": "Sicherung erstellt",
"msg": "Das Freigeben des Ordners „UserData“ kann zu Fehlern führen. Bei Problemen trenne den Ordner, um die Sicherung wiederherzustellen"
}
}
},
"create-launch-shortcut": {
"success": {
"title": "Verknüpfung erstellt",
"msg": "Die Verknüpfung wurde auf dem Desktop erstellt."
},
"error": {
"msg": "Beim Erstellen der Verknüpfung ist ein Fehler aufgetreten."
}
}
},
"modals": {
"misc":{
"misc": {
"remember-my-choice": "Merke meine Wahl"
},
"guard": {
@@ -464,35 +480,48 @@
}
},
"steam-login": {
"title": "Steam Login",
"title": "Steam Anmeldung",
"inputs": {
"username": {
"label": "Nutzername",
"placeholder": "Gebe deinen Nutzernamen ein"
"label": "Mit Accountnamen anmelden",
"placeholder": "Geben Sie Ihren Accountnamen ein"
},
"password": {
"label": "Passwort",
"placeholder": "Gebe dein Passwort ein",
"max-length-warning": "Das Passwort überschreitet 64 Zeichen! Wenn das Passwort ungültig ist, versuchen Sie nur die ersten 64 Zeichen einzugeben."
"placeholder": "Geben Sie Ihr Passwort ein",
"max-length-warning": "Das Passwort überschreitet 64 Zeichen! Wenn das Passwort ungültig ist, versuchen Sie nur seine ersten 64 Zeichen einzugeben."
},
"stay": {
"label": "Verbunden bleiben"
}
"qr":{
"label": "Oder mit einem QR-Code",
"note":{
"use-the":"Anmelden Sie sich über die ",
"steam-mobile-app": "Steam-Mobile-App",
"to-connect-with-qr": " per QR-Code an."
}
},
"stay": "Angemeldet bleiben"
},
"why-credentials": "Warum braucht ihr meine Anmeldeinformationen?",
"why-credentials": "Warum sind meine Anmeldedaten notwendig?",
"need-help-to-connect": "Ich brauche Hilfe, um auf mein Konto zuzugreifen!",
"buttons": {
"submit": "Anmelden"
}
},
"steam-credentials":{
"steam-auth-approve":{
"title": "Warten auf Bestätigung",
"protected-by-mobile-auth": "Konto durch mobile Authentifizierung geschützt.",
"use-steam-app-to-approve": "Verwenden Sie die Steam Mobile-App, um die Verbindung zu bestätigen...",
"not-access-to-steam-app": "Ich habe keinen Zugang zur Steam Mobile-App"
},
"steam-credentials": {
"title": "Steam Anmeldeinformationen",
"p-1": "Die Anmeldeinformationen werden nur zum Herunterladen des Spiels verwendet, da Steam überprüfen muss, ob Du das Spiel bezahlt hast, um es herunterladen zu dürfen. Sie werden nicht gespeichert und direkt an DepotDownloader weitergegeben. Wenn Du deine Anmeldeinformationen nicht eingeben möchtest, kannst Du diesem Tutorial folgen:",
"p-2": "und klicke dann auf das Zahnradsymbol in der oberen rechten Ecke und wähle \"Version importieren\", wähle den Ordner aus, in den Beat Saber heruntergeladen wurde (Wenn Du dem obigen Tutorial folgst, solltest Du den richtigen Speicherort haben)"
},
"bs-import-version":{
"bs-import-version": {
"title": "Importiere eine Version",
"description": "Importiert eine Version von BeatSaber zur Verwendung mit BSManager. Der Import kopiert den ausgewählten BeatSaber-Installationsordner in den BSManager-Versionsordner.",
"buttons":{
"buttons": {
"submit": "Importiere eine Version"
}
},
@@ -588,7 +617,7 @@
"no-maps-found": "Keine Maps gefunden",
"no-internet": "Kein Internet"
},
"mods-disclaimer":{
"mods-disclaimer": {
"title": "Haftungsausschluss",
"p-1": "Indem Du dich für die Verwendung von Mods entscheiden, verstehst Du Folgendes:",
"li-1": "Möglicherweise treten Probleme auf, die im Vanilla-Spiel nicht vorhanden sind. 99.9% der Fehler, Abstürze und Verzögerungen sind auf Mods zurückzuführen.",
@@ -596,7 +625,7 @@
"li-3": "Beat Games versuchen nicht absichtlich, Mods kaputt zu machen. Sie möchten an der Codebasis arbeiten und manchmal macht dies Mods kaputt, aber sie sind nicht darauf aus, Mods zu verbieten.",
"p-2": "Greife die Spieleentwickler nicht wegen Problemen im Zusammenhang mit Mods an und umgekehrt - Modder und Spieleentwickler sind zwei getrennte Gruppen. Sei einfach nicht gemein, okay?"
},
"shared-folders":{
"shared-folders": {
"title": "Geteilte Ordner",
"description": "Verknüpfe BeatSaber-Ordner, um ihre Inhalte mit freigegebenen Ordnern in anderen Versionen zu synchronisieren. Beachte, dass auch das Löschen von Inhalten geteilt wird.",
"buttons": {
@@ -605,6 +634,13 @@
"unlink-folder": "Ordner Verknüpfung Aufheben",
"link-all": "Alle verlinken"
}
},
"create-launch-shortcut": {
"title": "Verknüpfung erstellen",
"desc": "Das Erstellen einer Verknüpfung ermöglicht es Ihnen, Beat Saber mit den ausgewählten Optionen zu starten, ohne durch BSManager zu gehen.",
"launch-options": "Startoptionen",
"advanced-launch": "Erweiterte Start",
"valid-btn": "Verknüpfung erstellen"
}
},
"maps": {
@@ -680,7 +716,7 @@
"mapped-by": "Gemapped von"
}
},
"models":{
"models": {
"types": {
"singular": {
"avatar": "Avatar",
@@ -710,14 +746,14 @@
"link-models": "Modelle verlinken",
"unlink-models": "Modelle trennen"
},
"grid":{
"grid": {
"loading": "Modelle laden...",
"no-models": "Keine Modelle",
"download-models": "Modelle herunterladen"
}
},
"modals": {
"delete-model" :{
"delete-model": {
"title": "Das Modell löschen",
"desc": "Sind Sie sicher, dass Sie das Modell {modelName} löschen möchten?",
"linked-annotation": "Dieses Modell wird aus allen verlinkten Versionen entfernt."
@@ -855,58 +891,23 @@
"checking": "Prüfe auf Updates",
"downloading": "Lade Updates Herunter"
},
"bs-shortcut-launch": {
"beat-saber-launching": "Start von Beat Saber",
"launching": "Starten",
"open-bsmanager": "BSManager öffnen",
"status-text": {
"init": "Initialisierung...",
"success": {
"BS_LAUNCHING": "Start von Beat Saber...",
"STEAM_LAUNCHING": "Start von Steam...",
"STEAM_LAUNCHED": "Steam erfolgreich gestartet!",
"UNABLE_TO_LAUNCH_STEAM": "Steam kann nicht gestartet werden, erzwungener Start von Beat Saber..."
}
}
},
"dateformat": {
"dayNames": [
"So",
"Mo",
"Di",
"Mi",
"Do",
"Fr",
"Sa",
"Sonntag",
"Montag",
"Dienstag",
"Mittwoch",
"Donnerstag",
"Freitag",
"Samstag"
],
"monthNames": [
"Jan",
"Feb",
"Mär",
"Apr",
"Mai",
"Jun",
"Jul",
"Aug",
"Sep",
"Okt",
"Nov",
"Dez",
"Januar",
"Februar",
"März",
"April",
"Mai",
"Juni",
"Juli",
"August",
"September",
"Oktober",
"November",
"Dezember"
],
"timeNames": [
"a",
"p",
"am",
"pm",
"A",
"P",
"AM",
"PM"
]
"dayNames": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa", "Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],
"monthNames": ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", "Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"],
"timeNames": ["a", "p", "am", "pm", "A", "P", "AM", "PM"]
}
}
+171 -170
View File
@@ -16,7 +16,7 @@
"copy": "Copy",
"copied": "Copied!"
},
"nav-bar":{
"nav-bar": {
"add-version": "Add a version",
"settings": "Settings",
"shared": {
@@ -25,15 +25,15 @@
}
},
"pages": {
"shared-maps":{
"shared-maps": {
"title": "Shared maps"
},
"version-viewer": {
"launch-mods": {
"oculus": "Oculus Mode",
"oculus-description": "If you are using Beat Saber via Steam, it allows you to use Oculus's VR composer without passing by SteamVR, to gain performances This is not necessary for using Oculus headsets.",
"desktop": "Desktop Mode",
"desktop-description": "This allows you to use WASD and the mouse to navigate around the menu in game. This makes testing much easier, because you don't have to put on your headset!",
"oculus-description": "If you are using Beat Saber via Steam, this allows you to use Oculus's VR composer while bypassing SteamVR, for potential performance gain. This is not required to use Oculus headsets.",
"desktop": "FPFC Mode",
"desktop-description": "First Person Flying Controller mode allows you to use WASD and the mouse to navigate around the menu in game. This makes testing much easier, because you don't have to put on your headset!",
"debug": "Debug Mode",
"debug-description": "Enables the output log window for IPA. This will show the debug console that mods use.",
"advanced-launch": {
@@ -64,9 +64,9 @@
}
}
},
"empty-maps":{
"text":"No maps",
"button":"Download maps"
"empty-maps": {
"text": "No maps",
"button": "Download maps"
}
}
}
@@ -97,6 +97,7 @@
"clone": "Clone",
"edit": "Edit",
"uninstall": "Uninstall",
"create-shortcut": "Create a shortcut",
"shared-folders": "Shared Folders"
}
},
@@ -105,13 +106,13 @@
"steam-release": "Release page",
"dropdown": {
"refresh": "Refresh list",
"import-version" :"Import a version"
"import-version": "Import a version"
}
},
"settings": {
"steam": {
"title": "Steam",
"description": "If you log out of Steam, you will have to log back in to download a new version of Beat Saber.",
"description": "If you log out of Steam, you will have to log back in to download new versions of Beat Saber.",
"logout": "Log out"
},
"appearance": {
@@ -132,7 +133,7 @@
},
"additional-content": {
"title": "Additional content",
"description": "Additional content allows you to customize BeatSaber!",
"description": "Additional content that allows you to customize Beat Saber!",
"deep-links": {
"sub-title": "OneClick installations"
}
@@ -146,12 +147,14 @@
"fr-FR": "Français",
"es-ES": "Español",
"de-DE": "Deutsch",
"ru-RU": "Русский",
"translated": {
"en-EN": "English, United Kingdom",
"en-US": "English, USA",
"fr-FR": "French",
"es-ES": "Spanish",
"de-DE": "German"
"de-DE": "German",
"ru-RU": "Russian"
}
}
},
@@ -199,7 +202,7 @@
"no-internet": "No internet"
},
"msg": {
"operation-running": "Wait for the end of the current operation then start again.",
"operation-running": "Wait for the current operation to finish, then try again.",
"no-internet": "Check your connection and try again."
}
}
@@ -216,48 +219,46 @@
"ManifestChecksum": "The previously downloaded manifest does not match the new 🤔",
"ConnectionTimeout": "Your internet connection seems unstable 🥶",
"ConnectionLost": "The connection has been lost, try again...",
"ConnectionError": "Unable to connect to Steam, retry...",
"ConnectionError": "Unable to connect to Steam, try again...",
"Unknown": "Something strange has happened 🤔 Your connection is probably unstable."
}
},
"errors": {
"titles":{
"titles": {
"dotnet-required": ".NET 6 Required"
},
"msg": {
"401": "Steam doesn't seem to want to let us download BeatSaber 😢",
"401": "Steam doesn't seem to want to let us download Beat Saber 😢",
"404": "Unable to contact Steam servers.",
"Password": "Password is invalid.",
"InvalidCredentials": "Your e-mail or password is invalid 😴",
"InvalidPassword": "Your password is invalid 😕",
"InvalidCredentials": "Invalid login credentials, unapproved connection, or too many login attempts.",
"NoManifest": "No manifest was found",
"DirectoryCreate": "Unable to install the necessary folders.",
"NotAvailableApp": "Are you trying to download BeatSaber when you don't have it ? 🤣",
"DepotNotFound": "Unable to download BeatSaber 😥 try again later 😕",
"NotAvailableApp": "Are you trying to download Beat Saber when you don't have it? 🤣",
"DepotNotFound": "Unable to download Beat Saber 😥 try again later 😕",
"NotCompleted": "The download could not complete ¯\\_(ツ)_/¯",
"InvalidManifest": "Unable to download BeatSaber 😥 try again later 😕",
"NoValidKey": "Unable to download BeatSaber 😥 try again later 😕",
"NoManifestCode": "Unable to download BeatSaber 😥 try again later 😕",
"InvalidManifest": "Unable to download Beat Saber 😥 try again later 😕",
"NoValidKey": "Unable to download Beat Saber 😥 try again later 😕",
"NoManifestCode": "Unable to download Beat Saber 😥 try again later 😕",
"Unknown": "An unknown error occurred ¯\\_(ツ)_/¯",
"NoServer": "Unable to contact Steam servers.",
"NotAllowed": "Apparently you are not allowed to download BeatSaber 🥱",
"NotAllowed": "Apparently you are not allowed to download Beat Saber 🥱",
"ConnectionTimeout": "Cannot connect to Steam 😕",
"SteamLib": "If you have this error, report the bug on GitHub with the logs pls.",
"ConnectionError": "Unable to connect to Steam after 10 tries 🤯",
"LicenceError": "Unable to get the list of licenses.",
"verification-failed": "Verification failed, try again later.",
"RateLimitExceeded": "You've tried too many times, wait a while and try again later.",
"AlreadyDownloading": "A download is already in progress",
"no-internet": "No internet connection.",
"dotnet-required": ".NET 6 Runtime must be installed in order to download a version of BeatSaber. Download it by clicking the button below."
"TokenRejected": "Your login token has been rejected 😕 Please try again.",
"AccessDenied": "Access to Steam has been denied.",
"dotnet-required": ".NET 6 Runtime must be installed in order to download a version of Beat Saber. Download it by clicking the button below."
},
"actions":{
"actions": {
"download-dotnet": "Download .NET 6"
}
}
},
"bs-import-version":{
"success":{
"bs-import-version": {
"success": {
"start-import": {
"title": "Import in progress 👌",
"desc": "The import may take several minutes depending on your configuration."
@@ -266,9 +267,9 @@
"title": "Imported version 🎉"
}
},
"errors":{
"import-error":{
"desc": "Check that the selected folder is a BeatSaber installation."
"errors": {
"import-error": {
"desc": "Check that the selected folder is a Beat Saber installation."
}
}
},
@@ -300,33 +301,33 @@
}
}
},
"additional-content":{
"additional-content": {
"deep-link": {
"select-all": "Select all",
"activation":{
"success":{
"title":"OneClick activated!",
"description":"OneClick installations have been activated."
"activation": {
"success": {
"title": "OneClick activated!",
"description": "OneClick installations have been activated."
},
"error":{
"description":"Unable to activate OneClick installations."
"error": {
"description": "Unable to activate OneClick installations."
}
},
"deactivation":{
"success":{
"title":"OneClick deactivated!",
"description":"OneClick installations have been deactivated."
"deactivation": {
"success": {
"title": "OneClick deactivated!",
"description": "OneClick installations have been deactivated."
},
"error":{
"description":"An unknown error occurred."
"error": {
"description": "An unknown error occurred."
}
},
"check-all-enabled":{
"check-all-enabled": {
"title": "OneClick Disabled",
"description": "One or more OneClick installations are disabled. Go to settings to enable them.",
"actions":{
"actions": {
"settings": "Settings",
"not-remind": "Do not remind me"
"not-remind": "Don't remind me"
}
}
}
@@ -335,34 +336,40 @@
"bs-launch": {
"success": {
"titles": {
"launching": "Launching...🚀"
"BS_LAUNCHING": "Launching...🚀",
"STEAM_LAUNCHING": "Steam is launching!"
},
"msg": {
"BS_LAUNCHING": "Don't forget to warm up 😉",
"STEAM_LAUNCHING": "Beat Saber will automatically launch after Steam."
}
},
"errors": {
"titles": {
"UNABLE_TO_LAUNCH": "Unable to launch",
"UNKNOWN_ERROR": "Unable to launch",
"STEAM_NOT_RUNNING": "Steam is not running",
"OCULUS_NOT_RUNNING": "Oculus is not running",
"BS_ALREADY_RUNNING": "BeatSaber already running",
"BS_ALREADY_RUNNING": "Beat Saber already running",
"EXE_NOT_FINDED": "Missing files",
"EXIT": "Abrupt stop"
},
"msg": {
"UNKNOWN_ERROR": "An unknown error has occurred.",
"STEAM_NOT_RUNNING": "Steam must be running to launch BeatSaber.",
"OCULUS_NOT_RUNNING": "Oculus must be running to launch BeatSaber.",
"BS_ALREADY_RUNNING": "Close BeatSaber before launching it again.",
"EXE_NOT_FINDED": "Some files seem to be missing, try to verify the files.",
"EXIT": "BeatSaber stopped abruptly, tries to check the files."
},
"actions":{
"actions": {
"STEAM_NOT_RUNNING": "Launch Steam"
}
}
},
"steam":{
"steam-launching":{
"steam": {
"steam-launching": {
"title": "Steam is launching!",
"description": "Steam may take some time to launch depending on your configuration."
"description": "Beat Saber will automatically launch after Steam."
}
},
"custom-version": {
@@ -415,40 +422,49 @@
"msg": {
"success": "All mods have been uninstalled.",
"errors": {
"no-mods": "No mod is installed in this version 😑"
"no-mods": "No mods are installed in this version 😑"
}
}
}
},
"maps":{
"one-click-install":{
"success":"Map installation complete",
"error":"An error occurred while installing the map"
"maps": {
"one-click-install": {
"success": "Map installation complete",
"error": "An error occurred while installing the map"
}
},
"playlists":{
"one-click-install":{
"success":"Playlist installation complete",
"error":"An error occurred while installing the playlist"
"playlists": {
"one-click-install": {
"success": "Playlist installation complete",
"error": "An error occurred while installing the playlist"
}
},
"models":{
"one-click-install":{
"success":"Model installation complete",
"error":"An error occurred while installing the model"
"models": {
"one-click-install": {
"success": "Model installation complete",
"error": "An error occurred while installing the model"
}
},
"shared-folder": {
"info": {
"userdata-backup-created":{
"userdata-backup-created": {
"title": "Backup created",
"msg": "Sharing the 'UserData' folder can generate errors, in case of problems unlink the folder to restore the backup"
}
}
},
"create-launch-shortcut": {
"success": {
"title": "Shortcut created",
"msg": "The shortcut has been created on the desktop."
},
"error": {
"msg": "An error occurred while creating the shortcut."
}
}
},
"modals": {
"misc":{
"misc": {
"remember-my-choice": "Remember my choice"
},
"guard": {
@@ -467,38 +483,51 @@
"title": "Steam Login",
"inputs": {
"username": {
"label": "Username",
"placeholder": "Enter your username"
"label": "Sign in with account name",
"placeholder": "Enter your account name"
},
"password": {
"label": "Password",
"placeholder": "Enter your password",
"max-length-warning": "The password exceeds 64 characters! If the password is invalid, try to put its first 64 characters."
"max-length-warning": "The password exceeds 64 characters! If the password is invalid, try to enter only its first 64 characters."
},
"stay": {
"label": "Stay connected"
}
"qr":{
"label": "Or with a QR code",
"note":{
"use-the":"Use the ",
"steam-mobile-app": "Steam Mobile App",
"to-connect-with-qr": "to sign in via QR code."
}
},
"stay": "Remember me"
},
"why-credentials": "Why do you need my credentials ?",
"why-credentials": "Why are my credentials necessary?",
"need-help-to-connect": "I need help to access my account!",
"buttons": {
"submit": "Login"
"submit": "Sign in"
}
},
"steam-credentials":{
"steam-auth-approve":{
"title": "Waiting for confirmation",
"protected-by-mobile-auth": "Account protected by mobile authenticator.",
"use-steam-app-to-approve": "Use the Steam mobile app to confirm the connection...",
"not-access-to-steam-app": "I don't have access to the Steam mobile app"
},
"steam-credentials": {
"title": "Steam Credentials",
"p-1": "The credentials are only used to download the game because steam need to verify that you paid the game in order to be allowed to download it. They aren't saved and directly passed to DepotDownloader. If you don't want to enter your credentials you can follow this tutorial :",
"p-2": "and then click on the gear icon in the top right corner and select \"Import a version\", select the folder where beat saber has been downloaded (If you follow the tutorial above you should have the correct location)"
},
"bs-import-version":{
"bs-import-version": {
"title": "Import a version",
"description": "Imports a version of BeatSaber to use with BSManager. The import will copy the selected BeatSaber installation folder to the BSManager versions folder.",
"buttons":{
"description": "Imports a version of Beat Saber to use with BSManager. This will copy the selected Beat Saber installation folder to the BSManager versions folder.",
"buttons": {
"submit": "Import a version"
}
},
"bs-uninstall": {
"title": "Uninstall",
"description": "Are you sure you want to uninstall BeatSaber {version} ? You will have to download it again to play it.",
"description": "Are you sure you want to uninstall Beat Saber {version}? You will have to download it again to play it.",
"buttons": {
"submit": "Uninstall"
}
@@ -518,7 +547,7 @@
},
"clone-version": {
"title": "Clone version",
"description": "Cloning the version allows you to separate additional BeatSaber content between two versions.",
"description": "Cloning the version allows you to separate additional Beat Saber content between two versions.",
"inputs": {
"name": {
"label": "Name",
@@ -544,8 +573,8 @@
"maps-actions": {
"delete-maps": {
"title": {
"single": "Delete the map?",
"multiple": "Delete maps ?"
"single": "Delete this map?",
"multiple": "Delete maps?"
},
"desc": {
"single": "Are you sure you want to delete the map {name}?",
@@ -564,20 +593,20 @@
},
"link-maps": {
"title": "Link maps",
"desc": "Linking maps allows to share maps between all versions. Once linked, this version will benefit from the shared maps",
"desc": "Linking maps allows sharing maps between all versions with this feature enabled. Once linked, this version will benefit from shared maps.",
"info": "Adding and deleting maps will also be shared",
"keep-maps": {
"label": "Keep maps",
"title": "Keep maps will move the maps of the current version to the shared maps folder. Otherwise they will be lost"
"title": "Keeping maps will copy all maps from the current version to the shared maps folder. Otherwise, no maps will be kept from this version and they will be lost."
},
"valid-btn": "Link maps"
},
"unlink-maps": {
"title": "Unlink maps",
"desc": "Please note that unlinking maps will not allow the use of shared maps for this version.",
"desc": "Be careful, unlinking maps will disable the use of shared maps for this version, until it is reenabled.",
"keep-maps": {
"label": "Keep maps",
"title": "Keeping the maps will create a copy of the shared maps for the current version. Otherwise, no map will be kept for this version."
"title": "Keeping maps will copy all maps from the shared folder to the current version after unlinking. Maps will not be lost if this is disabled."
},
"valid-btn": "Unlink maps"
}
@@ -588,7 +617,7 @@
"no-maps-found": "No maps found",
"no-internet": "No internet"
},
"mods-disclaimer":{
"mods-disclaimer": {
"title": "disclaimer",
"p-1": "By choosing to use mods, you understand that:",
"li-1": "You may experience problems that don't exist in the vanilla game. 99.9% of bugs, crashes, and lag are due to mods.",
@@ -596,15 +625,22 @@
"li-3": "Beat Games aren't purposefully trying to break mods. They wish to work on the codebase and sometimes this breaks mods, but they are not out to kill mods.",
"p-2": "Do not attack the game developers for issues related to mods, and vice versa - modders and game developers are two separate groups. Just don't be a jerk ok."
},
"shared-folders":{
"shared-folders": {
"title": "Shared Folders",
"description": "Link BeatSaber folders to synchronize their contents with shared folders in other versions. Note that deleting content will also be shared.",
"description": "Link Beat Saber folders to synchronize their contents with shared folders in other versions. Note that deleting content will also be shared.",
"buttons": {
"add-folder": "Add Folder",
"link-folder": "Link Folder",
"unlink-folder": "Unlink Folder",
"link-all": "Link all"
}
},
"create-launch-shortcut": {
"title": "Create a shortcut",
"desc": "Creating a shortcut will allow you to start Beat Saber with the chosen options without going through BSManager.",
"launch-options": "Launch options",
"advanced-launch": "Advanced launch",
"valid-btn": "Create the shortcut"
}
},
"maps": {
@@ -680,7 +716,7 @@
"mapped-by": "mapped by"
}
},
"models":{
"models": {
"types": {
"singular": {
"avatar": "avatar",
@@ -710,14 +746,14 @@
"link-models": "Link models",
"unlink-models": "Unlink models"
},
"grid":{
"grid": {
"loading": "Loading models...",
"no-models": "No models",
"download-models": "Download models"
}
},
"modals": {
"delete-model" :{
"delete-model": {
"title": "Delete the model",
"desc": "Are you sure you want to delete the model {modelName}?",
"linked-annotation": "This model will be removed from all linked versions."
@@ -749,41 +785,41 @@
"link-models": {
"avatar": {
"title": "Link Avatars",
"desc": "Linking avatars allows sharing avatars between all versions. Once linked, this version will benefit from the shared avatars",
"desc": "Linking avatars allows sharing avatars between all versions with this feature enabled. Once linked, this version will benefit from shared avatars.",
"info": "Adding and deleting avatars will also be shared",
"keep-models": {
"label": "Keep Avatars",
"title": "Keeping the avatars will move the avatars from the current version to the shared avatars folder. Otherwise, they will be lost"
"title": "Keeping avatars will copy all avatars from the current version to the shared avatars folder. Otherwise, no avatars will be kept from this version and they will be lost."
},
"valid-btn": "Link Avatars"
},
"saber": {
"title": "Link Sabers",
"desc": "Linking sabers allows sharing sabers between all versions. Once linked, this version will benefit from the shared sabers",
"desc": "Linking sabers allows sharing sabers between all versions with this feature enabled. Once linked, this version will benefit from shared sabers.",
"info": "Adding and deleting sabers will also be shared",
"keep-models": {
"label": "Keep Sabers",
"title": "Keeping the sabers will move the sabers from the current version to the shared sabers folder. Otherwise, they will be lost"
"title": "Keeping sabers will copy all sabers from the current version to the shared sabers folder. Otherwise, no sabers will be kept from this version and they will be lost."
},
"valid-btn": "Link Sabers"
},
"platform": {
"title": "Link Platforms",
"desc": "Linking platforms allows sharing platforms between all versions. Once linked, this version will benefit from the shared platforms",
"desc": "Linking platforms allows sharing platforms between all versions with this feature enabled. Once linked, this version will benefit from shared platforms.",
"info": "Adding and deleting platforms will also be shared",
"keep-models": {
"label": "Keep Platforms",
"title": "Keeping the platforms will move the platforms from the current version to the shared platforms folder. Otherwise, they will be lost"
"title": "Keeping platforms will copy all platforms from the current version to the shared platforms folder. Otherwise, no platforms will be kept from this version and they will be lost."
},
"valid-btn": "Link Platforms"
},
"bloq": {
"title": "Link Bloqs",
"desc": "Linking bloqs allows sharing bloqs between all versions. Once linked, this version will benefit from the shared bloqs",
"desc": "Linking bloqs allows sharing bloqs between all versions with this feature enabled. Once linked, this version will benefit from shared bloqs.",
"info": "Adding and deleting bloqs will also be shared",
"keep-models": {
"label": "Keep Bloqs",
"title": "Keeping the bloqs will move the bloqs from the current version to the shared bloqs folder. Otherwise, they will be lost"
"title": "Keeping bloqs will copy all bloqs from the current version to the shared bloqs folder. Otherwise, no bloqs will be kept from this version and they will be lost."
},
"valid-btn": "Link Bloqs"
}
@@ -791,37 +827,37 @@
"unlink-models": {
"avatar": {
"title": "Unlink Avatars",
"desc": "Be careful, unlinking avatars will no longer allow the use of shared avatars for this version.",
"desc": "Be careful, unlinking avatars will disable the use of shared avatars for this version, until it is reenabled.",
"keep-models": {
"label": "Keep Avatars",
"title": "Keeping the avatars will create a copy of the shared avatars for the current version. Otherwise, no avatars will be kept for this version."
"title": "Keeping avatars will copy all avatars from the shared folder to the current version after unlinking. Avatars will not be lost if this is disabled."
},
"valid-btn": "Unlink Avatars"
},
"saber": {
"title": "Unlink Sabers",
"desc": "Be careful, unlinking sabers will no longer allow the use of shared sabers for this version.",
"desc": "Be careful, unlinking sabers will disable the use of shared sabers for this version, until it is reenabled.",
"keep-models": {
"label": "Keep Sabers",
"title": "Keeping the sabers will create a copy of the shared sabers for the current version. Otherwise, no sabers will be kept for this version."
"title": "Keeping sabers will copy all sabers from the shared folder to the current version after unlinking. Sabers will not be lost if this is disabled."
},
"valid-btn": "Unlink Sabers"
},
"platform": {
"title": "Unlink Platforms",
"desc": "Be careful, unlinking platforms will no longer allow the use of shared platforms for this version.",
"desc": "Be careful, unlinking platforms will disable the use of shared platforms for this version, until it is reenabled.",
"keep-models": {
"label": "Keep Platforms",
"title": "Keeping the platforms will create a copy of the shared platforms for the current version. Otherwise, no platforms will be kept for this version."
"title": "Keeping platforms will copy all platforms from the shared folder to the current version after unlinking. Platforms will not be lost if this is disabled."
},
"valid-btn": "Unlink Platforms"
},
"bloq": {
"title": "Unlink Bloqs",
"desc": "Be careful, unlinking bloqs will no longer allow the use of shared bloqs for this version.",
"desc": "Be careful, unlinking bloqs will disable the use of shared bloqs for this version, until it is reenabled.",
"keep-models": {
"label": "Keep Bloqs",
"title": "Keeping the bloqs will create a copy of the shared bloqs for the current version. Otherwise, no bloqs will be kept for this version."
"title": "Keeping bloqs will copy all bloqs from the shared folder to the current version after unlinking. Bloqs will not be lost if this is disabled."
},
"valid-btn": "Unlink Bloqs"
}
@@ -830,13 +866,13 @@
"notifications": {
"prevent-for-mods": {
"title": "Required mods",
"desc": "Make sure you've installed the necessary mods to use models in BeatSaber",
"desc": "Make sure you've installed the necessary mods to use models in Beat Saber",
"go-to-mods": "Go to mods",
"not-remind": "Do not remind me"
"not-remind": "Don't remind me"
},
"prevent-for-models-breaks": {
"title": "Broken models",
"desc": "Since the BeatSaber engine update, models are no longer functional for this version."
"desc": "Since the Beat Saber engine update, models are no longer functional for this version."
},
"export-success": {
"title": "Export completed 🎉"
@@ -855,58 +891,23 @@
"checking": "Checking for updates",
"downloading": "Downloading updates"
},
"bs-shortcut-launch": {
"beat-saber-launching": "Launching Beat Saber",
"launching": "Launching",
"open-bsmanager": "Open BSManager",
"status-text": {
"init": "Initializing...",
"success": {
"BS_LAUNCHING": "Launching Beat Saber...",
"STEAM_LAUNCHING": "Launching Steam...",
"STEAM_LAUNCHED": "Steam successfully launched!",
"UNABLE_TO_LAUNCH_STEAM": "Unable to launch Steam, forcing Beat Saber launch..."
}
}
},
"dateformat": {
"dayNames": [
"Sun",
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat",
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
],
"monthNames": [
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"June",
"Jul",
"Aug",
"Sept",
"Oct",
"Nov",
"Dec",
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
],
"timeNames": [
"a",
"p",
"am",
"pm",
"A",
"P",
"AM",
"PM"
]
"dayNames": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
"monthNames": ["Jan", "Feb", "Mar", "Apr", "May", "June", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
"timeNames": ["a", "p", "am", "pm", "A", "P", "AM", "PM"]
}
}
}
+204 -203
View File
@@ -3,7 +3,7 @@
"download": "Descargar",
"add": "Añadir",
"verify": "Verificar",
"launch": "Lanzar",
"launch": "Iniciar",
"mods": "Mods",
"maps": "Mapas",
"playlists": "Playlists",
@@ -16,7 +16,7 @@
"copy": "Copiar",
"copied": "¡Copiado!"
},
"nav-bar":{
"nav-bar": {
"add-version": "Agregar una versión",
"settings": "Ajustes",
"shared": {
@@ -25,25 +25,25 @@
}
},
"pages": {
"shared-maps":{
"shared-maps": {
"title": "Mapas comunes"
},
"version-viewer": {
"launch-mods": {
"oculus": "Oculus Mod",
"oculus": "Modo Oculus",
"oculus-description": "Si estás usando Beat Saber a través de Steam, te permite usar el compositor VR de Oculus sin pasar por SteamVR, para ganar prestaciones. Esto no es necesario para usar auriculares Oculus.",
"desktop": "Desktop Mod",
"desktop-description": "Esto te permite usar WASD y el mouse para navegar por el menú en juego. Esto hace que las pruebas sean mucho más fáciles, ¡porque no tienes que ponerte el auricular!",
"debug": "Debug Mod",
"desktop": "Modo FPFC",
"desktop-description": "El modo FPFC te permite usar WASD y el mouse para navegar por el menú en juego. Esto hace que las pruebas sean mucho más fáciles, ¡porque no tienes que ponerte las gafas VR!",
"debug": "Modo Depuración",
"debug-description": "Habilita la ventana de registro de salida para IPA. Esto mostrará la consola de depuración que usan los mods.",
"advanced-launch": {
"button": "Lanzamiento avanzado",
"button": "Opciones avanzadas",
"placeholder": "Argumentos adicionales ej: --revert; --no-wait"
}
},
"maps": {
"search-bar": {
"search-placeholder": "Buscar en un mapa",
"search-placeholder": "Buscar un mapa",
"filters-btn": "Filtros",
"dropdown": {
"export-maps": "Exportar mapas",
@@ -63,9 +63,9 @@
}
}
},
"empty-maps":{
"text":"No hay mapas",
"button":"Descargar mapas"
"empty-maps": {
"text": "No hay mapas",
"button": "Descargar mapas"
}
}
}
@@ -96,26 +96,27 @@
"clone": "Clonar",
"edit": "Editar",
"uninstall": "Desinstalar",
"create-shortcut": "Crear un atajo",
"shared-folders": "Carpetas Compartidas"
}
},
"available-versions": {
"title": "Seleccione una versión",
"steam-release": "Publicación Página",
"title": "Selecciona una versión",
"steam-release": "Anuncio en Steam",
"dropdown": {
"refresh": "Actualizar la lista",
"import-version" :"Importar una versión"
"import-version": "Importar una versión"
}
},
"settings": {
"steam": {
"title": "Steam",
"description": "Si sales de Steam, tendrás que volver a entrar para descargar una nueva versión de Beat Saber.",
"logout": "Desconectar"
"description": "Si desconectas tu cuenta de Steam, tendrás que volver a conectarla para descargar una nueva versión de Beat Saber.",
"logout": "Cerrar sesión"
},
"appearance": {
"title": "Apariencia",
"description": "Elija los dos colores principales de BSManager.",
"description": "Elige los dos colores principales de BSManager.",
"reset": "Reiniciar",
"sub-title": "Tema",
"themes": {
@@ -126,12 +127,12 @@
},
"installation-folder": {
"title": "Carpeta de instalación",
"description": "Cambia la carpeta por defecto para las versiones de Beat Saber y otras características próximas.",
"choose-folder": "Elija la carpeta"
"description": "Cambia la carpeta por defecto para las versiones de Beat Saber y próximas funciones.",
"choose-folder": "Elige la carpeta"
},
"additional-content": {
"title": "Contenido adicional",
"description": El contenido adicional te permite personalizar BeatSaber!",
"description": Contenido adicional que te permite personalizar Beat Saber!",
"deep-links": {
"sub-title": "Instalaciones OneClick"
}
@@ -145,33 +146,35 @@
"fr-FR": "Français",
"es-ES": "Español",
"de-DE": "Deutsch",
"ru-RU": "Русский",
"translated": {
"en-EN": "Inglés, Reino Unido",
"en-US": "Inglés, Estados Unidos",
"fr-FR": "Francés",
"es-ES": "Español",
"de-DE": "Alemán"
"de-DE": "Alemán",
"ru-RU": "Ruso"
}
}
},
"patreon": {
"title": "Apoyo BSManager 💖",
"description": "Apoye el proyecto y ayúdenos a proporcionar mejoras continuas a BSManager.",
"title": "Apoya BSManager 💖",
"description": "Apoya el proyecto y ayúdanos a proporcionar mejoras continuas a BSManager.",
"buttons": {
"support": "Apoyo BSManager 🥰",
"supporters": "Apoyos 👀"
"support": "Apoya BSManager 🥰",
"supporters": "Donadores 👀"
},
"view": {
"no-supporters": "Todavía no hay apoyos",
"no-supporters": "Todavía no hay donadores",
"sponsors": "Patrocinadores",
"supporters": "Apoyos"
"supporters": "Donadores"
}
},
"discord": {
"description": "¡Únete a la comunidad de BSManager siguiéndonos en nuestras redes sociales!"
},
"contribution": {
"description": "¡Sugiera nuevas características o reporte un error para ayudar a mejorar BSManager!",
"description": "¡Sugiere nuevas características o reporta un error para ayudar a mejorar BSManager!",
"buttons": {
"request-features": "Proponer una funcionalidad",
"report-bug": "Informar de un error",
@@ -198,7 +201,7 @@
"no-internet": "Sin internet"
},
"msg": {
"operation-running": "Espere a que termine la operación actual y vuelva a empezar.",
"operation-running": "Espera a que termine la operación actual y vuelve a empezar.",
"no-internet": "Comprueba tu conexión a Internet e inténtalo de nuevo."
}
}
@@ -206,68 +209,66 @@
"bs-download": {
"success": {
"titles": {
"download-success": "Descargar completo",
"verification-finished": "Verificación completa"
"download-success": "Descarga completada",
"verification-finished": "Verificación completada"
}
},
"warnings": {
"msg": {
"ManifestChecksum": "El manifiesto descargado anteriormente no coincide con el nuevo 🤔",
"ConnectionTimeout": "Su conexión a Internet parece inestable 🥶",
"ConnectionLost": "Se ha perdido la conexión, inténtelo de nuevo...",
"ConnectionError": "No se puede conectar a Steam, reintentar...",
"ConnectionTimeout": "Tu conexión a Internet parece inestable 🥶",
"ConnectionLost": "Se ha perdido la conexión, inténtalo de nuevo...",
"ConnectionError": "No se puede conectar a Steam, reintentando...",
"Unknown": "Algo extraño ha ocurrido 🤔 Tu conexión es probablemente inestable."
}
},
"errors": {
"titles":{
"titles": {
"dotnet-required": ".NET 6 Requerido"
},
"msg": {
"401": "Parece que Steam no quiere dejarnos descargar BeatSaber 😢",
"401": "Parece que Steam no quiere dejarnos descargar Beat Saber 😢",
"404": "No se puede contactar con los servidores de Steam",
"Password": "La contraseña es inválida.",
"InvalidCredentials": "Su correo electrónico o contraseña no son válidos 😴",
"InvalidPassword": "Su contraseña no es válida 😕",
"InvalidCredentials": "Credenciales de inicio de sesión inválidas, conexión no aprobada o demasiados intentos de inicio de sesión.",
"NoManifest": "No se ha encontrado el manifiesto",
"DirectoryCreate": "No se pueden instalar las carpetas necesarias.",
"NotAvailableApp": "¿Intentas descargar BeatSaber cuando no lo tienes? 🤣",
"DepotNotFound": "No se puede descargar BeatSaber 😥 inténtalo más tarde 😕",
"NotAvailableApp": "¿Intentas descargar Beat Saber cuando no lo tienes? 🤣",
"DepotNotFound": "No se puede descargar Beat Saber 😥 inténtalo más tarde 😕",
"NotCompleted": "La descarga no pudo completarse ¯\\_(ツ)_/¯",
"InvalidManifest": "No se puede descargar BeatSaber 😥 inténtalo más tarde 😕",
"NoValidKey": "No se puede descargar BeatSaber 😥 inténtalo más tarde 😕",
"NoManifestCode": "No se puede descargar BeatSaber 😥 inténtalo más tarde 😕",
"InvalidManifest": "No se puede descargar Beat Saber 😥 inténtalo más tarde 😕",
"NoValidKey": "No se puede descargar Beat Saber 😥 inténtalo más tarde 😕",
"NoManifestCode": "No se puede descargar Beat Saber 😥 inténtalo más tarde 😕",
"Unknown": "Se ha producido un error desconocido ¯\\_(ツ)_/¯",
"NoServer": "No se puede contactar con los servidores de Steam.",
"NotAllowed": "Aparentemente no tienes permiso para descargar BeatSaber 🥱",
"NotAllowed": "Aparentemente no tienes permiso para descargar Beat Saber 🥱",
"ConnectionTimeout": "No se puede conectar a Steam 😕",
"SteamLib": "Si tienes este error, reporta el bug en GitHub con los logs por favor.",
"SteamLib": "Si tienes este error, reporta el bug en GitHub con los logs, por favor.",
"ConnectionError": "No se puede conectar a Steam después de 10 intentos 🤯",
"LicenceError": "No se puede obtener la lista de licencias.",
"verification-failed": "Verificación fallida, inténtelo más tarde.",
"RateLimitExceeded": "Lo has intentado demasiadas veces, espera un poco y vuelve a intentarlo más tarde.",
"AlreadyDownloading": "La descarga ya está en curso",
"no-internet": "Sin conexión a Internet.",
"dotnet-required": "Se debe instalar el tiempo de ejecución de .NET 6 para descargar una versión de BeatSaber. Descárguelo haciendo clic en el botón de abajo."
"TokenRejected": "Tu token de inicio de sesión ha sido rechazada 😕 Por favor, inténtalo de nuevo.",
"AccessDenied": "El acceso a Steam ha sido denegado.",
"dotnet-required": "Se debe instalar el tiempo de ejecución de .NET 6 para descargar una versión de Beat Saber. Descárgalo haciendo clic en el botón de abajo."
},
"actions":{
"actions": {
"download-dotnet": "Descargar .NET 6"
}
}
},
"bs-import-version":{
"success":{
"bs-import-version": {
"success": {
"start-import": {
"title": "Importación en curso 👌",
"desc": "La importación puede tardar varios minutos dependiendo de su configuración."
"desc": "La importación puede tardar varios minutos dependiendo de tu configuración."
},
"imported": {
"title": "Versión importada 🎉"
}
},
"errors":{
"import-error":{
"desc": "Compruebe que la carpeta seleccionada es una instalación de BeatSaber."
"errors": {
"import-error": {
"desc": "Comprueba que la carpeta seleccionada es una instalación de Beat Saber."
}
}
},
@@ -276,10 +277,10 @@
"success": {
"titles": {
"transfer-started": "Transferencia en curso",
"transfer-finished": "Transferencia completa"
"transfer-finished": "Transferencia completada"
},
"descs": {
"transfer-started": "La transferencia ha comenzado y puede tomar varios minutos dependiendo de su configuración."
"transfer-started": "La transferencia ha comenzado y puede tomar varios minutos dependiendo de tu configuración."
}
},
"errors": {
@@ -288,7 +289,7 @@
},
"descs": {
"COPY_TO_SUBPATH": "La carpeta de destino no puede ser una subcarpeta de la carpeta de origen.",
"restore-linked-folders": "Se produjo un error al restaurar las carpetas compartidas. Aún puede restaurarlas manualmente a través del menú 'Carpetas compartidas' en la página de versiones."
"restore-linked-folders": "Se produjo un error al restaurar las carpetas compartidas. Aún puedes restaurarlas manualmente a través del menú 'Carpetas compartidas' en la página de versiones."
}
}
},
@@ -299,31 +300,31 @@
}
}
},
"additional-content":{
"additional-content": {
"deep-link": {
"select-all": "Seleccionar todo",
"activation":{
"success":{
"title":"¡OneClick activado!",
"description":"Las instalaciones OneClick han sido activadas."
"activation": {
"success": {
"title": "¡OneClick activado!",
"description": "Las instalaciones OneClick han sido activadas."
},
"error":{
"description":"No se pueden activar las instalaciones OneClick."
"error": {
"description": "No se pueden activar las instalaciones OneClick."
}
},
"deactivation":{
"success":{
"title":"¡OneClick desactivado!",
"description":"Las instalaciones OneClick han sido desactivadas."
"deactivation": {
"success": {
"title": "¡OneClick desactivado!",
"description": "Las instalaciones OneClick han sido desactivadas."
},
"error":{
"description":"Ocurrió un error desconocido."
"error": {
"description": "Ha ocurrido un error desconocido."
}
},
"check-all-enabled":{
"check-all-enabled": {
"title": "OneClick deshabilitado",
"description": "Una o más instalaciones de OneClick están deshabilitadas. Vaya a la configuración para habilitarlas.",
"actions":{
"description": "Una o más instalaciones de OneClick están deshabilitadas. Ve a la configuración para habilitarlas.",
"actions": {
"settings": "Ajustes",
"not-remind": "No volver a recordarme"
}
@@ -334,41 +335,47 @@
"bs-launch": {
"success": {
"titles": {
"launching": "Lanzamiento...🚀"
"BS_LAUNCHING": "Lanzamiento...🚀",
"STEAM_LAUNCHING": "¡Steam se está iniciando!"
},
"msg": {
"BS_LAUNCHING": "No olvides calentar 😉",
"STEAM_LAUNCHING": "Beat Saber se iniciará automáticamente después de Steam."
}
},
"errors": {
"titles": {
"UNABLE_TO_LAUNCH": "No se puede lanzar",
"UNKNOWN_ERROR": "No se puede iniciar",
"STEAM_NOT_RUNNING": "Steam no funciona",
"OCULUS_NOT_RUNNING": "Oculus no funciona",
"BS_ALREADY_RUNNING": "BeatSaber ya está en marcha",
"EXE_NOT_FINDED": "Archivos perdidos",
"BS_ALREADY_RUNNING": "Beat Saber ya está en marcha",
"EXE_NOT_FINDED": "Archivos no encontrados",
"EXIT": "Parada abrupta"
},
"msg": {
"STEAM_NOT_RUNNING": "Para iniciar BeatSaber es necesario que Steam esté en funcionamiento.",
"OCULUS_NOT_RUNNING": "Oculus debe estar funcionando para lanzar BeatSaber.",
"BS_ALREADY_RUNNING": "Cierra BeatSaber antes de volver a lanzarlo.",
"EXE_NOT_FINDED": "Parece que faltan algunos archivos, intente verificar los archivos.",
"EXIT": "BeatSaber se detuvo abruptamente, trata de revisar los archivos."
"UNKNOWN_ERROR": "Se ha producido un error desconocido.",
"STEAM_NOT_RUNNING": "Para iniciar Beat Saber es necesario que Steam esté en funcionamiento.",
"OCULUS_NOT_RUNNING": "Oculus debe estar funcionando para iniciar Beat Saber.",
"BS_ALREADY_RUNNING": "Cierra Beat Saber antes de volver a iniciarlo.",
"EXE_NOT_FINDED": "Parece que faltan algunos archivos, intenta verificar los archivos.",
"EXIT": "Beat Saber se detuvo abruptamente, trata de verificar los archivos."
},
"actions":{
"actions": {
"STEAM_NOT_RUNNING": "Iniciar Steam"
}
}
},
"steam":{
"steam-launching":{
"steam": {
"steam-launching": {
"title": "¡Steam se está iniciando!",
"description": "Steam puede tardar un poco en iniciarse dependiendo de tu configuración."
"description": "Beat Saber se iniciará automáticamente después de Steam."
}
},
"custom-version": {
"errors": {
"titles": {
"CantEditSteam": "Imposible editar",
"CantRename": "El renombramiento es imposible",
"CantRename": "Cambio de nombre imposible",
"VersionAlreadExist": "Esta versión ya existe",
"CantClone": "Clonación imposible"
},
@@ -392,7 +399,7 @@
"success": "Todos los mods han sido instalados.",
"warning": "No se han podido instalar uno o más mods.",
"errors": {
"no-mods": "No hay que instalar mods.",
"no-mods": "No hay mods para instalar.",
"cannot-install-bsipa": "La instalación de BSIPA falló 😨"
}
}
@@ -414,90 +421,112 @@
"msg": {
"success": "Todos los mods han sido desinstalados.",
"errors": {
"no-mods": "No se instala ningún mod en esta versión 😑"
"no-mods": "No hay mods instalados en esta versión 😑"
}
}
}
},
"maps":{
"one-click-install":{
"success":"Instalación del mapa completada",
"error":"Se produjo un error durante la instalación del mapa"
"maps": {
"one-click-install": {
"success": "Instalación del mapa completada",
"error": "Se produjo un error durante la instalación del mapa"
}
},
"playlists":{
"one-click-install":{
"success":"Instalación de la lista de reproducción completada",
"error":"Se produjo un error durante la instalación de la lista de reproducción"
"playlists": {
"one-click-install": {
"success": "Instalación de la lista de reproducción completada",
"error": "Se produjo un error durante la instalación de la lista de reproducción"
}
},
"models":{
"one-click-install":{
"success":"Instalación del modelo completada",
"error":"Se produjo un error durante la instalación del modelo"
"models": {
"one-click-install": {
"success": "Instalación del modelo completada",
"error": "Se produjo un error durante la instalación del modelo"
}
},
"shared-folder": {
"info": {
"userdata-backup-created":{
"userdata-backup-created": {
"title": "Backup creado",
"msg": "Compartir la carpeta 'UserData' puede generar errores, en caso de problemas desvincular la carpeta para restaurar la copia de seguridad"
"msg": "Compartir la carpeta 'UserData' puede generar errores, en caso de problemas desvincula la carpeta para restaurar la copia de seguridad"
}
}
},
"create-launch-shortcut": {
"success": {
"title": "Acceso directo creado",
"msg": "El acceso directo se ha creado en el escritorio."
},
"error": {
"msg": "Se produjo un error al crear el acceso directo."
}
}
},
"modals": {
"misc":{
"misc": {
"remember-my-choice": "Recordar mi elección"
},
"guard": {
"title": "Steam Guard",
"inputs": {
"guard-code": {
"label": "Guard Código",
"label": "Código Guard",
"placeholder": "Introduzca su código Guard"
}
},
"buttons": {
"submit": "Conéctate"
"submit": "Conectar"
}
},
"steam-login": {
"title": "Steam Conectar",
"title": "Inicio de sesión Steam",
"inputs": {
"username": {
"label": "Nombre de usuario",
"placeholder": "Introduzca su nombre de usuario"
"label": "Inicia sesión con un nombre de cuenta",
"placeholder": "Introduce tu nombre de cuenta"
},
"password": {
"label": "Contraseña",
"placeholder": "Introduzca su contraseña",
"max-length-warning": "¡La contraseña supera los 64 caracteres! Si la contraseña es inválida, intenta ingresar solo sus primeros 64 caracteres."
"placeholder": "Introduce tu contraseña",
"max-length-warning": "¡La contraseña supera los 64 caracteres! Si la contraseña es inválida, intenta ingresar solo sus primeros 64 caracteres."
},
"stay": {
"label": "Manténgase conectado"
}
"qr":{
"label": "O con un código QR",
"note":{
"use-the":"Usa la ",
"steam-mobile-app": "aplicación Steam Mobile",
"to-connect-with-qr": "para conectarte con un código QR."
}
},
"stay": "Recuérdame"
},
"why-credentials": "¿Por qué necesitas mis credenciales?",
"why-credentials": "¿Por qué son necesarias mis credenciales?",
"need-help-to-connect": "¡Necesito ayuda para acceder a mi cuenta!",
"buttons": {
"submit": "Inicio de sesión"
"submit": "Iniciar sesión"
}
},
"steam-credentials":{
"steam-auth-approve":{
"title": "Esperando confirmación",
"protected-by-mobile-auth": "Cuenta protegida por el autenticador móvil.",
"use-steam-app-to-approve": "Use la aplicación móvil de Steam para confirmar la conexión...",
"not-access-to-steam-app": "No tengo acceso a la aplicación móvil de Steam"
},
"steam-credentials": {
"title": "Steam Credentials",
"p-1": "Las credenciales sólo se utilizan para descargar el juego porque steam necesita verificar que has pagado el juego para que se te permita descargarlo. No se guardan y se pasan directamente a DepotDownloader. Si no quieres introducir tus credenciales puedes seguir este tutorial :",
"p-1": "Las credenciales sólo se utilizan para descargar el juego porque steam necesita verificar que has pagado el juego para permitirte descargarlo. No se guardan y se pasan directamente a DepotDownloader. Si no quieres introducir tus credenciales puedes seguir este tutorial :",
"p-2": "y, a continuación, haga clic en el icono de engranaje en la esquina superior derecha y seleccione \"Importar una versión\", seleccione la carpeta donde se ha descargado beat saber (Si usted sigue el tutorial anterior debe tener la ubicación correcta)"
},
"bs-import-version":{
"bs-import-version": {
"title": "Importar una versión",
"description": "Importa una versión de BeatSaber para usar con BSManager. La importación copiará la carpeta de instalación seleccionada de BeatSaber en la carpeta de versiones de BSManager.",
"buttons":{
"description": "Importa una versión de Beat Saber para usar con BSManager. La importación copiará la carpeta de instalación seleccionada de Beat Saber en la carpeta de versiones de BSManager.",
"buttons": {
"submit": "Importar una versión"
}
},
"bs-uninstall": {
"title": "Desinstalar",
"description": "¿Estás seguro de que quieres desinstalar BeatSaber {version}? Tendrás que descargarlo de nuevo para poder jugar.",
"description": "¿Estás seguro de que quieres desinstalar Beat Saber {version}? Tendrás que descargarlo de nuevo para poder jugar.",
"buttons": {
"submit": "Desinstalar"
}
@@ -517,7 +546,7 @@
},
"clone-version": {
"title": "Versión clonada",
"description": "La clonación de la versión le permite separar el contenido adicional de BeatSaber entre dos versiones.",
"description": "La clonación de la versión te permite separar el contenido adicional de Beat Saber entre dos versiones.",
"inputs": {
"name": {
"label": "Nombre",
@@ -573,7 +602,7 @@
},
"unlink-maps": {
"title": "Desvincular mapas",
"desc": "Tenga en cuenta que desvincular mapas no permitirá el uso de mapas compartidos para esta versión.",
"desc": "Ten en cuenta que desvincular mapas no permitirá el uso de mapas compartidos para esta versión.",
"keep-maps": {
"label": "Mantener mapas",
"title": "Mantener los mapas creará una copia de los mapas compartidos para la versión actual. De lo contrario, no se mantendrá ningún mapa para esta versión."
@@ -582,12 +611,12 @@
}
},
"download-maps": {
"search-btn": "buscar",
"search-btn": "Buscar",
"loading-maps": "Cargando mapas...",
"no-maps-found": "No se encontraron mapas",
"no-internet": "Sin internet"
},
"mods-disclaimer":{
"mods-disclaimer": {
"title": "descargo de responsabilidad",
"p-1": "Al elegir usar mods, entiendes y aceptas que:",
"li-1": "Es posible que encuentres problemas que no existen en el juego base. El 99,9% de los errores, bloqueos y ralentizaciones son debidos a los mods.",
@@ -595,15 +624,22 @@
"li-3": "Beat Games no está intencionalmente tratando de romper los mods. Quieren mejorar el juego base y a veces esto rompe los mods, pero no es su objetivo matar a los mods.",
"p-2": "No ataques a los desarrolladores por problemas relacionados con los mods y viceversa. Los modders y los desarrolladores son dos grupos distintos. No seas tonto, ¿de acuerdo?"
},
"shared-folders":{
"shared-folders": {
"title": "Carpetas Compartidas",
"description": "Enlace las carpetas de BeatSaber para sincronizar su contenido con las carpetas compartidas en otras versiones. Tenga en cuenta que la eliminación de contenido también se compartirá.",
"description": "Enlaza las carpetas de Beat Saber para sincronizar su contenido con las carpetas compartidas en otras versiones. Tenga en cuenta que la eliminación de contenido también se compartirá.",
"buttons": {
"add-folder": "Añadir Carpeta",
"link-folder": "Enlazar Carpeta",
"unlink-folder": "Desenlazar Carpeta",
"link-all": "Enlazar todo"
}
},
"create-launch-shortcut": {
"title": "Crear un atajo",
"desc": "Crear un atajo te permitirá iniciar Beat Saber con las opciones seleccionadas sin pasar por BSManager.",
"launch-options": "Opciones de lanzamiento",
"advanced-launch": "Lanzamiento avanzado",
"valid-btn": "Crear el atajo"
}
},
"maps": {
@@ -620,7 +656,7 @@
"dancestyle": "baile",
"fitness": "fitness",
"speed": "speed",
"tech": "tec"
"tech": "tech"
},
"map-styles": {
"dance": "baile",
@@ -679,7 +715,7 @@
"mapped-by": "mapeado por"
}
},
"models":{
"models": {
"types": {
"singular": {
"avatar": "avatar",
@@ -709,14 +745,14 @@
"link-models": "Vincular modelos",
"unlink-models": "Desvincular los modelos"
},
"grid":{
"grid": {
"loading": "Cargando modelos...",
"no-models": "No hay modelos",
"download-models": "Descargar modelos"
}
},
"modals": {
"delete-model" :{
"delete-model": {
"title": "Eliminar el modelo",
"desc": "¿Estás seguro de que quieres eliminar el modelo {modelName}?",
"linked-annotation": "Este modelo será eliminado de todas las versiones vinculadas."
@@ -777,14 +813,14 @@
"valid-btn": "Vincular plataformas"
},
"bloq": {
"title": "Vincular bloqs",
"desc": "La vinculación de bloqs permite compartir bloqs entre todas las versiones. Una vez vinculada, esta versión se beneficiará de los bloqs compartidos",
"info": "La adición y eliminación de bloqs también se compartirá",
"title": "Vincular bloques",
"desc": "La vinculación de bloques permite compartir bloques entre todas las versiones. Una vez vinculada, esta versión se beneficiará de los bloques compartidos",
"info": "La adición y eliminación de bloques también se compartirá",
"keep-models": {
"label": "Conservar los bloqs",
"title": "Conservar los bloqs moverá los bloqs de la versión actual a la carpeta de bloqs compartidos. De lo contrario, se perderán"
"label": "Conservar los bloques",
"title": "Conservar los bloques moverá los bloques de la versión actual a la carpeta de bloques compartidos. De lo contrario, se perderán"
},
"valid-btn": "Vincular bloqs"
"valid-btn": "Vincular bloques"
}
},
"unlink-models": {
@@ -816,26 +852,26 @@
"valid-btn": "Desvincular plataformas"
},
"bloq": {
"title": "Desvincular bloqs",
"desc": "Atención, desvincular los bloqs ya no permitirá el uso de bloqs compartidos para esta versión.",
"title": "Desvincular bloques",
"desc": "Atención, desvincular los bloques ya no permitirá el uso de bloques compartidos para esta versión.",
"keep-models": {
"label": "Conservar los bloqs",
"title": "Conservar los bloqs creará una copia de los bloqs compartidos para la versión actual. En caso contrario, ningún bloq se conservará para esta versión."
"label": "Conservar los bloques",
"title": "Conservar los bloques creará una copia de los bloques compartidos para la versión actual. En caso contrario, ningún bloques se conservará para esta versión."
},
"valid-btn": "Desvincular bloqs"
"valid-btn": "Desvincular bloques"
}
}
},
"notifications": {
"prevent-for-mods": {
"title": "Mods necesarios",
"desc": "Asegúrate de haber instalado los mods necesarios para usar modelos en BeatSaber",
"desc": "Asegúrate de haber instalado los mods necesarios para usar modelos en Beat Saber",
"go-to-mods": "Ir a mods",
"not-remind": "No volver a recordarme"
},
"prevent-for-models-breaks": {
"title": "Modelos rotos",
"desc": "Desde la actualización del motor de BeatSaber, los modelos ya no son funcionales para esta versión."
"desc": "Desde la actualización del motor de Beat Saber, los modelos ya no son funcionales para esta versión."
},
"export-success": {
"title": "Exportación completada 🎉"
@@ -851,61 +887,26 @@
}
},
"auto-update": {
"checking": "Comprobar las actualizaciones",
"downloading": "Descargar actualizaciones"
"checking": "Comprobando actualizaciones",
"downloading": "Descargando actualizaciones"
},
"bs-shortcut-launch": {
"beat-saber-launching": "Iniciando Beat Saber",
"launching": "Iniciando",
"open-bsmanager": "Abrir BSManager",
"status-text": {
"init": "Inicializando...",
"success": {
"BS_LAUNCHING": "Iniciando Beat Saber...",
"STEAM_LAUNCHING": "Iniciando Steam...",
"STEAM_LAUNCHED": "¡Steam iniciado exitosamente!",
"UNABLE_TO_LAUNCH_STEAM": "Incapaz de iniciar Steam, forzando el inicio de Beat Saber..."
}
}
},
"dateformat": {
"dayNames": [
"Dom",
"Lun",
"Mar",
"Mié",
"Jue",
"Vie",
"Sáb",
"Domingo",
"Lunes",
"Martes",
"Miércoles",
"Jueves",
"Viernes",
"Sábado"
],
"monthNames": [
"Ene",
"Feb",
"Mar",
"Abr",
"May",
"Jun",
"Jul",
"Ago",
"Sep",
"Oct",
"Nov",
"Dic",
"Enero",
"Febrero",
"Marzo",
"Abril",
"Mayo",
"Junio",
"Julio",
"Agosto",
"Septiembre",
"Octubre",
"Noviembre",
"Diciembre"
],
"timeNames": [
"a",
"p",
"am",
"pm",
"A",
"P",
"AM",
"PM"
]
"dayNames": ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb", "Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"],
"monthNames": ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic", "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"],
"timeNames": ["a", "p", "am", "pm", "A", "P", "AM", "PM"]
}
}
}
+128 -130
View File
@@ -16,7 +16,7 @@
"copy": "Copier",
"copied": "Copié !"
},
"nav-bar":{
"nav-bar": {
"add-version": "Ajouter une version",
"settings": "Paramètres",
"shared": {
@@ -25,14 +25,14 @@
}
},
"pages": {
"shared-maps":{
"shared-maps": {
"title": "Maps partagées"
},
"version-viewer": {
"launch-mods": {
"oculus": "Mode Oculus",
"oculus-description": "Si vous utilisez Beat Saber via Steam, cela vous permet d'utiliser le compositeur VR d'Oculus sans passer par SteamVR, pour gagner en performances. Ceci n'est pas nécessaire pour utiliser les casques Oculus.",
"desktop": "Mode Bureau",
"desktop": "Mode FPFC",
"desktop-description": "Cela vous permet d'utiliser WASD et la souris pour naviguer dans le menu en jeu. Cela rend les tests beaucoup plus faciles, car vous n'avez pas à mettre votre casque!",
"debug": "Mode Debug",
"debug-description": "Active la fenêtre de log pour IPA. Cela affichera la console de débogage utilisée par les mods.",
@@ -63,9 +63,9 @@
}
}
},
"empty-maps":{
"text":"Aucune map",
"button":"Télécharger des maps"
"empty-maps": {
"text": "Aucune map",
"button": "Télécharger des maps"
}
}
}
@@ -96,6 +96,7 @@
"clone": "Cloner",
"edit": "Editer",
"uninstall": "Désinstaller",
"create-shortcut": "Créer un raccourci",
"shared-folders": "Dossiers Partagés"
}
},
@@ -104,7 +105,7 @@
"steam-release": "Notes de version",
"dropdown": {
"refresh": "Rafraichir la liste",
"import-version" :"Importer une version"
"import-version": "Importer une version"
}
},
"settings": {
@@ -145,12 +146,14 @@
"fr-FR": "Français",
"es-ES": "Español",
"de-DE": "Deutsch",
"ru-RU": "Русский",
"translated": {
"en-EN": "Anglais, Royaume-Uni",
"en-US": "Anglais, États-Unis",
"fr-FR": "Français",
"es-ES": "Espagnol",
"de-DE": "Allemand"
"de-DE": "Allemand",
"ru-RU": "Russe"
}
}
},
@@ -167,7 +170,7 @@
"supporters": "Supporteurs"
}
},
"discord":{
"discord": {
"description": "Prends part à la communauté de BSManager en nous suivant sur nos réseaux sociaux !"
},
"contribution": {
@@ -212,23 +215,19 @@
},
"warnings": {
"msg": {
"ManifestChecksum": "Le manifest téléchargé précédemment ne correspond pas au nouveau 🤔",
"ConnectionTimeout": "Ta connexion internet semble instable 🥶",
"ConnectionLost": "La connexion a été perdue, nouvelle tentative...",
"ConnectionError": "Impossible de se connecter à Steam, nouvelle tentative...",
"Unknown": "Quelque chose d'étrange s'est produit 🤔 Votre connexion est surement instable."
}
},
"errors": {
"titles":{
"titles": {
"dotnet-required": ".NET 6 Requis"
},
"msg": {
"401": "Steam ne semble pas vouloir nous laisser télécharger Beat Saber 😢",
"404": "Impossible de contacter les serveurs de Steam.",
"Password": "Le mot de passe est invalide.",
"InvalidCredentials": "Ton e-mail ou mot de passe est invalide 😴",
"InvalidPassword": "Ton mot de passe est invalide 😕",
"InvalidCredentials": "Identifiants de connexion invalides, connexion non approuvée, ou trop de tentatives de connexion.",
"NoManifest": "Aucun manifest n'a été trouvé.",
"DirectoryCreate": "Impossible d'installer les dossiers nécessaires.",
"NotAvailableApp": "Tu essayes de télécharger Beat Saber alors que tu ne l'as pas ? 🤣",
@@ -244,19 +243,18 @@
"SteamLib": "Si tu as cette erreur, signale le bug sur GitHub avec les logs stp.",
"ConnectionError": "Impossible de se connecter à Steam après 10 essais 🤯",
"LicenceError": "Impossible d'obtenir la liste des licences.",
"verification-failed": "La vérification a échoué, réessaye plus tard.",
"RateLimitExceeded": "Tu as essayé trop de fois attends un peu et recommence plus tard.",
"AlreadyDownloading": "Un téléchargement est déjà en cours",
"no-internet": "Pas de connexion internet.",
"TokenRejected": "Votre token de connexion a été rejeté 😕 Veuillez réessayer.",
"AccessDenied": "L'accès à Steam a été refusé.",
"dotnet-required": ".NET 6 Runtime doit être installé pour pouvoir télécharger une version de Beat Saber. Télécharge-le en cliquant sur le bouton ci-dessous."
},
"actions":{
"actions": {
"download-dotnet": "Télécharger .NET 6"
}
}
},
"bs-import-version":{
"success":{
"bs-import-version": {
"success": {
"start-import": {
"title": "Importation en cours 👌",
"desc": "L'importation peut durer plusieurs minutes selon votre configuration."
@@ -265,8 +263,8 @@
"title": "Version importée 🎉"
}
},
"errors":{
"import-error":{
"errors": {
"import-error": {
"desc": "Vérifier que le dossier sélectionné est une installation de Beat Saber."
}
}
@@ -278,7 +276,7 @@
"transfer-started": "Transfert en cours",
"transfer-finished": "Transfert terminé 👌"
},
"descs":{
"descs": {
"transfer-started": "Le transfert a commencé, il peut durer plusieurs minutes selon votre configuration."
}
},
@@ -289,7 +287,7 @@
"descs": {
"COPY_TO_SUBPATH": "Le dossier de destination ne peut pas être un sous-dossier du dossier source.",
"restore-linked-folders": "Une erreur s'est produite lors de la restauration des dossiers partagés. Vous pouvez toujours les restaurer manuellement via le menu 'Dossiers partagés' sur la page des versions."
}
}
}
},
"steam": {
@@ -299,31 +297,31 @@
}
}
},
"additional-content":{
"additional-content": {
"deep-link": {
"select-all": "Tout sélectionner",
"activation":{
"success":{
"title":"OneClick activé !",
"description":"Les installations OneClick ont été activées."
"activation": {
"success": {
"title": "OneClick activé !",
"description": "Les installations OneClick ont été activées."
},
"error":{
"description":"Impossible d'activer les installations OneClick."
"error": {
"description": "Impossible d'activer les installations OneClick."
}
},
"deactivation":{
"success":{
"title":"OneClick désactivé !",
"description":"Les installations OneClick ont été désactivées."
"deactivation": {
"success": {
"title": "OneClick désactivé !",
"description": "Les installations OneClick ont été désactivées."
},
"error":{
"description":"Une erreur inconnue s'est produite."
"error": {
"description": "Une erreur inconnue s'est produite."
}
},
"check-all-enabled":{
"check-all-enabled": {
"title": "OneClick désactivée(s)",
"description": "Une ou plusieurs installations OneClick sont désactivées. Rendez-vous dans les paramètres pour les activer.",
"actions":{
"actions": {
"settings": "Paramètres",
"not-remind": "Ne plus me rappeler"
}
@@ -334,12 +332,17 @@
"bs-launch": {
"success": {
"titles": {
"launching": "Lancement...🚀"
"BS_LAUNCHING": "Lancement...🚀",
"STEAM_LAUNCHING": "Steam se lance !"
},
"msg": {
"BS_LAUNCHING": "N'oublie pas de t'échauffer 😉",
"STEAM_LAUNCHING": "Beat Saber se lancera automatiquement après Steam."
}
},
"errors": {
"titles": {
"UNABLE_TO_LAUNCH": "Lancement impossible",
"UNKNOWN_ERROR": "Lancement impossible",
"STEAM_NOT_RUNNING": "Steam n'est pas lancé",
"OCULUS_NOT_RUNNING": "Oculus n'est pas lancé",
"BS_ALREADY_RUNNING": "Beat Saber est déjà lancé",
@@ -347,21 +350,22 @@
"EXIT": "Arrêt brutal"
},
"msg": {
"UNKNOWN_ERROR": "Une erreur inconnue s'est produite.",
"STEAM_NOT_RUNNING": "Steam doit être en cours d'exécution pour lancer Beat Saber.",
"OCULUS_NOT_RUNNING": "Oculus doit être en cours d'exécution pour lancer Beat Saber.",
"BS_ALREADY_RUNNING": "Ferme Beat Saber avant de le lancer à nouveau.",
"EXE_NOT_FINDED": "Quelques fichiers semblent manquants. Essaye de vérifier les fichiers.",
"EXIT": "BeatSaber s'est arrêté brusquement, essaye de vérifier les fichiers."
},
"actions":{
"actions": {
"STEAM_NOT_RUNNING": "Lancer Steam"
}
}
},
"steam":{
"steam-launching":{
"steam": {
"steam-launching": {
"title": "Steam se lance !",
"description": "Steam peut mettre quelque temps à se lancer selon votre configuration."
"description": "Beat Saber se lancera automatiquement après Steam."
}
},
"custom-version": {
@@ -419,35 +423,44 @@
}
}
},
"maps":{
"one-click-install":{
"success":"Installation de la map terminée",
"error":"Une erreur s'est produite lors de l'installation de la map"
"maps": {
"one-click-install": {
"success": "Installation de la map terminée",
"error": "Une erreur s'est produite lors de l'installation de la map"
}
},
"playlists":{
"one-click-install":{
"success":"Installation de la playlist terminée",
"error":"Une erreur s'est produite lors de l'installation de la playlist"
"playlists": {
"one-click-install": {
"success": "Installation de la playlist terminée",
"error": "Une erreur s'est produite lors de l'installation de la playlist"
}
},
"models":{
"one-click-install":{
"success":"Installation du modèle terminée",
"error":"Une erreur s'est produite lors de l'installation du modèle"
"models": {
"one-click-install": {
"success": "Installation du modèle terminée",
"error": "Une erreur s'est produite lors de l'installation du modèle"
}
},
"shared-folder":{
"shared-folder": {
"info": {
"userdata-backup-created":{
"userdata-backup-created": {
"title": "Sauvegarde créée",
"msg": "Le partage du dossier 'UserData' peut générer des erreurs, en cas de soucis déliez le dossier pour restaurer la sauvegarde"
}
}
},
"create-launch-shortcut": {
"success": {
"title": "Raccourci créé",
"msg": "Le raccourci a été créé sur le bureau."
},
"error": {
"msg": "Une erreur s'est produite lors de la création du raccourci."
}
}
},
"modals": {
"misc":{
"misc": {
"remember-my-choice": "Se souvenir de mon choix"
},
"guard": {
@@ -466,32 +479,45 @@
"title": "Connexion Steam",
"inputs": {
"username": {
"label": "Nom d'utilisateur",
"placeholder": "Entre ton nom d'utilisateur"
"label": "Se connecter avec un nom de compte",
"placeholder": "Entre ton nom de compte"
},
"password": {
"label": "Mot de passe",
"placeholder": "Entre ton mot de passe",
"max-length-warning": "Le mot de passe dépasse 64 caractères ! Si le mot de passe est invalide, tente d'entrer seulement ses 64 premiers caractères."
"max-length-warning": "Le mot de passe dépasse 64 caractères ! Si le mot de passe est invalide, tente d'entrer seulement ses 64 premiers caractères."
},
"stay": {
"label": "Rester connecté"
}
"qr":{
"label": "Ou avec un QR code",
"note":{
"use-the":"Utilisez l'",
"steam-mobile-app": "application mobile Steam",
"to-connect-with-qr": "pour vous connecter avec un QR code."
}
},
"stay": "Se souvenir de moi"
},
"why-credentials": "Pourquoi mes identifiants sont nécessaires ?",
"need-help-to-connect": "J'ai besoin d'aide pour accéder à mon compte !",
"buttons": {
"submit": "Se connecter"
}
},
"steam-credentials":{
"steam-auth-approve":{
"title": "Attente de confirmation",
"protected-by-mobile-auth": "Compte protégé par l'authentificateur mobile.",
"use-steam-app-to-approve": "Utilisez l'application mobile Steam pour confirmer la connexion...",
"not-access-to-steam-app": "Je n'ai pas accès à l'application mobile Steam"
},
"steam-credentials": {
"title": "Steam Credentials",
"p-1": "Les informations d'identification ne sont utilisées que pour télécharger le jeu, car Steam doit vérifier que vous avez payé le jeu afin d'être autorisé à le télécharger. Ils ne sont pas sauvegardés et transmis directement à DepotDownloader. Si vous ne voulez pas entrer vos informations d'identification, vous pouvez suivre ce tutoriel :",
"p-2": "puis cliquez sur l'icône de l'engrenage dans le coin supérieur droit et sélectionnez \"Importer une version\", sélectionnez le dossier où beat saber a été téléchargé (Si vous suivez le tutoriel ci-dessus, vous devriez avoir le bon emplacement)."
},
"bs-import-version":{
"bs-import-version": {
"title": "Importer une version",
"description": "Importe une version de BeatSaber pour profiter des fonctionnalités de BSManager. L'importation copiera le dossier d'installation de BeatSaber sélectionné dans le dossier de versions de BSManager.",
"buttons":{
"buttons": {
"submit": "Importer une version"
}
},
@@ -587,7 +613,7 @@
"no-maps-found": "Aucune map trouvée",
"no-internet": "Pas d'internet"
},
"mods-disclaimer":{
"mods-disclaimer": {
"title": "avis de non-responsabilité",
"p-1": "En choisissant d'utiliser des mods, vous comprenez et acceptez que :",
"li-1": "Vous pouvez rencontrer des problèmes qui n'existent pas dans le jeu de base. 99.9% des bugs, plantages et ralentissements sont dus aux mods.",
@@ -595,7 +621,7 @@
"li-3": "Beat Games ne cherche pas volontairement à casser les mods. Ils souhaitent améliorer la base du jeu et parfois cela casse les mods, mais ce n'est pas dans leur objectif de tuer les mods.",
"p-2": "N'attaquez pas les développeurs pour des problèmes relatifs aux mods, et inversement - les moddeurs et les développeurs sont deux groupes distincts. Ne soyez pas idiots, d'accord ?"
},
"shared-folders":{
"shared-folders": {
"title": "Dossiers Partagés",
"description": "Liez les dossiers de BeatSaber pour synchroniser leurs contenus avec les dossiers partagés des autres versions. Notez que la suppression de contenu sera également partagée.",
"buttons": {
@@ -604,6 +630,13 @@
"unlink-folder": "Délier le dossier",
"link-all": "Tout lier"
}
},
"create-launch-shortcut": {
"title": "Créer un raccourci",
"desc": "Créer un raccourci te permettra de démarrer Beat Saber avec les options choisi sans passé par BSManager.",
"launch-options": "Options de lancement",
"advanced-launch": "Lancement avancé",
"valid-btn": "Créer le raccourci"
}
},
"maps": {
@@ -679,7 +712,7 @@
"mapped-by": "mappée par"
}
},
"models":{
"models": {
"types": {
"singular": {
"avatar": "avatar",
@@ -709,14 +742,14 @@
"link-models": "Lier les modèles",
"unlink-models": "Délier les modèles"
},
"grid":{
"grid": {
"loading": "Chargement des modèles...",
"no-models": "Aucun modèle",
"download-models": "Télécharger des modèles"
}
},
"modals": {
"delete-model" :{
"delete-model": {
"title": "Supprimer le modèle",
"desc": "Est-tu sûr de vouloir supprimer le modèle {modelName} ?",
"linked-annotation": "Ce modèle sera supprimé de toutes les versions liées."
@@ -745,7 +778,7 @@
"no-internet": "Pas de connexion internet.",
"error-occured": "Une erreur est survenue, réessaye plus tard."
},
"link-models":{
"link-models": {
"avatar": {
"title": "Lier les avatars",
"desc": "La liaison des avatars permet de partager les avatars entre toute les version. Une fois liée, cette version profitera des avatars partagés",
@@ -787,7 +820,7 @@
"valid-btn": "Lier les bloqs"
}
},
"unlink-models":{
"unlink-models": {
"avatar": {
"title": "Délier les avatars",
"desc": "Attention, délier les avatars ne permettra plus l'utilisation des avatars paratagés pour cette version.",
@@ -833,7 +866,7 @@
"go-to-mods": "Aller aux mods",
"not-remind": "Ne plus me rappeler"
},
"prevent-for-models-breaks":{
"prevent-for-models-breaks": {
"title": "Modèles cassés",
"desc": "Depuis la mise à jour du moteur de BeatSaber, les modèles ne sont plus fonctionnels pour cette version."
},
@@ -854,58 +887,23 @@
"checking": "Vérification des mises à jour",
"downloading": "Téléchargement des mises à jour"
},
"bs-shortcut-launch": {
"beat-saber-launching": "Lancement de Beat Saber",
"launching": "Lancement",
"open-bsmanager": "Ouvrir BSManager",
"status-text": {
"init": "Initialisation...",
"success": {
"BS_LAUNCHING": "Lancement de Beat Saber...",
"STEAM_LAUNCHING": "Lancement de Steam...",
"STEAM_LAUNCHED": "Steam lancé avec succès !",
"UNABLE_TO_LAUNCH_STEAM": "Impossible de lancer Steam, lancement forcé de Beat Saber..."
}
}
},
"dateformat": {
"dayNames": [
"Dim",
"Lun",
"Mar",
"Mer",
"Jeu",
"Ven",
"Sam",
"Dimanche",
"Lundi",
"Mardi",
"Mercredi",
"Jeudi",
"Vendredi",
"Samedi"
],
"monthNames": [
"Jan",
"Fév",
"Mar",
"Avr",
"Mai",
"Jun",
"Juil",
"Aou",
"Sept",
"Oct",
"Nov",
"Déc",
"Janvier",
"Février",
"Mars",
"Avril",
"Mai",
"Juin",
"Juillet",
"Août",
"Septembre",
"Octobre",
"Novembre",
"Décembre"
],
"timeNames": [
"a",
"p",
"am",
"pm",
"A",
"P",
"AM",
"PM"
]
"dayNames": ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam", "Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi"],
"monthNames": ["Jan", "Fév", "Mar", "Avr", "Mai", "Jun", "Juil", "Aou", "Sept", "Oct", "Nov", "Déc", "Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"],
"timeNames": ["a", "p", "am", "pm", "A", "P", "AM", "PM"]
}
}
+913
View File
@@ -0,0 +1,913 @@
{
"misc": {
"download": "Скачать",
"add": "Добавить",
"verify": "Проверить",
"launch": "Запустить",
"mods": "Моды",
"maps": "Карты",
"playlists": "Плейлисты",
"models": "Модели",
"cancel": "Отмена",
"delete": "Удалить",
"accept": "Принять",
"refuse": "Отказаться",
"apply": "Применить",
"copy": "Скопировать",
"copied": "Скопировано!"
},
"nav-bar": {
"add-version": "Добавить версию игры",
"settings": "Настройки",
"shared": {
"text": "Общий",
"tooltip": "Общий контент"
}
},
"pages": {
"shared-maps": {
"title": "Общие карты"
},
"version-viewer": {
"launch-mods": {
"oculus": "Режим Oculus",
"oculus-description": "Если вы используете Beat Saber через Steam, это позволит использовать Oculus's VR в обход SteamVR, для потенциального прироста производительности. Это необязательно для шлемов Oculus.",
"desktop": "Режим FPFC",
"desktop-description": "Режим Летающих контроллеров от первого лица(FPFC) позволит вам использовать меню с помощью WASD и мышки. Это облегчает тестирование модов, потому что вам не нужно подключать шлем!",
"debug": "Режим отладки",
"debug-description": "Включает окно логов для IPA. В окне будут отображаться логи модов.",
"advanced-launch": {
"button": "Расширенный запуск",
"placeholder": "Параметры запуска, например: --revert; --nowait"
}
},
"maps": {
"title": "Общие карты",
"search-bar": {
"search-placeholder": "Поиск среди карт",
"filters-btn": "Фильтр",
"dropdown": {
"export-maps": "Экспорт карт",
"delete-maps": "Удалить карты"
}
},
"tabs": {
"maps": {
"actions": {
"add-maps": {
"text": "Добавить"
},
"link-maps": {
"tooltips": {
"link": "Привязать карты",
"unlink": "Отвязать карты"
}
}
},
"empty-maps": {
"text": "Нет карт",
"button": "Скачать карты"
}
}
}
},
"mods": {
"loading-mods": "Загрузка модов...",
"no-internet": "Нет интернета",
"mods-not-available": "Не найдены моды для этой версии Beat Saber",
"buttons": {
"more-infos": "Подробнее",
"install-or-update": "Установить или обновить"
},
"mods-grid": {
"header-bar": {
"name": "Имя",
"installed": "Установлено",
"latest": "Latest",
"description": "Описание",
"dropdown": {
"uninstall-all": "Удалить всё"
}
}
}
},
"dropdown": {
"open-folder": "Открыть папку",
"verify-files": "Проверить файлы",
"clone": "Клонировать",
"edit": "Редактировать",
"uninstall": "Удалить",
"create-shortcut": "Создать ярлык",
"shared-folders": "Общие папки"
}
},
"available-versions": {
"title": "Выберите версию",
"steam-release": "Список изменений",
"dropdown": {
"refresh": "Обновить список",
"import-version": "Импорт версии"
}
},
"settings": {
"steam": {
"title": "Steam",
"description": "Если вы выйдете из Steam, вам придётся снова войти, если вы хотите скачать другие версии Beat Saber.",
"logout": "Выйти"
},
"appearance": {
"title": "Персонализация",
"description": "Выберите два основных цвета для BSManager.",
"reset": "Сброс",
"sub-title": "Тема",
"themes": {
"dark": "Тёмная",
"light": "Светлая",
"os": "Как на компьютере"
}
},
"installation-folder": {
"title": "Папка установок",
"description": "Измените стандартную папку, где будут версии Beat Saber и прочее.",
"choose-folder": "Изменить папку"
},
"additional-content": {
"title": "Дополнительный контент",
"description": "Дополнительный контент для кастомизации Beat Saber!",
"deep-links": {
"sub-title": "OneClick установка"
}
},
"language": {
"title": "Язык",
"description": "Выберите язык.",
"languages": {
"en-EN": "English, UK",
"en-US": "English, US",
"fr-FR": "Français",
"es-ES": "Español",
"de-DE": "Deutsch",
"ru-RU": "Русский",
"translated": {
"en-EN": "Английский, Великобритания",
"en-US": "Английский, США",
"fr-FR": "Французский",
"es-ES": "Испанский",
"de-DE": "Немецкий",
"ru-RU": "Русский"
}
}
},
"patreon": {
"title": "Поддержи BSManager 💖",
"description": "Поддержи проект, чтобы мы могли дальше улучшать BSManager.",
"buttons": {
"support": "Поддержать BSManager 🥰",
"supporters": "Поддержавшие 👀"
},
"view": {
"no-supporters": "Пока нет поддержавших",
"sponsors": "Спонсоры",
"supporters": "Поддержавшие"
}
},
"discord": {
"description": "Присоединяйся к сообществу BSManager в социальных сетях!"
},
"contribution": {
"description": "Предложите улучшения или сообщите о баге!",
"buttons": {
"request-features": "Предложить улучшение",
"report-bug": "Сообщить о баге",
"open-logs": "Открыть логи"
}
}
}
},
"notifications": {
"types": {
"error": "🚨 Ошибка",
"warning": "⚠️ Предупреждение",
"success": "🎉 Успех"
},
"common": {
"msg": {
"error-occurred": "Возникла ошибка"
}
},
"shared": {
"errors": {
"titles": {
"operation-running": "Операция в процессе",
"no-internet": "Нет интернета"
},
"msg": {
"operation-running": "Дождитесь завершения операции, потом попробуйте снова.",
"no-internet": "Проверьте своё соединение и попробуйте снова."
}
}
},
"bs-download": {
"success": {
"titles": {
"download-success": "Скачивание завершено",
"verification-finished": "Проверка завершена"
}
},
"warnings": {
"msg": {
"ManifestChecksum": "Предыдущий файл манифесте не совпадает с новым 🤔",
"ConnectionTimeout": "У вас нестабильное соединение с интернетом 🥶",
"ConnectionLost": "Соединение потеряно, попробуйте снова...",
"ConnectionError": "Не удалось подключиться к Steam, попробуйте снова...",
"Unknown": "Что-то странное произошло 🤔 Возможно ваш интернет барахлит."
}
},
"errors": {
"titles": {
"dotnet-required": "Требуется .NET 6"
},
"msg": {
"401": "Похоже Steam не хочет, чтобы мы скачали Beat Saber 😢",
"404": "Нет связи с серверами Steam.",
"Password": "Неверный пароль.",
"InvalidCredentials": "Неверные учетные данные для входа, неразрешенное соединение или слишком много попыток входа.",
"NoManifest": "Файл манифеста не найден",
"DirectoryCreate": "Не смогли создать нужные папки.",
"NotAvailableApp": "Вы пытаетесь скачать Beat Saber, не купив её? 🤣",
"DepotNotFound": "Не удалось скачать Beat Saber 😥 повторите попытку позже 😕",
"NotCompleted": "Скачивание не завершилось ¯\\_(ツ)_/¯",
"InvalidManifest": "Не удалось скачать Beat Saber 😥 повторите попытку позже 😕",
"NoValidKey": "Не удалось скачать Beat Saber 😥 повторите попытку позже 😕",
"NoManifestCode": "Не удалось скачать Beat Saber 😥 повторите попытку позже 😕",
"Unknown": "Неизвестная ошибка ¯\\_(ツ)_/¯",
"NoServer": "Нет связи с серверами Steam.",
"NotAllowed": "Внезапно, вы не можете скачать Beat Saber 🥱",
"ConnectionTimeout": "Не удалось подключиться к Steam 😕",
"SteamLib": "Если вы это видите, пожалуйста, сообщите о баге на GitHub с файлом логов.",
"ConnectionError": "Не удалось подключиться к Steam за 10 попыток 🤯",
"LicenceError": "Не удалось проверить наличие лицензии.",
"RateLimitExceeded": "Слишком много попыток, вернитесь позже и попробуйте снова.",
"TokenRejected": "Ваш токен для входа был отклонен 😕 Пожалуйста, попробуйте снова.",
"AccessDenied": "Доступ к Steam был отклонен.",
"dotnet-required": "Среда запуска .NET 6 должна быть установлена, чтобы скачать Beat Saber. Скачайте её с помощью кнопки ниже."
},
"actions": {
"download-dotnet": "Скачать .NET 6"
}
}
},
"bs-import-version": {
"success": {
"start-import": {
"title": "Импортируем 👌",
"desc": "Импорт может занять какое-то время в зависимости от вашего компьютера."
},
"imported": {
"title": "Версия импортирована 🎉"
}
},
"errors": {
"import-error": {
"desc": "Убедитесь, что выбранная папка - это корневая папка Beat Saber."
}
}
},
"settings": {
"move-folder": {
"success": {
"titles": {
"transfer-started": "Перемещение в процессе",
"transfer-finished": "Перемещение завершено"
},
"descs": {
"transfer-started": "Перемещение может занять какое-то время в зависимости от вашего компьютера."
}
},
"errors": {
"titles": {
"transfer-failed": "Ошибка перемещения 😕"
},
"descs": {
"COPY_TO_SUBPATH": "The destination folder cannot be a subfolder of the source folder.",
"restore-linked-folders": "Произошла ошибка при перемещении общих папок. Вы сами можете переместить файлы, нажмите 'Общие папки' в меню версии."
}
}
},
"steam": {
"success": {
"titles": {
"logout": "Вышли из Steam."
}
}
},
"additional-content": {
"deep-link": {
"select-all": "Выбрать всё",
"activation": {
"success": {
"title": "OneClick включена!",
"description": "OneClick установка теперь включена."
},
"error": {
"description": "Не удалось включить OneClick установку."
}
},
"deactivation": {
"success": {
"title": "OneClick выключена!",
"description": "OneClick установка теперь отключена."
},
"error": {
"description": "Неизвестная ошика."
}
},
"check-all-enabled": {
"title": "OneClick отключен",
"description": "Один или более вариантов OneClick установок отключены. Перейдите в настройки, чтобы включить их.",
"actions": {
"settings": "Настройки",
"not-remind": "Больше не напоминать"
}
}
}
}
},
"bs-launch": {
"success": {
"titles": {
"BS_LAUNCHING": "Запуск...🚀",
"STEAM_LAUNCHING": "Steam запускается!"
},
"msg": {
"BS_LAUNCHING": "Не забудьте разогреться 😉",
"STEAM_LAUNCHING": "Beat Saber запустится сам после Steam."
}
},
"errors": {
"titles": {
"UNKNOWN_ERROR": "Не удалось запустить",
"STEAM_NOT_RUNNING": "Steam не запущен",
"OCULUS_NOT_RUNNING": "Oculus не запущен",
"BS_ALREADY_RUNNING": "Beat Saber уде запущен",
"EXE_NOT_FINDED": "Отсутствуют файлы",
"EXIT": "Вылет"
},
"msg": {
"UNKNOWN_ERROR": "Возникла неизвестная ошибка.",
"STEAM_NOT_RUNNING": "Steam должен быть запущен, чтобы запустить BeatSaber.",
"OCULUS_NOT_RUNNING": "Oculus должен быть запущен, чтобы запустить BeatSaber.",
"BS_ALREADY_RUNNING": "Закройте BeatSaber, чтобы запустить его.",
"EXE_NOT_FINDED": "Некоторые файлы отсутствуют, пробуем их проверить.",
"EXIT": "BeatSaber вылетел, пытаемся проверить файлы."
},
"actions": {
"STEAM_NOT_RUNNING": "Запустить Steam"
}
}
},
"steam": {
"steam-launching": {
"title": "Steam запускается!",
"description": "Beat Saber запустится сам после Steam."
}
},
"custom-version": {
"errors": {
"titles": {
"CantEditSteam": "Не удалось изменить",
"CantRename": "Переименование невозможно",
"VersionAlreadExist": "Эта версия уже добавлена",
"CantClone": "Клонирование невозможно"
},
"msg": {
"CantEditSteam": "Вы не можете изменить версию из Steam, но вы можете её клонировать."
}
},
"success": {
"titles": {
"CloningFinished": "Клонирование завершено 🎉"
}
}
},
"mods": {
"install-mods": {
"titles": {
"success": "Моды установлены 🎉",
"warning": "Моды установлены 🤔"
},
"msg": {
"success": "Все моды были установлены.",
"warning": "Лишь часть модов была установлена.",
"errors": {
"no-mods": "Нет модов для установки.",
"cannot-install-bsipa": "Ошибка установки BSIPA 😨"
}
}
},
"uninstall-mod": {
"titles": {
"success": "Мод удалён 🎉"
},
"msg": {
"errors": {
"no-mods": "Этот мод не установлен 😑"
}
}
},
"uninstall-all-mods": {
"titles": {
"success": "Моды удалены 🎉"
},
"msg": {
"success": "Все моды были удалены.",
"errors": {
"no-mods": "Для этой версии не было установлено модов 😑"
}
}
}
},
"maps": {
"one-click-install": {
"success": "Карта установлена",
"error": "Ошибка установки карты"
}
},
"playlists": {
"one-click-install": {
"success": "Плейлист установлен",
"error": "Ошибка установки плейлиста"
}
},
"models": {
"one-click-install": {
"success": "Модель установлена",
"error": "Ошибка установки модели"
}
},
"shared-folder": {
"info": {
"userdata-backup-created": {
"title": "Бэкап создан",
"msg": "Общая папка 'UserData' может создавать ошибки. В случае проблем отвяжите папку, чтобы восстановить бэкап."
}
}
},
"create-launch-shortcut": {
"success": {
"title": "Ярлык создан",
"msg": "Ярлык находится на рабочем столе."
},
"error": {
"msg": "Ошибка создания ярлыка."
}
}
},
"modals": {
"misc": {
"remember-my-choice": "Запомнить выбор"
},
"guard": {
"title": "Steam Guard",
"inputs": {
"guard-code": {
"label": "Код Steam Guard",
"placeholder": "Введите код Steam Guard"
}
},
"buttons": {
"submit": "Войти"
}
},
"steam-login": {
"title": "Вход в Steam",
"inputs": {
"username": {
"label": "Войти с именем пользователя",
"placeholder": "Введите ваше имя пользователя"
},
"password": {
"label": "Пароль",
"placeholder": "Введите ваш пароль",
"max-length-warning": "Пароль превышает 64 символа! Если пароль недействителен, попробуйте ввести только его первые 64 символа."
},
"qr":{
"label": "Или с QR-кодом",
"note":{
"use-the":"Используйте ",
"steam-mobile-app": "мобильное приложение Steam",
"to-connect-with-qr": "для входа с QR-кодом."
}
},
"stay": "Запомнить меня"
},
"why-credentials": "Зачем мне нужны учетные данные?",
"need-help-to-connect": "Мне нужна помощь, чтобы войти в свой аккаунт!",
"buttons": {
"submit": "Войти"
}
},
"steam-auth-approve":{
"title": "Ожидание подтверждения",
"protected-by-mobile-auth": "Учетная запись защищена мобильным аутентификатором.",
"use-steam-app-to-approve": "Используйте мобильное приложение Steam для подтверждения подключения...",
"not-access-to-steam-app": "У меня нет доступа к мобильному приложению Steam"
},
"steam-credentials": {
"title": "Данные входа Steam",
"p-1": "Данные входа используются только при скачивании, чтобы проверить наличие у вас Beat Saber, это нужно Steam, чтобы разрешить скачивание. Они не сохраняются и напрямую передаются в DepotDownloader. Если вы не хотите вводить данные для входа, воспользуйтесь руководством(Оно на английском языке) :",
"p-2": "Нажмите на шестерню справа вверху и выберите \"Импорт версии\", выберите папку со скачанным Beat Saber (Если вы воспользовались руководством, у вас должен быть корректный путь к папке)"
},
"bs-import-version": {
"title": "Импорт версии",
"description": "Импортировать версию Beat Saber, чтобы использоваться BSManager. Beat Saber будет скопирован в папку версий BSManager.",
"buttons": {
"submit": "Импортировать версию"
}
},
"bs-uninstall": {
"title": "Удалить",
"description": "Вы действительно хотите удалить Beat Saber {version}? Вам нужно будет снова её скачать, чтобы поиграть.",
"buttons": {
"submit": "Удалить"
}
},
"install-folder": {
"title": "Папка установок",
"description": "Все данные будут перемещены в новую папку.",
"buttons": {
"submit": "Выбрать папку"
}
},
"edit-version": {
"title": "Изменить версию",
"buttons": {
"submit": "Изменить"
}
},
"clone-version": {
"title": "Клонировать версию",
"description": "Клонирование версий позволит вам установить разный контент для каждой копии Beat Saber.",
"inputs": {
"name": {
"label": "Имя",
"placeholder": "Имя версии"
},
"color": {
"label": "Цвет"
}
},
"buttons": {
"submit": "Клонировать"
}
},
"uninstall-mod": {
"title": "Удаление мода",
"description": "Вы точно хотите удалить {mod}? Другие моды могут перестать работать.",
"description-bsipa": "AВы точно хотите удалить BSIPA? Все моды перестануть работать."
},
"uninstall-all-mods": {
"title": "Удаление всех модов",
"description": "Вы точно хотите удалить все моды для версии {version}? Это необратимое действие."
},
"maps-actions": {
"delete-maps": {
"title": {
"single": "Удалить карту?",
"multiple": "Удалить карты?"
},
"desc": {
"single": "Вы точно хотите удалить карту {name}?",
"multiple": "Вы точно хотите удалить {nb} карт(ы)?"
},
"info": {
"desc": {
"single": "Это общая карта",
"multiple": "Это общие карты"
},
"title": {
"single": "Эта карта будет удалена из всех версий, использующих общие карты",
"multiple": "Эти карты будут удалены из всех версий, использующих общие карты"
}
}
},
"link-maps": {
"title": "Связать карты",
"desc": "Общие карты доступны во всех версиях игры с этой функцией. Пока связь есть, эта версия будет иметь общие карты.",
"info": "Добавление и удаление карт так же будут общими",
"keep-maps": {
"label": "Оставить карты",
"title": "Все карты из этой версии станут общими. Если не включить, то карты этой версии будут потеряны."
},
"valid-btn": "Связать карты"
},
"unlink-maps": {
"title": "Отвязать карты",
"desc": "Осторожно, отвязка карт сделает недоступными общие карты для этой версии, пока вы не свяжете их снова.",
"keep-maps": {
"label": "Оставить карты",
"title": "Общие карты будут скопированы в папку карт этой версии. Карты не будут потеряны, если это не выбрано."
},
"valid-btn": "Отвязать карты"
}
},
"download-maps": {
"search-btn": "Поиск",
"loading-maps": "Загрузка карт...",
"no-maps-found": "Карты не найдены",
"no-internet": "Нет интернета"
},
"mods-disclaimer": {
"title": "внимание",
"p-1": "Играя с модами, вы соглашаетесь, что:",
"li-1": "У вам могут быть проблемы, которых нет в оригинальной игре. 99.9% багов, вылетов и лагов из-за модов.",
"li-2": "Моды могут быть несовместимы с обновлениями и это норма - будьте терпеливы и уважайте мододелов, они волонтёры со своими личными жизнями.",
"li-3": "Beat Games не специально ломают моды. Они лишь обновляют код, что иногда ломает коды. Они не хотят уничтожить моды",
"p-2": "Не спамьте разработчикам игры из-за проблем с модами и наоборот - мододелы и разработчики игры - разные группы людей. Не будьте идиотами."
},
"shared-folders": {
"title": "Общие папки",
"description": "Свяжите папки Beat Saber, чтобы они стали общими и их содержимое было в других версиях. Заметьте, что удаление файлов так же будет общим.",
"buttons": {
"add-folder": "Добавить папку",
"link-folder": "Связать папку",
"unlink-folder": "Отвязать папку",
"link-all": "Связать всё"
}
},
"create-launch-shortcut": {
"title": "Создать ярлык",
"desc": "Ярлык позволит вам запустить Beat Saber без помощи BSManager.",
"launch-options": "Параметры запуска",
"advanced-launch": "Расширенный запуск",
"valid-btn": "Создать ярлык"
}
},
"maps": {
"map-filter-panel": {
"duration": "Длительность",
"tags": "тэги",
"specificities": "основное",
"requirements": "требуемые моды"
},
"map-types": {
"accuracy": "точность",
"balanced": "баланс",
"challenge": "испытание",
"dancestyle": "танец",
"fitness": "фитнес",
"speed": "скорость",
"tech": "техника"
},
"map-styles": {
"dance": "танец",
"swing": "свинг",
"nightcore": "найткор",
"folk": "народные",
"family": "семейные",
"ambient": "эмбиент",
"funk": "фанк",
"jazz": "джаз",
"soul": "соул",
"speedcore": "спидкор",
"punk": "панк",
"rb": "ар-н-би",
"holiday": "праздник",
"vocaloid": "вокалоиды",
"jrock": "джей-рок",
"trance": "транс",
"drumbass": "драм-н-бейс",
"comedy": "комедия",
"instrumental": "инструментальные",
"hardcore": "хардкор",
"kpop": "кей-поп",
"indie": "инди",
"techno": "техно",
"house": "хаус",
"game": "видеоигры",
"film": "фильмы",
"alt": "альтернативные",
"dubstep": "дапстеп",
"metal": "метал",
"anime": "аниме",
"hiphop": "хипхоп",
"jpop": "джей-поп",
"rock": "прк",
"pop": "поп",
"electronic": "электроника",
"classical-orchestral": "Классика и Оркестр"
},
"map-specificities": {
"automapper": "ИИ",
"ranked": "с рейтингом",
"curated": "оценённые куратором",
"verified": "проверенные авторы",
"fullSpread": "полный набор"
},
"difficulties": {
"Easy": "легко",
"Normal": "нормально",
"Hard": "сложно",
"Expert": "эксперт",
"ExpertPlus": "эксперт+"
},
"map-item": {
"by": "От {songAutor}",
"mapped-by": "автор карты "
}
},
"models": {
"types": {
"singular": {
"avatar": "аватар",
"saber": "мечь",
"platform": "платформа",
"bloq": "куб"
},
"plural": {
"avatar": "аватары",
"saber": "мечи",
"platform": "платформы",
"bloq": "кубы"
}
},
"sorts": {
"name": "Имя",
"date": "Дата",
"author": "Автор"
},
"panel": {
"actions": {
"search": "Поиск скачанных моделей",
"drop-down": {
"delete": "Удалить модели",
"export": "Экспорт моделей"
},
"link-models": "Связать модели",
"unlink-models": "Отвязать модели"
},
"grid": {
"loading": "Загрузка моделей...",
"no-models": "Нет моделей",
"download-models": "Скачать модели"
}
},
"modals": {
"delete-model": {
"title": "Удалить модель",
"desc": "Вы уверены, что хотите удалить модель {modelName}?",
"linked-annotation": "Эта модель будет удалена из всех соединённых версий."
},
"delete-models": {
"title": "Удалить модели",
"desc": "Вы уверены, что хотите удалить {nb} модели(ей)?",
"linked-annotation": "Эти модели будут удалены из всех соединённых версий."
},
"download-models": {
"search-btn": "Поиск",
"search-placeholder": "Поиск моделей",
"search-tips": {
"header": {
"tag": "Тэги",
"desc": "Описание"
},
"author-desc": "Показывать модели только от определённого автора.",
"hash-desc": "Показывать модели только с определённым хэшом.",
"tag-desc": "Показывать модели только с определённым тэгом.",
"name-desc": "Показывать модели только с определённым именем.",
"discordid-desc": "Показывать модели только от определённого пользователя Discord.",
"status-desc": "Показывать модели только с определённым статусом. (только профиль, и только для авторов)"
},
"no-models": "Модели не найдены.",
"no-internet": "Нет интернета.",
"error-occured": "Ошибка, повторите попытку позже."
},
"link-models": {
"avatar": {
"title": "Связать аватары",
"desc": "Общие аватары доступны во всех версиях игры с этой функцией. Пока связь есть, эта версия будет иметь общие аватары.",
"info": "Добавление и удаление аватаров так же будут общими",
"keep-models": {
"label": "Оставить аватары",
"title": "Все аватары из этой версии станут общими. Если не включить, то аватары этой версии будут потеряны."
},
"valid-btn": "Связать аватары"
},
"saber": {
"title": "Связать мечи",
"desc": "Общие мечи доступны во всех версиях игры с этой функцией. Пока связь есть, эта версия будет иметь общие мечи.",
"info": "Добавление и удаление мечей так же будут общими",
"keep-models": {
"label": "Оставить мечи",
"title": "Все мечи из этой версии станут общими. Если не включить, то мечи этой версии будут потеряны."
},
"valid-btn": "Связать мечи"
},
"platform": {
"title": "Связать платформы",
"desc": "Общие платформы доступны во всех версиях игры с этой функцией. Пока связь есть, эта версия будет иметь общие платформы.",
"info": "Добавление и удаление платформ так же будут общими",
"keep-models": {
"label": "Оставить платформы",
"title": "Все платформы из этой версии станут общими. Если не включить, то платформы этой версии будут потеряны."
},
"valid-btn": "Связать платформы"
},
"bloq": {
"title": "Связать кубы",
"desc": "Общие кубы доступны во всех версиях игры с этой функцией. Пока связь есть, эта версия будет иметь общие кубы.",
"info": "Adding and deleting bloqs will also be shared",
"keep-models": {
"label": "Оставить кубы",
"title": "Все кубы из этой версии станут общими. Если не включить, то кубы этой версии будут потеряны."
},
"valid-btn": "Связать кубы"
}
},
"unlink-models": {
"avatar": {
"title": "Отвязать аватары",
"desc": "Осторожно, отвязка аватаров сделает недоступными общие аватары для этой версии, пока вы не свяжете их снова.",
"keep-models": {
"label": "Оставить аватары",
"title": "Общие аватары будут скопированы в папку аватаров этой версии. Аватары не будут потеряны, если это не выбрано."
},
"valid-btn": "Отвязать аватары"
},
"saber": {
"title": "Отвязать мечи",
"desc": "Осторожно, отвязка мечей сделает недоступными общие мечи для этой версии, пока вы не свяжете их снова.",
"keep-models": {
"label": "Оставить мечи",
"title": "Общие мечи будут скопированы в папку мечей этой версии. Мечи не будут потеряны, если это не выбрано."
},
"valid-btn": "Отвязать мечи"
},
"platform": {
"title": "Отвязать платформы",
"desc": "Осторожно, отвязка платформ сделает недоступными общие платформы для этой версии, пока вы не свяжете их снова.",
"keep-models": {
"label": "Оставить платформы",
"title": "Общие платформы будут скопированы в папку платформ этой версии. Платформы не будут потеряны, если это не выбрано."
},
"valid-btn": "Отвязать платформы"
},
"bloq": {
"title": "Отвязать кубы",
"desc": "Осторожно, отвязка кубов сделает недоступными общие кубы для этой версии, пока вы не свяжете их снова.",
"keep-models": {
"label": "Оставить кубы",
"title": "Общие кубы будут скопированы в папку кубов этой версии. Кубы не будут потеряны, если это не выбрано."
},
"valid-btn": "Отвязать кубы"
}
}
},
"notifications": {
"prevent-for-mods": {
"title": "Требуемые моды",
"desc": "Убедитесь, что вы установили все нужные моды, чтобы использовать модели в Beat Saber",
"go-to-mods": "Перейти к модам",
"not-remind": "Больше не напоминать"
},
"prevent-for-models-breaks": {
"title": "Сломанные модели",
"desc": "После обновления движка Beat Saber, модели не работают с этой версией."
},
"export-success": {
"title": "Экспорт завершен 🎉"
}
}
},
"beat-saver": {
"maps-sorts": {
"Latest": "Недавние",
"Relevance": "Релевантные",
"Rating": "Рейтинг",
"Curated": "Оценённые куратором"
}
},
"auto-update": {
"checking": "Проверка на обновления",
"downloading": "Скачивание обновления"
},
"bs-shortcut-launch": {
"beat-saber-launching": "Запускается Beat Saber",
"launching": "Запуск",
"open-bsmanager": "Открыть BSManager",
"status-text": {
"init": "Инициализация...",
"success": {
"BS_LAUNCHING": "Запускаем Beat Saber...",
"STEAM_LAUNCHING": "Запускаем Steam...",
"STEAM_LAUNCHED": "Steam запущен!",
"UNABLE_TO_LAUNCH_STEAM": "Не удалось запустить Steam, пытаемся запустить Beat Saber..."
}
}
},
"dateformat": {
"dayNames": ["Вск", "Пнд", "Втр", "Срд", "Чтв", "Птн", "Суб", "Воскресение", "Понедельник", "Вторник", "Среда", "Четверг", "Пятница", "Суббота"],
"monthNames": ["Янв", "Фев", "Мар", "Апр", "Май", "Июн", "Июл", "Авн", "Сен", "Окт", "Ноя", "Дек", "Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"],
"timeNames": ["д", "п", "дп", "пп", "Д", "П", "ДП", "ПП"]
}
}
@@ -6,10 +6,11 @@
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"DepotDownloader/2.4.6": {
"DepotDownloader/2.5.0": {
"dependencies": {
"SteamKit2": "2.4.1",
"protobuf-net": "3.0.101"
"QRCoder": "1.4.3",
"SteamKit2": "2.5.0-Beta.1",
"protobuf-net": "3.2.16"
},
"runtime": {
"DepotDownloader.dll": {}
@@ -22,37 +23,60 @@
"System.Security.Principal.Windows": "5.0.0"
}
},
"protobuf-net/3.0.101": {
"protobuf-net/3.2.16": {
"dependencies": {
"protobuf-net.Core": "3.0.101"
"protobuf-net.Core": "3.2.16"
},
"runtime": {
"lib/net5.0/protobuf-net.dll": {
"lib/net6.0/protobuf-net.dll": {
"assemblyVersion": "3.0.0.0",
"fileVersion": "3.0.101.59408"
"fileVersion": "3.2.16.54102"
}
}
},
"protobuf-net.Core/3.0.101": {
"protobuf-net.Core/3.2.16": {
"dependencies": {
"System.Collections.Immutable": "7.0.0"
},
"runtime": {
"lib/net5.0/protobuf-net.Core.dll": {
"lib/net6.0/protobuf-net.Core.dll": {
"assemblyVersion": "3.0.0.0",
"fileVersion": "3.0.101.59408"
"fileVersion": "3.2.16.54102"
}
}
},
"SteamKit2/2.4.1": {
"QRCoder/1.4.3": {
"runtime": {
"lib/net6.0/QRCoder.dll": {
"assemblyVersion": "1.4.3.0",
"fileVersion": "1.4.3.0"
}
}
},
"SteamKit2/2.5.0-Beta.1": {
"dependencies": {
"Microsoft.Win32.Registry": "5.0.0",
"protobuf-net": "3.0.101"
"protobuf-net": "3.2.16"
},
"runtime": {
"lib/net6.0/SteamKit2.dll": {
"assemblyVersion": "2.4.1.0",
"fileVersion": "2.4.1.10"
"assemblyVersion": "2.5.0.0",
"fileVersion": "2.5.0.0"
}
}
},
"System.Collections.Immutable/7.0.0": {
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
},
"runtime": {
"lib/net6.0/System.Collections.Immutable.dll": {
"assemblyVersion": "7.0.0.0",
"fileVersion": "7.0.22.51805"
}
}
},
"System.Runtime.CompilerServices.Unsafe/6.0.0": {},
"System.Security.AccessControl/5.0.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "5.0.0",
@@ -63,7 +87,7 @@
}
},
"libraries": {
"DepotDownloader/2.4.6": {
"DepotDownloader/2.5.0": {
"type": "project",
"serviceable": false,
"sha512": ""
@@ -82,26 +106,47 @@
"path": "microsoft.win32.registry/5.0.0",
"hashPath": "microsoft.win32.registry.5.0.0.nupkg.sha512"
},
"protobuf-net/3.0.101": {
"protobuf-net/3.2.16": {
"type": "package",
"serviceable": true,
"sha512": "sha512-mLm8VGfGylp9q+rbJDp3uw0BOeNzfGENecVz/EYGlzq3ss7tfajGXHCMoZm/GxJ9vSn9pcK22UXWZnQ5GJQMjA==",
"path": "protobuf-net/3.0.101",
"hashPath": "protobuf-net.3.0.101.nupkg.sha512"
"sha512": "sha512-W6RM2B2f5O7SigBGfkXFYzI/a7Mks+rCHtuGlE/b5O3NMupDon7I0akjCLhrfcnqIfdWDkDafseav/MnIzUSHA==",
"path": "protobuf-net/3.2.16",
"hashPath": "protobuf-net.3.2.16.nupkg.sha512"
},
"protobuf-net.Core/3.0.101": {
"protobuf-net.Core/3.2.16": {
"type": "package",
"serviceable": true,
"sha512": "sha512-gf9QIF0RlctfjmOjbE6eOyMulkNEsH7tHncjKj/4BTu9tkuTyrH3fv5I+35GnolJqKJ6fh9kYaezvNRL3t75+Q==",
"path": "protobuf-net.core/3.0.101",
"hashPath": "protobuf-net.core.3.0.101.nupkg.sha512"
"sha512": "sha512-ZFoY0lfMUWGJ4RoyI0oNj2o2l8t08n3k27YyDD0kYWQ+vXj0hTbWEwYWOpGAfCWvyUPkq9Jcc/4uR74GICZL2g==",
"path": "protobuf-net.core/3.2.16",
"hashPath": "protobuf-net.core.3.2.16.nupkg.sha512"
},
"SteamKit2/2.4.1": {
"QRCoder/1.4.3": {
"type": "package",
"serviceable": true,
"sha512": "sha512-t9yptysn/2YY6KZaI123vOOnumS+ZCFcC6MhFEkTiQ04mdpZ/EWhk5RVY7jU36IQHyTQUXotmn7taKFCXMKp4g==",
"path": "steamkit2/2.4.1",
"hashPath": "steamkit2.2.4.1.nupkg.sha512"
"sha512": "sha512-fWuFqjm8GTlEb2GqBl3Hi8HZZeZQwBSHxvRPtPjyNbT82H0ff0JwavKRBmMaXCno1Av6McPC8aJzri0Mj2w9Jw==",
"path": "qrcoder/1.4.3",
"hashPath": "qrcoder.1.4.3.nupkg.sha512"
},
"SteamKit2/2.5.0-Beta.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-fwwdF0cZZEIdNpcUc1+B9zbP5Q48A3DFOAclPhBh2dMTU03aROaIDktFW+Ww/NN1Z/Emp/LwVqHB+hCM8uxS4Q==",
"path": "steamkit2/2.5.0-beta.1",
"hashPath": "steamkit2.2.5.0-beta.1.nupkg.sha512"
},
"System.Collections.Immutable/7.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-dQPcs0U1IKnBdRDBkrCTi1FoajSTBzLcVTpjO4MBCMC7f4pDOIPzgBoX8JjG7X6uZRJ8EBxsi8+DR1JuwjnzOQ==",
"path": "system.collections.immutable/7.0.0",
"hashPath": "system.collections.immutable.7.0.0.nupkg.sha512"
},
"System.Runtime.CompilerServices.Unsafe/6.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==",
"path": "system.runtime.compilerservices.unsafe/6.0.0",
"hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512"
},
"System.Security.AccessControl/5.0.0": {
"type": "package",
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+33593 -32829
View File
File diff suppressed because it is too large Load Diff
+305 -295
View File
@@ -1,301 +1,311 @@
{
"name": "bs-manager",
"description": "Manage maps, mods and more for Beat Saber",
"scripts": {
"build": "concurrently \"npm run build:main\" \"npm run build:renderer\"",
"build:main": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.main.prod.ts",
"build:renderer": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.prod.ts",
"rebuild": "electron-rebuild --parallel --types prod,dev,optional --module-dir release/app",
"lint": "cross-env NODE_ENV=development eslint . --ext .js,.jsx,.ts,.tsx",
"package": "ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build --publish never",
"postinstall": "ts-node .erb/scripts/check-native-dep.js && electron-builder install-app-deps && cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.dev.dll.ts && opencollective-postinstall",
"start": "ts-node ./.erb/scripts/check-port-in-use.js && npm run start:renderer",
"start:main": "cross-env NODE_ENV=development electronmon -r ts-node/register/transpile-only ./src/main/main.ts",
"start:preload": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.preload.dev.ts",
"start:renderer": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack serve --config ./.erb/configs/webpack.config.renderer.dev.ts",
"test": "jest",
"publish": "npm run build && electron-builder --publish always --win --x64"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"cross-env NODE_ENV=development eslint --cache"
],
"*.json,.{eslintrc,prettierrc}": [
"prettier --ignore-path .eslintignore --parser json --write"
],
"*.{css,scss}": [
"prettier --ignore-path .eslintignore --single-quote --write"
],
"*.{html,md,yml}": [
"prettier --ignore-path .eslintignore --single-quote --write"
]
},
"build": {
"extraResources": [
"./assets/**"
],
"productName": "BSManager",
"appId": "org.erb.BSManager",
"asar": false,
"asarUnpack": "**\\*.{node,dll}",
"files": [
"dist/**/*",
"node_modules",
"package.json"
],
"afterSign": ".erb/scripts/notarize.js",
"mac": {
"target": {
"target": "default",
"arch": [
"arm64",
"x64"
]
},
"type": "distribution",
"hardenedRuntime": true,
"entitlements": "assets/entitlements.mac.plist",
"entitlementsInherit": "assets/entitlements.mac.plist",
"gatekeeperAssess": false
"name": "bs-manager",
"description": "Manage maps, mods and more for Beat Saber",
"scripts": {
"build": "concurrently \"npm run build:main\" \"npm run build:renderer\"",
"build:main": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.main.prod.ts",
"build:renderer": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.prod.ts",
"rebuild": "electron-rebuild --parallel --types prod,dev,optional --module-dir release/app",
"lint": "cross-env NODE_ENV=development eslint . --ext .js,.jsx,.ts,.tsx",
"package": "ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build --publish never",
"postinstall": "ts-node .erb/scripts/check-native-dep.js && electron-builder install-app-deps && cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.dev.dll.ts && opencollective-postinstall",
"start": "ts-node ./.erb/scripts/check-port-in-use.js && npm run start:renderer",
"start:main": "cross-env NODE_ENV=development electronmon -r ts-node/register/transpile-only ./src/main/main.ts",
"start:preload": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.preload.dev.ts",
"start:renderer": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack serve --config ./.erb/configs/webpack.config.renderer.dev.ts",
"test": "jest",
"publish": "npm run build && electron-builder -c.win.certificateSha1=842a817a51e2a1d360fcd62f54bf5f9193e919e1 --publish always --win --x64"
},
"dmg": {
"contents": [
{
"x": 130,
"y": 220
},
{
"x": 410,
"y": 220,
"type": "link",
"path": "/Applications"
}
]
},
"win": {
"target": [
"nsis",
"nsis-web"
],
"icon": "assets/favicon.ico",
"certificateSha1": "f3363a89b084f8f6b616babea3c91f9d79e15000"
},
"linux": {
"target": [
"AppImage"
],
"category": "Development"
},
"directories": {
"app": "release/app",
"buildResources": "assets",
"output": "release/build"
},
"publish": {
"provider": "github",
"owner": "Zagrios"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/Zagrios/bs-manager.git"
},
"author": {
"name": "Zagrios",
"email": "peroz.mathieu@gmail.com",
"url": "https://github.com/Zagrios"
},
"contributors": [],
"license": "MIT",
"bugs": {
"url": "https://github.com/Zagrios/bs-manager/issues"
},
"keywords": [
"downgrade",
"launcher-application",
"beatsaber",
"beat-saber"
],
"homepage": "https://github.com/Zagrios/bs-manager#readme",
"jest": {
"testURL": "http://localhost/",
"testEnvironment": "jsdom",
"transform": {
"\\.(ts|tsx|js|jsx)$": "ts-jest"
},
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/.erb/mocks/fileMock.js",
"\\.(css|less|sass|scss)$": "identity-obj-proxy"
},
"moduleFileExtensions": [
"js",
"jsx",
"ts",
"tsx",
"json"
],
"moduleDirectories": [
"node_modules",
"release/app/node_modules"
],
"testPathIgnorePatterns": [
"release/app/dist"
],
"setupFiles": [
"./.erb/scripts/check-build-exists.ts"
]
},
"devDependencies": {
"@pmmmwh/react-refresh-webpack-plugin": "0.5.5",
"@teamsupercell/typings-for-css-modules-loader": "^2.5.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.3.0",
"@types/archiver": "^5.3.1",
"@types/dateformat": "^5.0.0",
"@types/jest": "^27.5.2",
"@types/node": "17.0.23",
"@types/node-fetch": "^2.6.3",
"@types/react": "^18.0.33",
"@types/react-dom": "^18.0.11",
"@types/react-outside-click-handler": "^1.3.1",
"@types/react-test-renderer": "^17.0.2",
"@types/react-virtualized-auto-sizer": "^1.0.1",
"@types/react-window": "^1.8.5",
"@types/recursive-readdir": "^2.2.1",
"@types/terser-webpack-plugin": "^5.0.4",
"@types/use-double-click": "^1.0.1",
"@types/webpack-bundle-analyzer": "^4.4.2",
"@types/webpack-env": "^1.18.0",
"@typescript-eslint/eslint-plugin": "^5.34.0",
"@typescript-eslint/parser": "^5.34.0",
"autoprefixer": "^10.4.8",
"browserslist-config-erb": "^0.0.3",
"chalk": "^4.1.2",
"concurrently": "^7.2.2",
"core-js": "^3.24.1",
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^4.1.0",
"detect-port": "^1.3.0",
"electron": "^24.3.1",
"electron-builder": "^23.6.0",
"electron-devtools-installer": "^3.2.0",
"electron-notarize": "^1.2.1",
"electron-rebuild": "^3.2.9",
"electronmon": "^2.0.2",
"eslint": "^8.22.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-erb": "^4.0.3",
"eslint-import-resolver-typescript": "^2.7.1",
"eslint-import-resolver-webpack": "^0.13.2",
"eslint-plugin-compat": "^4.0.2",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.8.7",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.6.0",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.5.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^27.5.1",
"lint-staged": "^12.5.0",
"mini-css-extract-plugin": "^2.6.1",
"opencollective-postinstall": "^2.0.3",
"postcss": "^8.4.16",
"postcss-loader": "^6.2.1",
"prettier": "^2.7.1",
"ps-scrollbar-tailwind": "0.0.1",
"react-refresh": "^0.12.0",
"react-refresh-typescript": "^2.0.7",
"react-test-renderer": "^18.2.0",
"rimraf": "^3.0.2",
"sass": "^1.54.5",
"sass-loader": "^12.6.0",
"style-loader": "^3.3.1",
"tailwind-scrollbar": "^2.0.1",
"tailwindcss": "^3.3.1",
"terser-webpack-plugin": "^5.3.5",
"ts-jest": "^27.1.5",
"ts-loader": "^9.3.0",
"ts-node": "^10.8.2",
"typescript": "^4.7.4",
"url-loader": "^4.1.1",
"webpack": "^5.74.0",
"webpack-bundle-analyzer": "^4.6.1",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.10.0",
"webpack-merge": "^5.8.0"
},
"dependencies": {
"@node-steam/vdf": "^2.2.0",
"@tippyjs/react": "^4.2.6",
"@types/color": "^3.0.3",
"archiver": "^5.3.1",
"color": "^4.2.3",
"dateformat": "^5.0.3",
"dot-prop": "^8.0.0",
"electron-debug": "^3.2.0",
"electron-log": "^4.4.8",
"electron-store": "^8.1.0",
"electron-updater": "^6.0.3",
"fast-deep-equal": "^3.1.3",
"framer-motion": "^10.12.16",
"fs-extra": "^11.1.1",
"history": "^5.3.0",
"is-online": "^9.0.1",
"jszip": "^3.10.1",
"md5-file": "^5.0.0",
"node-fetch": "^2.6.7",
"node-stream-zip": "^1.15.0",
"react": "^18.2.0",
"react-colorful": "^5.6.1",
"react-dom": "^18.2.0",
"react-range": "^1.8.14",
"react-router-dom": "^6.3.0",
"react-virtualized-auto-sizer": "^1.0.12",
"react-window": "^1.8.8",
"recursive-readdir": "^2.2.3",
"regedit": "^5.1.2",
"rfdc": "^1.3.0",
"rxjs": "^7.8.0",
"sanitize-filename": "^1.6.3",
"semver": "^7.5.1",
"striptags": "^4.0.0-alpha.4",
"tailwind-scrollbar-hide": "^1.1.7",
"tailwindcss-scoped-groups": "^2.0.0",
"tippy.js": "^6.3.7",
"use-double-click": "^1.0.5",
"use-fit-text": "^2.4.0"
},
"devEngines": {
"node": ">=14.x",
"npm": ">=7.x"
},
"collective": {
"url": "https://www.patreon.com/bsmanager"
},
"browserslist": [],
"prettier": {
"overrides": [
{
"files": [
".prettierrc",
".eslintrc"
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"cross-env NODE_ENV=development eslint --cache"
],
"options": {
"parser": "json"
"*.json,.{eslintrc,prettierrc}": [
"prettier --ignore-path .eslintignore --parser json --write"
],
"*.{css,scss}": [
"prettier --ignore-path .eslintignore --single-quote --write"
],
"*.{html,md,yml}": [
"prettier --ignore-path .eslintignore --single-quote --write"
]
},
"build": {
"extraResources": [
"./assets/**"
],
"productName": "BSManager",
"appId": "org.erb.BSManager",
"asarUnpack": "**\\*.{node,dll}",
"files": [
"dist/**/*",
"node_modules",
"package.json"
],
"afterSign": ".erb/scripts/notarize.js",
"mac": {
"target": {
"target": "default",
"arch": [
"arm64",
"x64"
]
},
"type": "distribution",
"hardenedRuntime": true,
"entitlements": "assets/entitlements.mac.plist",
"entitlementsInherit": "assets/entitlements.mac.plist",
"gatekeeperAssess": false
},
"dmg": {
"contents": [
{
"x": 130,
"y": 220
},
{
"x": 410,
"y": 220,
"type": "link",
"path": "/Applications"
}
]
},
"win": {
"target": [
"nsis",
"nsis-web"
],
"icon": "assets/favicon.ico"
},
"linux": {
"target": [
"AppImage"
],
"category": "Development"
},
"directories": {
"app": "release/app",
"buildResources": "assets",
"output": "release/build"
},
"publish": {
"provider": "github",
"owner": "Zagrios"
}
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/Zagrios/bs-manager.git"
},
"author": {
"name": "Zagrios",
"email": "peroz.mathieu@gmail.com",
"url": "https://github.com/Zagrios"
},
"contributors": [],
"license": "MIT",
"bugs": {
"url": "https://github.com/Zagrios/bs-manager/issues"
},
"keywords": [
"downgrade",
"launcher-application",
"beatsaber",
"beat-saber"
],
"singleQuote": true
},
"electronmon": {
"patterns": [
"!src/__tests__/**",
"!release/**",
"!assets/**"
],
"logLevel": "quiet"
}
"homepage": "https://github.com/Zagrios/bs-manager#readme",
"jest": {
"testURL": "http://localhost/",
"testEnvironment": "jsdom",
"transform": {
"\\.(ts|tsx|js|jsx)$": "ts-jest"
},
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/.erb/mocks/fileMock.js",
"\\.(css|less|sass|scss)$": "identity-obj-proxy"
},
"moduleFileExtensions": [
"js",
"jsx",
"ts",
"tsx",
"json"
],
"moduleDirectories": [
"node_modules",
"src"
],
"testPathIgnorePatterns": [
"release/app/dist"
],
"setupFiles": [
"./.erb/scripts/check-build-exists.ts"
]
},
"devDependencies": {
"@electron/rebuild": "^3.2.13",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.5",
"@teamsupercell/typings-for-css-modules-loader": "^2.5.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.3.0",
"@types/archiver": "^5.3.1",
"@types/color": "^3.0.3",
"@types/dateformat": "^5.0.0",
"@types/jest": "^27.5.2",
"@types/node": "17.0.23",
"@types/node-fetch": "^2.6.3",
"@types/react": "^18.0.33",
"@types/react-dom": "^18.0.11",
"@types/react-outside-click-handler": "^1.3.1",
"@types/react-test-renderer": "^17.0.2",
"@types/react-virtualized-auto-sizer": "^1.0.1",
"@types/react-window": "^1.8.5",
"@types/recursive-readdir": "^2.2.1",
"@types/terser-webpack-plugin": "^5.0.4",
"@types/to-ico": "^1.1.1",
"@types/use-double-click": "^1.0.1",
"@types/webpack-bundle-analyzer": "^4.4.2",
"@types/webpack-env": "^1.18.0",
"@typescript-eslint/eslint-plugin": "^5.34.0",
"@typescript-eslint/parser": "^5.34.0",
"autoprefixer": "^10.4.8",
"browserslist-config-erb": "^0.0.3",
"chalk": "^4.1.2",
"concurrently": "^7.2.2",
"core-js": "^3.24.1",
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^4.1.0",
"detect-port": "^1.3.0",
"electron": "^26.2.1",
"electron-builder": "^24.6.3",
"electron-devtools-installer": "^3.2.0",
"electron-notarize": "^1.2.1",
"electronmon": "^2.0.2",
"eslint": "^8.22.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-erb": "^4.0.3",
"eslint-import-resolver-typescript": "^2.7.1",
"eslint-import-resolver-webpack": "^0.13.2",
"eslint-plugin-compat": "^4.0.2",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.8.7",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.6.0",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.5.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^27.5.1",
"lint-staged": "^12.5.0",
"mini-css-extract-plugin": "^2.6.1",
"opencollective-postinstall": "^2.0.3",
"postcss": "^8.4.16",
"postcss-loader": "^6.2.1",
"prettier": "^2.7.1",
"ps-scrollbar-tailwind": "0.0.1",
"react-refresh": "^0.12.0",
"react-refresh-typescript": "^2.0.7",
"react-test-renderer": "^18.2.0",
"rimraf": "^3.0.2",
"sass": "^1.54.5",
"sass-loader": "^12.6.0",
"style-loader": "^3.3.1",
"tailwind-scrollbar": "^2.0.1",
"tailwindcss": "^3.3.1",
"terser-webpack-plugin": "^5.3.5",
"ts-jest": "^27.1.5",
"ts-loader": "^9.3.0",
"ts-node": "^10.8.2",
"typescript": "^4.7.4",
"url-loader": "^4.1.1",
"webpack": "^5.74.0",
"webpack-bundle-analyzer": "^4.6.1",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.10.0",
"webpack-merge": "^5.8.0"
},
"dependencies": {
"@node-steam/vdf": "^2.2.0",
"@tippyjs/react": "^4.2.6",
"archiver": "^6.0.1",
"color": "^4.2.3",
"dateformat": "^5.0.3",
"dot-prop": "^8.0.2",
"electron-debug": "^3.2.0",
"electron-log": "^4.4.8",
"electron-store": "^8.1.0",
"electron-updater": "^6.1.4",
"fast-deep-equal": "^3.1.3",
"framer-motion": "^10.16.4",
"fs-extra": "^11.1.1",
"history": "^5.3.0",
"jszip": "^3.10.1",
"md5-file": "^5.0.0",
"node-abi": "^3.47.0",
"node-fetch": "^2.6.7",
"node-stream-zip": "^1.15.0",
"ps-list": "^7.2.0",
"qrcode.react": "^3.1.0",
"react": "^18.2.0",
"react-colorful": "^5.6.1",
"react-dom": "^18.2.0",
"react-range": "^1.8.14",
"react-router-dom": "^6.3.0",
"react-virtualized-auto-sizer": "^1.0.12",
"react-window": "^1.8.8",
"recursive-readdir": "^2.2.3",
"regedit": "^5.1.2",
"rfdc": "^1.3.0",
"rxjs": "^7.8.0",
"sanitize-filename": "^1.6.3",
"semver": "^7.5.4",
"striptags": "^4.0.0-alpha.4",
"tailwind-scrollbar-hide": "^1.1.7",
"tailwindcss-scoped-groups": "^2.0.0",
"tippy.js": "^6.3.7",
"to-ico": "^1.1.5",
"use-double-click": "^1.0.5",
"use-fit-text": "^2.4.0"
},
"devEngines": {
"node": ">=14.x",
"npm": ">=7.x"
},
"collective": {
"url": "https://www.patreon.com/bsmanager"
},
"browserslist": [],
"prettier": {
"printWidth": 1000,
"bracketSameLine": false,
"arrowParens": "avoid",
"semi": true,
"singleQuote": false,
"jsxSingleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"tabWidth": 4,
"overrides": [
{
"files": [
".prettierrc",
".eslintrc"
],
"options": {
"parser": "json"
}
}
]
},
"electronmon": {
"patterns": [
"!src/__tests__/**",
"!release/**",
"!assets/**"
],
"logLevel": "quiet"
}
}
+1 -1
View File
@@ -2,5 +2,5 @@ const tailwindcss = require("tailwindcss");
const autoprefixer = require("autoprefixer");
module.exports = {
plugins: [tailwindcss, autoprefixer],
plugins: [tailwindcss, autoprefixer],
};
+5 -5
View File
@@ -53,8 +53,8 @@ E.g: Blocking feedback must be addressed before merging.
> 🔴 This change will break something important
| | | |
| --- | --- | --- |
| Blocking | 🔴 ❌ 🚨 | RED |
| Non-blocking | 🟡 💡 🤔 💭 | Yellow, thinking, etc |
| Praise | 🟢 💚 😍 👍 🙌 | Green, hearts, positive emojis, etc |
| | | |
| ------------ | -------------- | ----------------------------------- |
| Blocking | 🔴 ❌ 🚨 | RED |
| Non-blocking | 🟡 💡 🤔 💭 | Yellow, thinking, etc |
| Praise | 🟢 💚 😍 👍 🙌 | Green, hearts, positive emojis, etc |
+931 -6
View File
@@ -1,13 +1,938 @@
{
"name": "bs-manager",
"version": "1.1.1",
"lockfileVersion": 1,
"version": "1.3.1-alpha.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "bs-manager",
"version": "1.3.1-alpha.2",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
"ps-list": "^7.2.0",
"sharp": "^0.32.6"
}
},
"node_modules/b4a": {
"version": "1.6.4",
"resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.4.tgz",
"integrity": "sha512-fpWrvyVHEKyeEvbKZTVOeZF3VSKKWtJxFIxX/jaVPf+cLbGUSitjb49pHLqPV2BUNNZ0LcoeEGfE/YCpyDYHIw=="
},
"node_modules/base64-js": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
"integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
]
},
"node_modules/bl": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
"integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
"dependencies": {
"buffer": "^5.5.0",
"inherits": "^2.0.4",
"readable-stream": "^3.4.0"
}
},
"node_modules/buffer": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
"integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"dependencies": {
"base64-js": "^1.3.1",
"ieee754": "^1.1.13"
}
},
"node_modules/chownr": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",
"integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg=="
},
"node_modules/color": {
"version": "4.2.3",
"resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz",
"integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==",
"dependencies": {
"color-convert": "^2.0.1",
"color-string": "^1.9.0"
},
"engines": {
"node": ">=12.5.0"
}
},
"node_modules/color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dependencies": {
"color-name": "~1.1.4"
},
"engines": {
"node": ">=7.0.0"
}
},
"node_modules/color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
},
"node_modules/color-string": {
"version": "1.9.1",
"resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz",
"integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==",
"dependencies": {
"color-name": "^1.0.0",
"simple-swizzle": "^0.2.2"
}
},
"node_modules/decompress-response": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
"integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
"dependencies": {
"mimic-response": "^3.1.0"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/deep-extend": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
"integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
"engines": {
"node": ">=4.0.0"
}
},
"node_modules/detect-libc": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.2.tgz",
"integrity": "sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==",
"engines": {
"node": ">=8"
}
},
"node_modules/end-of-stream": {
"version": "1.4.4",
"resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
"integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
"dependencies": {
"once": "^1.4.0"
}
},
"node_modules/expand-template": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",
"integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==",
"engines": {
"node": ">=6"
}
},
"node_modules/fast-fifo": {
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz",
"integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ=="
},
"node_modules/fs-constants": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",
"integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow=="
},
"node_modules/github-from-package": {
"version": "0.0.0",
"resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",
"integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw=="
},
"node_modules/ieee754": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
"integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
]
},
"node_modules/inherits": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
},
"node_modules/ini": {
"version": "1.3.8",
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="
},
"node_modules/is-arrayish": {
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz",
"integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ=="
},
"node_modules/lru-cache": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
"integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
"dependencies": {
"yallist": "^4.0.0"
},
"engines": {
"node": ">=10"
}
},
"node_modules/mimic-response": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",
"integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/minimist": {
"version": "1.2.8",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
"integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/mkdirp-classic": {
"version": "0.5.3",
"resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",
"integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A=="
},
"node_modules/napi-build-utils": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz",
"integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg=="
},
"node_modules/node-abi": {
"version": "3.47.0",
"resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.47.0.tgz",
"integrity": "sha512-2s6B2CWZM//kPgwnuI0KrYwNjfdByE25zvAaEpq9IH4zcNsarH8Ihu/UuX6XMPEogDAxkuUFeZn60pXNHAqn3A==",
"dependencies": {
"semver": "^7.3.5"
},
"engines": {
"node": ">=10"
}
},
"node_modules/node-addon-api": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-6.1.0.tgz",
"integrity": "sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA=="
},
"node_modules/once": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
"integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
"dependencies": {
"wrappy": "1"
}
},
"node_modules/prebuild-install": {
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.1.tgz",
"integrity": "sha512-jAXscXWMcCK8GgCoHOfIr0ODh5ai8mj63L2nWrjuAgXE6tDyYGnx4/8o/rCgU+B4JSyZBKbeZqzhtwtC3ovxjw==",
"dependencies": {
"detect-libc": "^2.0.0",
"expand-template": "^2.0.3",
"github-from-package": "0.0.0",
"minimist": "^1.2.3",
"mkdirp-classic": "^0.5.3",
"napi-build-utils": "^1.0.1",
"node-abi": "^3.3.0",
"pump": "^3.0.0",
"rc": "^1.2.7",
"simple-get": "^4.0.0",
"tar-fs": "^2.0.0",
"tunnel-agent": "^0.6.0"
},
"bin": {
"prebuild-install": "bin.js"
},
"engines": {
"node": ">=10"
}
},
"node_modules/prebuild-install/node_modules/tar-fs": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz",
"integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==",
"dependencies": {
"chownr": "^1.1.1",
"mkdirp-classic": "^0.5.2",
"pump": "^3.0.0",
"tar-stream": "^2.1.4"
}
},
"node_modules/prebuild-install/node_modules/tar-stream": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",
"integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",
"dependencies": {
"bl": "^4.0.3",
"end-of-stream": "^1.4.1",
"fs-constants": "^1.0.0",
"inherits": "^2.0.3",
"readable-stream": "^3.1.1"
},
"engines": {
"node": ">=6"
}
},
"node_modules/ps-list": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/ps-list/-/ps-list-7.2.0.tgz",
"integrity": "sha512-v4Bl6I3f2kJfr5o80ShABNHAokIgY+wFDTQfE+X3zWYgSGQOCBeYptLZUpoOALBqO5EawmDN/tjTldJesd0ujQ==",
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/pump": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
"integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
"dependencies": {
"end-of-stream": "^1.1.0",
"once": "^1.3.1"
}
},
"node_modules/queue-tick": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz",
"integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag=="
},
"node_modules/rc": {
"version": "1.2.8",
"resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
"integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
"dependencies": {
"deep-extend": "^0.6.0",
"ini": "~1.3.0",
"minimist": "^1.2.0",
"strip-json-comments": "~2.0.1"
},
"bin": {
"rc": "cli.js"
}
},
"node_modules/readable-stream": {
"version": "3.6.2",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
"integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
"dependencies": {
"inherits": "^2.0.3",
"string_decoder": "^1.1.1",
"util-deprecate": "^1.0.1"
},
"engines": {
"node": ">= 6"
}
},
"node_modules/safe-buffer": {
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
]
},
"node_modules/semver": {
"version": "7.5.4",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",
"integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",
"dependencies": {
"lru-cache": "^6.0.0"
},
"bin": {
"semver": "bin/semver.js"
},
"engines": {
"node": ">=10"
}
},
"node_modules/sharp": {
"version": "0.32.6",
"resolved": "https://registry.npmjs.org/sharp/-/sharp-0.32.6.tgz",
"integrity": "sha512-KyLTWwgcR9Oe4d9HwCwNM2l7+J0dUQwn/yf7S0EnTtb0eVS4RxO0eUSvxPtzT4F3SY+C4K6fqdv/DO27sJ/v/w==",
"hasInstallScript": true,
"dependencies": {
"color": "^4.2.3",
"detect-libc": "^2.0.2",
"node-addon-api": "^6.1.0",
"prebuild-install": "^7.1.1",
"semver": "^7.5.4",
"simple-get": "^4.0.1",
"tar-fs": "^3.0.4",
"tunnel-agent": "^0.6.0"
},
"engines": {
"node": ">=14.15.0"
},
"funding": {
"url": "https://opencollective.com/libvips"
}
},
"node_modules/simple-concat": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",
"integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
]
},
"node_modules/simple-get": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",
"integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"dependencies": {
"decompress-response": "^6.0.0",
"once": "^1.3.1",
"simple-concat": "^1.0.0"
}
},
"node_modules/simple-swizzle": {
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz",
"integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==",
"dependencies": {
"is-arrayish": "^0.3.1"
}
},
"node_modules/streamx": {
"version": "2.15.1",
"resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.1.tgz",
"integrity": "sha512-fQMzy2O/Q47rgwErk/eGeLu/roaFWV0jVsogDmrszM9uIw8L5OA+t+V93MgYlufNptfjmYR1tOMWhei/Eh7TQA==",
"dependencies": {
"fast-fifo": "^1.1.0",
"queue-tick": "^1.0.1"
}
},
"node_modules/string_decoder": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
"integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
"dependencies": {
"safe-buffer": "~5.2.0"
}
},
"node_modules/strip-json-comments": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
"integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/tar-fs": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.0.4.tgz",
"integrity": "sha512-5AFQU8b9qLfZCX9zp2duONhPmZv0hGYiBPJsyUdqMjzq/mqVpy/rEUSeHk1+YitmxugaptgBh5oDGU3VsAJq4w==",
"dependencies": {
"mkdirp-classic": "^0.5.2",
"pump": "^3.0.0",
"tar-stream": "^3.1.5"
}
},
"node_modules/tar-stream": {
"version": "3.1.6",
"resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.6.tgz",
"integrity": "sha512-B/UyjYwPpMBv+PaFSWAmtYjwdrlEaZQEhMIBFNC5oEG8lpiW8XjcSdmEaClj28ArfKScKHs2nshz3k2le6crsg==",
"dependencies": {
"b4a": "^1.6.4",
"fast-fifo": "^1.2.0",
"streamx": "^2.15.0"
}
},
"node_modules/tunnel-agent": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
"integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",
"dependencies": {
"safe-buffer": "^5.0.1"
},
"engines": {
"node": "*"
}
},
"node_modules/util-deprecate": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
},
"node_modules/wrappy": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
},
"node_modules/yallist": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
}
},
"dependencies": {
"ctrlc-windows": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/ctrlc-windows/-/ctrlc-windows-2.1.0.tgz",
"integrity": "sha512-OrX5KI+K+2NMN91QIhYZdW7VDO2YsSdTZW494pA7Nvw/wBdU2hz+MGP006bR978zOTrG6Q8EIeJvLJmLqc6MsQ=="
"b4a": {
"version": "1.6.4",
"resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.4.tgz",
"integrity": "sha512-fpWrvyVHEKyeEvbKZTVOeZF3VSKKWtJxFIxX/jaVPf+cLbGUSitjb49pHLqPV2BUNNZ0LcoeEGfE/YCpyDYHIw=="
},
"base64-js": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
"integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="
},
"bl": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
"integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
"requires": {
"buffer": "^5.5.0",
"inherits": "^2.0.4",
"readable-stream": "^3.4.0"
}
},
"buffer": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
"integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
"requires": {
"base64-js": "^1.3.1",
"ieee754": "^1.1.13"
}
},
"chownr": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",
"integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg=="
},
"color": {
"version": "4.2.3",
"resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz",
"integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==",
"requires": {
"color-convert": "^2.0.1",
"color-string": "^1.9.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
},
"color-string": {
"version": "1.9.1",
"resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz",
"integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==",
"requires": {
"color-name": "^1.0.0",
"simple-swizzle": "^0.2.2"
}
},
"decompress-response": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
"integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
"requires": {
"mimic-response": "^3.1.0"
}
},
"deep-extend": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
"integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA=="
},
"detect-libc": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.2.tgz",
"integrity": "sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw=="
},
"end-of-stream": {
"version": "1.4.4",
"resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
"integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
"requires": {
"once": "^1.4.0"
}
},
"expand-template": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",
"integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg=="
},
"fast-fifo": {
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz",
"integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ=="
},
"fs-constants": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",
"integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow=="
},
"github-from-package": {
"version": "0.0.0",
"resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",
"integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw=="
},
"ieee754": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
"integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA=="
},
"inherits": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
},
"ini": {
"version": "1.3.8",
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="
},
"is-arrayish": {
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz",
"integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ=="
},
"lru-cache": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
"integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
"requires": {
"yallist": "^4.0.0"
}
},
"mimic-response": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",
"integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ=="
},
"minimist": {
"version": "1.2.8",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
"integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA=="
},
"mkdirp-classic": {
"version": "0.5.3",
"resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",
"integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A=="
},
"napi-build-utils": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz",
"integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg=="
},
"node-abi": {
"version": "3.47.0",
"resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.47.0.tgz",
"integrity": "sha512-2s6B2CWZM//kPgwnuI0KrYwNjfdByE25zvAaEpq9IH4zcNsarH8Ihu/UuX6XMPEogDAxkuUFeZn60pXNHAqn3A==",
"requires": {
"semver": "^7.3.5"
}
},
"node-addon-api": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-6.1.0.tgz",
"integrity": "sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA=="
},
"once": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
"integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
"requires": {
"wrappy": "1"
}
},
"prebuild-install": {
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.1.tgz",
"integrity": "sha512-jAXscXWMcCK8GgCoHOfIr0ODh5ai8mj63L2nWrjuAgXE6tDyYGnx4/8o/rCgU+B4JSyZBKbeZqzhtwtC3ovxjw==",
"requires": {
"detect-libc": "^2.0.0",
"expand-template": "^2.0.3",
"github-from-package": "0.0.0",
"minimist": "^1.2.3",
"mkdirp-classic": "^0.5.3",
"napi-build-utils": "^1.0.1",
"node-abi": "^3.3.0",
"pump": "^3.0.0",
"rc": "^1.2.7",
"simple-get": "^4.0.0",
"tar-fs": "^2.0.0",
"tunnel-agent": "^0.6.0"
},
"dependencies": {
"tar-fs": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz",
"integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==",
"requires": {
"chownr": "^1.1.1",
"mkdirp-classic": "^0.5.2",
"pump": "^3.0.0",
"tar-stream": "^2.1.4"
}
},
"tar-stream": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",
"integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",
"requires": {
"bl": "^4.0.3",
"end-of-stream": "^1.4.1",
"fs-constants": "^1.0.0",
"inherits": "^2.0.3",
"readable-stream": "^3.1.1"
}
}
}
},
"ps-list": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/ps-list/-/ps-list-7.2.0.tgz",
"integrity": "sha512-v4Bl6I3f2kJfr5o80ShABNHAokIgY+wFDTQfE+X3zWYgSGQOCBeYptLZUpoOALBqO5EawmDN/tjTldJesd0ujQ=="
},
"pump": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
"integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
"requires": {
"end-of-stream": "^1.1.0",
"once": "^1.3.1"
}
},
"queue-tick": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz",
"integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag=="
},
"rc": {
"version": "1.2.8",
"resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
"integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
"requires": {
"deep-extend": "^0.6.0",
"ini": "~1.3.0",
"minimist": "^1.2.0",
"strip-json-comments": "~2.0.1"
}
},
"readable-stream": {
"version": "3.6.2",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
"integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
"requires": {
"inherits": "^2.0.3",
"string_decoder": "^1.1.1",
"util-deprecate": "^1.0.1"
}
},
"safe-buffer": {
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
},
"semver": {
"version": "7.5.4",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",
"integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",
"requires": {
"lru-cache": "^6.0.0"
}
},
"sharp": {
"version": "0.32.6",
"resolved": "https://registry.npmjs.org/sharp/-/sharp-0.32.6.tgz",
"integrity": "sha512-KyLTWwgcR9Oe4d9HwCwNM2l7+J0dUQwn/yf7S0EnTtb0eVS4RxO0eUSvxPtzT4F3SY+C4K6fqdv/DO27sJ/v/w==",
"requires": {
"color": "^4.2.3",
"detect-libc": "^2.0.2",
"node-addon-api": "^6.1.0",
"prebuild-install": "^7.1.1",
"semver": "^7.5.4",
"simple-get": "^4.0.1",
"tar-fs": "^3.0.4",
"tunnel-agent": "^0.6.0"
}
},
"simple-concat": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",
"integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q=="
},
"simple-get": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",
"integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",
"requires": {
"decompress-response": "^6.0.0",
"once": "^1.3.1",
"simple-concat": "^1.0.0"
}
},
"simple-swizzle": {
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz",
"integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==",
"requires": {
"is-arrayish": "^0.3.1"
}
},
"streamx": {
"version": "2.15.1",
"resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.1.tgz",
"integrity": "sha512-fQMzy2O/Q47rgwErk/eGeLu/roaFWV0jVsogDmrszM9uIw8L5OA+t+V93MgYlufNptfjmYR1tOMWhei/Eh7TQA==",
"requires": {
"fast-fifo": "^1.1.0",
"queue-tick": "^1.0.1"
}
},
"string_decoder": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
"integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
"requires": {
"safe-buffer": "~5.2.0"
}
},
"strip-json-comments": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
"integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ=="
},
"tar-fs": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.0.4.tgz",
"integrity": "sha512-5AFQU8b9qLfZCX9zp2duONhPmZv0hGYiBPJsyUdqMjzq/mqVpy/rEUSeHk1+YitmxugaptgBh5oDGU3VsAJq4w==",
"requires": {
"mkdirp-classic": "^0.5.2",
"pump": "^3.0.0",
"tar-stream": "^3.1.5"
}
},
"tar-stream": {
"version": "3.1.6",
"resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.6.tgz",
"integrity": "sha512-B/UyjYwPpMBv+PaFSWAmtYjwdrlEaZQEhMIBFNC5oEG8lpiW8XjcSdmEaClj28ArfKScKHs2nshz3k2le6crsg==",
"requires": {
"b4a": "^1.6.4",
"fast-fifo": "^1.2.0",
"streamx": "^2.15.0"
}
},
"tunnel-agent": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
"integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",
"requires": {
"safe-buffer": "^5.0.1"
}
},
"util-deprecate": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
},
"wrappy": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
},
"yallist": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
}
}
}
+3 -2
View File
@@ -1,6 +1,6 @@
{
"name": "bs-manager",
"version": "1.2.0-alpha.4",
"version": "1.3.2",
"description": "BSManager",
"main": "./dist/main/main.js",
"author": {
@@ -14,7 +14,8 @@
"postinstall": "npm run electron-rebuild && npm run link-modules"
},
"dependencies": {
"ctrlc-windows": "^2.1.0"
"ps-list": "^7.2.0",
"sharp": "^0.32.6"
},
"license": "MIT"
}

Before

Width:  |  Height:  |  Size: 337 KiB

After

Width:  |  Height:  |  Size: 337 KiB

Before

Width:  |  Height:  |  Size: 197 KiB

After

Width:  |  Height:  |  Size: 197 KiB

Before

Width:  |  Height:  |  Size: 353 KiB

After

Width:  |  Height:  |  Size: 353 KiB

Before

Width:  |  Height:  |  Size: 176 KiB

After

Width:  |  Height:  |  Size: 176 KiB

Before

Width:  |  Height:  |  Size: 3.4 MiB

After

Width:  |  Height:  |  Size: 3.4 MiB

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 2.0 MiB

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 2.0 MiB

+7 -7
View File
@@ -1,9 +1,9 @@
import '@testing-library/jest-dom';
import { render } from '@testing-library/react';
import App from '../renderer/windows/App';
import "@testing-library/jest-dom";
import { render } from "@testing-library/react";
import App from "../renderer/windows/App";
describe('App', () => {
it('should render', () => {
expect(render(<App />)).toBeTruthy();
});
describe("App", () => {
it("should render", () => {
expect(render(<App />)).toBeTruthy();
});
});
+7 -1
View File
@@ -1,7 +1,13 @@
import { app } from "electron";
import path from "path";
export const BS_EXECUTABLE = "Beat Saber.exe";
export const OCULUS_BS_DIR = "hyperbolic-magnetism-beat-saber"
export const OCULUS_BS_DIR = "hyperbolic-magnetism-beat-saber";
export const BS_APP_ID = "620980";
export const BS_DEPOT = "620981";
export const APP_NAME = "BSManager";
export const STEAMVR_APP_ID = "250820";
export const IMAGE_CACHE_FOLDER = "imagescache";
export const IMAGE_CACHE_PATH = path.join(app.getPath("userData"), IMAGE_CACHE_FOLDER);
+13
View File
@@ -0,0 +1,13 @@
import { ProviderPlatform } from "shared/models/provider-platform.enum";
export function execOnOs<T>(executions: { [key in ProviderPlatform]?: () => T }, noError = false): T {
if(executions[process.platform as ProviderPlatform]) {
return executions[process.platform as ProviderPlatform]();
}
if(!noError) {
throw new Error(`No execution found for platform ${process.platform}`);
}
return undefined;
}
+65 -40
View File
@@ -2,47 +2,60 @@ import { CopyOptions, copy, ensureDir, move, symlink } from "fs-extra";
import { access, mkdir, rm, readdir, unlink, lstat, readlink } from "fs/promises";
import path from "path";
import { Observable } from "rxjs";
import log from "electron-log"
import log from "electron-log";
import { BsmException } from "shared/models/bsm-exception.model";
export async function pathExist(path: string): Promise<boolean> {
try{
try {
await access(path);
return true;
}catch(e){
} catch (e) {
return false;
}
}
export async function ensureFolderExist(path: string): Promise<void> {
if(await pathExist(path)){ return Promise.resolve(); }
return mkdir(path, {recursive: true}).catch(log.error).then(() => {});
if (await pathExist(path)) {
return Promise.resolve();
}
return mkdir(path, { recursive: true })
.catch(log.error)
.then(() => {});
}
export async function deleteFolder(folderPath: string): Promise<void> {
if(!(await pathExist(folderPath))){ return; }
return rm(folderPath, {recursive: true, force: true});
if (!(await pathExist(folderPath))) {
return;
}
return rm(folderPath, { recursive: true, force: true });
}
export async function unlinkPath(path: string): Promise<void>{
if(!(await pathExist(path))){ return; }
export async function unlinkPath(path: string): Promise<void> {
if (!(await pathExist(path))) {
return;
}
return unlink(path);
}
export async function getFoldersInFolder(folderPath: string, opts?: {ignoreSymlinkTargetError?: boolean}): Promise<string[]> {
if(!(await pathExist(folderPath))){ return []; }
export async function getFoldersInFolder(folderPath: string, opts?: { ignoreSymlinkTargetError?: boolean }): Promise<string[]> {
if (!(await pathExist(folderPath))) {
return [];
}
const files = await readdir(folderPath, {withFileTypes: true});
const files = await readdir(folderPath, { withFileTypes: true });
const promises = files.map(async file => {
if(file.isDirectory()){ return path.join(folderPath, file.name); }
if(!file.isSymbolicLink()){ return undefined; }
try{
if (file.isDirectory()) {
return path.join(folderPath, file.name);
}
if (!file.isSymbolicLink()) {
return undefined;
}
try {
const targetPath = await readlink(path.join(folderPath, file.name));
return (await lstat(targetPath)).isDirectory() ? path.join(folderPath, file.name) : undefined;
}catch(e: any){
if(e.code === "ENOENT" && opts?.ignoreSymlinkTargetError === true && !path.extname(file.name)){
} catch (e: any) {
if (e.code === "ENOENT" && opts?.ignoreSymlinkTargetError === true && !path.extname(file.name)) {
return path.join(folderPath, file.name);
}
return undefined;
@@ -52,25 +65,36 @@ export async function getFoldersInFolder(folderPath: string, opts?: {ignoreSymli
return (await Promise.all(promises)).filter(folder => folder);
}
export function moveFolderContent(src: string, dest: string): Observable<Progression>{
const progress: Progression = { current: 0, total: 0 };
export async function getFilesInFolder(folderPath: string): Promise<string[]> {
if (!(await pathExist(folderPath))) {
return [];
}
const dirEntries = await readdir(folderPath, { withFileTypes: true });
return dirEntries.filter(entry => entry.isFile()).map(file => path.join(folderPath, file.name));
}
export function moveFolderContent(src: string, dest: string): Observable<Progression> {
const progress: Progression = { current: 0, total: 0 };
return new Observable<Progression>(subscriber => {
subscriber.next(progress);
(async () => {
const srcExist = await pathExist(src);
if(!srcExist){ return subscriber.complete(); }
if (!srcExist) {
return subscriber.complete();
}
ensureFolderExist(dest);
const files = await readdir(src, {encoding: "utf-8"});
const files = await readdir(src, { encoding: "utf-8" });
progress.total = files.length;
const promises = files.map(async file => {
const srcFullPath = path.join(src, file);
const destFullPath = path.join(dest, file);
if(await pathExist(destFullPath)){
if (await pathExist(destFullPath)) {
progress.current++;
return subscriber.next(progress);
}
@@ -80,7 +104,6 @@ export function moveFolderContent(src: string, dest: string): Observable<Progres
});
Promise.allSettled(promises).then(() => subscriber.complete());
})();
});
}
@@ -89,47 +112,49 @@ export function isSubdirectory(parent: string, child: string): boolean {
const parentNormalized = path.resolve(parent);
const childNormalized = path.resolve(child);
if (parentNormalized === childNormalized) { return false; }
if (parentNormalized === childNormalized) {
return false;
}
const relativePath = path.relative(parentNormalized, childNormalized);
if (path.parse(parentNormalized).root !== path.parse(childNormalized).root) { return false; }
return relativePath && !relativePath.startsWith('..') && !path.isAbsolute(relativePath);
if (path.parse(parentNormalized).root !== path.parse(childNormalized).root) {
return false;
}
return relativePath && !relativePath.startsWith("..") && !path.isAbsolute(relativePath);
}
export async function copyDirectoryWithJunctions(src: string, dest: string, options?: CopyOptions): Promise<void> {
if(isSubdirectory(src, dest)){
throw {message: `Cannot copy directory '${src}' into itself '${dest}'.`, code: "COPY_TO_SUBPATH"} as BsmException;
if (isSubdirectory(src, dest)) {
throw { message: `Cannot copy directory '${src}' into itself '${dest}'.`, code: "COPY_TO_SUBPATH" } as BsmException;
}
await ensureDir(dest);
const items = await readdir(src, { withFileTypes: true });
for (const item of items) {
const sourcePath = path.join(src, item.name);
const destinationPath = path.join(dest, item.name);
if (item.isDirectory()) {
await copyDirectoryWithJunctions(sourcePath, destinationPath, options);
} else if (item.isFile()) {
await copy(sourcePath, destinationPath, options);
} else if (item.isSymbolicLink()) {
if(options?.overwrite){
if (options?.overwrite) {
await unlinkPath(destinationPath);
}
const symlinkTarget = await readlink(sourcePath);
const relativePath = path.relative(src, symlinkTarget);
const newTarget = path.join(dest, relativePath);
await symlink(newTarget, destinationPath, 'junction');
await symlink(newTarget, destinationPath, "junction");
}
}
}
export interface Progression<T = unknown>{
export interface Progression<T = unknown> {
total: number;
current: number;
data?: T;
}
+13 -9
View File
@@ -1,14 +1,18 @@
import JSZip from 'jszip';
import { pathExist } from './fs.helpers';
import path from 'path';
import { mkdir, writeFile } from 'fs/promises';
import JSZip from "jszip";
import { pathExist } from "./fs.helpers";
import path from "path";
import { mkdir, writeFile } from "fs/promises";
export async function extractZip(zip: JSZip, dest: string): Promise<string[]>{
if(!await pathExist(dest)){ throw new Error(`Path ${dest} does not exist`); }
export async function extractZip(zip: JSZip, dest: string): Promise<string[]> {
if (!(await pathExist(dest))) {
throw new Error(`Path ${dest} does not exist`);
}
const files: string[] = [];
for(const [relativePath, entry] of Object.entries(zip.files)){
if(entry.dir){ continue; }
for (const [relativePath, entry] of Object.entries(zip.files)) {
if (entry.dir) {
continue;
}
const content = await entry.async("nodebuffer");
const outPath = path.join(dest, relativePath);
@@ -21,4 +25,4 @@ export async function extractZip(zip: JSZip, dest: string): Promise<string[]>{
}
return files;
}
}
+34 -22
View File
@@ -9,43 +9,55 @@ ipcMain.on("bsv-search-map", async (event, request: IpcRequest<SearchParams>) =>
const utlis = UtilsService.getInstance();
const bsvService = BeatSaverService.getInstance();
bsvService.searchMaps(request.args).then(maps => {
utlis.ipcSend(request.responceChannel, {success: true, data: maps});
}).catch(e => {
utlis.ipcSend(request.responceChannel, {success: false, error: e});
})
bsvService
.searchMaps(request.args)
.then(maps => {
utlis.ipcSend(request.responceChannel, { success: true, data: maps });
})
.catch(e => {
utlis.ipcSend(request.responceChannel, { success: false, error: e });
});
});
ipcMain.on("bsv-get-map-details-from-hashs", async (event, request: IpcRequest<string[]>) => {
const utlis = UtilsService.getInstance();
const bsvService = BeatSaverService.getInstance();
bsvService.getMapDetailsFromHashs(request.args).then(maps => {
utlis.ipcSend(request.responceChannel, {success: true, data: maps});
}).catch(e => {
log.error(e);
utlis.ipcSend(request.responceChannel, {success: false, error: e});
})
bsvService
.getMapDetailsFromHashs(request.args)
.then(maps => {
utlis.ipcSend(request.responceChannel, { success: true, data: maps });
})
.catch(e => {
log.error(e);
utlis.ipcSend(request.responceChannel, { success: false, error: e });
});
});
ipcMain.on("bsv-get-map-details-by-id", async (event, request: IpcRequest<string>) => {
const utlis = UtilsService.getInstance();
const bsvService = BeatSaverService.getInstance();
bsvService.getMapDetailsById(request.args).then(maps => {
utlis.ipcSend(request.responceChannel, {success: true, data: maps});
}).catch(e => {
utlis.ipcSend(request.responceChannel, {success: false, error: e});
})
bsvService
.getMapDetailsById(request.args)
.then(maps => {
utlis.ipcSend(request.responceChannel, { success: true, data: maps });
})
.catch(e => {
utlis.ipcSend(request.responceChannel, { success: false, error: e });
});
});
ipcMain.on("bsv-get-playlist-details-by-id", async (event, request: IpcRequest<string>) => {
const utlis = UtilsService.getInstance();
const bsvService = BeatSaverService.getInstance();
bsvService.getPlaylistPage(request.args).then(maps => {
utlis.ipcSend(request.responceChannel, {success: true, data: maps});
}).catch(e => {
utlis.ipcSend(request.responceChannel, {success: false, error: e});
})
});
bsvService
.getPlaylistPage(request.args)
.then(maps => {
utlis.ipcSend(request.responceChannel, { success: true, data: maps });
})
.catch(e => {
utlis.ipcSend(request.responceChannel, { success: false, error: e });
});
});
+39 -58
View File
@@ -1,70 +1,51 @@
import { ipcMain } from 'electron';
import { BSInstallerService, DownloadEventType, DownloadInfo } from '../services/bs-installer.service';
import { IpcRequest } from 'shared/models/ipc';
import { InstallationLocationService } from '../services/installation-location.service';
import { UtilsService } from '../services/utils.service';
import { BsmException } from 'shared/models/bsm-exception.model';
import { LocalMapsManagerService } from '../services/additional-content/local-maps-manager.service';
import { BSInstallerService, DownloadInfo } from "../services/bs-installer.service";
import { InstallationLocationService } from "../services/installation-location.service";
import { IpcService } from "../services/ipc.service";
import { from, of } from "rxjs";
const ipc = IpcService.getInstance();
export interface InitDownloadInfoInterface {
cwd: string ,
folder: string,
app: string,
depot: string,
manifest: string,
username: string,
stay: boolean
}
ipcMain.on('is-dotnet-6-installed', async (event, request: IpcRequest<void>) => {
ipc.on("is-dotnet-6-installed", (_, reply) => {
const installer = BSInstallerService.getInstance();
const utils = UtilsService.getInstance();
installer.isDotNet6Installed().then(installed => {
utils.ipcSend(request.responceChannel, {success: true, data: installed});
});
reply(from(installer.isDotNet6Installed()));
});
ipcMain.on('bs-download.start', async (event, request: IpcRequest<DownloadInfo>) => {
BSInstallerService.getInstance().downloadBsVersion(request.args).then(async res => {
await LocalMapsManagerService.getInstance().linkVersionMaps(request.args.bsVersion, true).catch(e => {});
UtilsService.getInstance().ipcSend(request.responceChannel, {success: true, data: res});
}).catch(e => {
UtilsService.getInstance().ipcSend(request.responceChannel, {success: false, data: e});
});
ipc.on("bs-download.installation-folder", (_, reply) => {
const installLocation = InstallationLocationService.getInstance();
reply(from(installLocation.installationDirectory()));
});
ipcMain.on(`bs-download.${"[2FA]" as DownloadEventType}`, async (event, args: IpcRequest<string>) => {
BSInstallerService.getInstance().sendInputProcess(args.args);
ipc.on<string>("bs-download.set-installation-folder", (req, reply) => {
const installerService = InstallationLocationService.getInstance();
reply(from(installerService.setInstallationDirectory(req.args)));
});
ipcMain.on('bs-download.kill', async (event, request: IpcRequest<void>) => {
const res = await BSInstallerService.getInstance().killDownloadProcess();
if(request.responceChannel){ UtilsService.getInstance().ipcSend(request.responceChannel, {success: res}); }
});
ipcMain.on('bs-download.installation-folder', async (event, request: IpcRequest<void>) => {
const installationFolder = InstallationLocationService.getInstance().installationDirectory;
UtilsService.getInstance().ipcSend(request.responceChannel, {success: true, data: installationFolder});
});
ipcMain.on('bs-download.set-installation-folder', (event, request: IpcRequest<string>) => {
const installerService = InstallationLocationService.getInstance();
installerService.setInstallationDirectory(request.args).then(res => {
UtilsService.getInstance().ipcSend(request.responceChannel, {success: true, data: res});
}).catch((err: BsmException) => {
UtilsService.getInstance().ipcSend(request.responceChannel, {success: false, error: err});
});
})
ipcMain.on('bs-download.import-version', (event, request: IpcRequest<string>) => {
const utils = UtilsService.getInstance();
ipc.on<string>("bs-download.import-version", (req, reply) => {
const installer = BSInstallerService.getInstance();
installer.importVersion(request.args).catch(e => {
utils.ipcSend(request.responceChannel, {success: false, error: e});
}).then(() => {
utils.ipcSend(request.responceChannel, {success: true});
});
})
reply(from(installer.importVersion(req.args)));
});
ipc.on<DownloadInfo>("auto-download-bs-version", (req, reply) => {
const bsInstaller = BSInstallerService.getInstance();
reply(bsInstaller.autoDownloadBsVersion(req.args));
});
ipc.on<DownloadInfo>("download-bs-version", (req, reply) => {
const bsInstaller = BSInstallerService.getInstance();
reply(bsInstaller.downloadBsVersion(req.args))
});
ipc.on<DownloadInfo>("download-bs-version-qr", (req, reply) => {
const bsInstaller = BSInstallerService.getInstance();
reply(bsInstaller.downloadBsVersionWithQRCode(req.args))
});
ipc.on("stop-download-bs-version", (_, reply) => {
const bsInstaller = BSInstallerService.getInstance();
reply(of(bsInstaller.stopDownload()));
});
ipc.on<string>("send-input-bs-download", (req, reply) => {
const bsInstaller = BSInstallerService.getInstance();
reply(of(bsInstaller.sendInput(req.args)));
});
+19 -13
View File
@@ -1,17 +1,23 @@
import { ipcMain } from 'electron';
import { UtilsService } from '../services/utils.service'
import { LauchOption } from "shared/models/bs-launch";
import { LaunchOption } from "shared/models/bs-launch";
import { BSLauncherService } from "../services/bs-launcher.service"
import { IpcRequest } from 'shared/models/ipc';
import { BsmException } from 'shared/models/bsm-exception.model';
import { IpcService } from '../services/ipc.service';
import { from } from "rxjs";
ipcMain.on('bs-launch.launch', (event, request: IpcRequest<LauchOption>) => {
const launcherService = BSLauncherService.getInstance();
const utilsService = UtilsService.getInstance();
const ipc = IpcService.getInstance();
launcherService.launch(request.args).then(res => {
utilsService.ipcSend(request.responceChannel, {success: true, data: res});
}).catch((err: BsmException) => {
utilsService.ipcSend(request.responceChannel, {success: false, error: err});
})
ipc.on<LaunchOption>('bs-launch.launch', (req, reply) => {
const bsLauncher = BSLauncherService.getInstance();
reply(bsLauncher.launch(req.args));
});
ipc.on<LaunchOption>("create-launch-shortcut", (req, reply) => {
const bsLauncher = BSLauncherService.getInstance();
reply(from(bsLauncher.createLaunchShortcut(req.args)));
});
ipc.on<void>("bs-launch.restore-steamvr", (_, reply) => {
const bsLauncher = BSLauncherService.getInstance();
reply(from(bsLauncher.restoreSteamVR()));
});
+48 -53
View File
@@ -1,4 +1,3 @@
import { LocalMapsManagerService } from "../services/additional-content/local-maps-manager.service";
import { UtilsService } from "../services/utils.service";
import { BSVersion } from "shared/bs-version.interface";
@@ -7,10 +6,11 @@ import { BsmLocalMap } from "shared/models/maps/bsm-local-map.interface";
import { BsvMapDetail } from "shared/models/maps";
import { IpcService } from "../services/ipc.service";
import { from } from "rxjs";
import log from "electron-log"
const ipc = IpcService.getInstance();
ipc.on('load-version-maps', async (request: IpcRequest<BSVersion>, reply) => {
ipc.on("load-version-maps", async (request: IpcRequest<BSVersion>, reply) => {
const localMaps = LocalMapsManagerService.getInstance();
reply(localMaps.getMaps(request.args));
});
@@ -19,32 +19,33 @@ ipc.on("verion-have-maps-linked", async (request: IpcRequest<BSVersion>) => {
const utils = UtilsService.getInstance();
const maps = LocalMapsManagerService.getInstance();
utils.ipcSend<boolean>(request.responceChannel, {success: true, data: await maps.versionIsLinked(request.args)});
});
ipc.on("link-version-maps", async (request: IpcRequest<{version: BSVersion, keepMaps: boolean}>) => {
const utils = UtilsService.getInstance();
const maps = LocalMapsManagerService.getInstance();
maps.linkVersionMaps(request.args.version, request.args.keepMaps).then(() => {
utils.ipcSend<void>(request.responceChannel, {success: true});
}).catch(err => {
utils.ipcSend<void>(request.responceChannel, {success: true, error: err});
});
utils.ipcSend<boolean>(request.responceChannel, { success: true, data: await maps.versionIsLinked(request.args) });
});
ipc.on("unlink-version-maps", async (request: IpcRequest<{version: BSVersion, keepMaps: boolean}>) => {
ipc.on("link-version-maps", async (request: IpcRequest<{ version: BSVersion; keepMaps: boolean }>) => {
const utils = UtilsService.getInstance();
const maps = LocalMapsManagerService.getInstance();
maps.unlinkVersionMaps(request.args.version, request.args.keepMaps).then(() => {
utils.ipcSend<void>(request.responceChannel, {success: true});
}).catch(err => {
utils.ipcSend<void>(request.responceChannel, {success: true, error: err});
});
maps.linkVersionMaps(request.args.version, request.args.keepMaps)
.then(() => {
utils.ipcSend<void>(request.responceChannel, { success: true });
})
.catch(err => {
utils.ipcSend<void>(request.responceChannel, { success: true, error: err });
});
});
ipc.on("unlink-version-maps", async (request: IpcRequest<{ version: BSVersion; keepMaps: boolean }>) => {
const utils = UtilsService.getInstance();
const maps = LocalMapsManagerService.getInstance();
maps.unlinkVersionMaps(request.args.version, request.args.keepMaps)
.then(() => {
utils.ipcSend<void>(request.responceChannel, { success: true });
})
.catch(err => {
utils.ipcSend<void>(request.responceChannel, { success: true, error: err });
});
});
ipc.on("delete-maps", async (request: IpcRequest<BsmLocalMap[]>, reply) => {
@@ -52,73 +53,67 @@ ipc.on("delete-maps", async (request: IpcRequest<BsmLocalMap[]>, reply) => {
reply(maps.deleteMaps(request.args));
});
ipc.on("export-maps", async (request: IpcRequest<{version: BSVersion, maps: BsmLocalMap[], outPath: string}>, reply) => {
ipc.on("export-maps", async (request: IpcRequest<{ version: BSVersion; maps: BsmLocalMap[]; outPath: string }>, reply) => {
const maps = LocalMapsManagerService.getInstance();
reply(await maps.exportMaps(request.args.version, request.args.maps, request.args.outPath));
});
ipc.on("download-map", async (request: IpcRequest<{map: BsvMapDetail, version: BSVersion}>, reply) => {
ipc.on("download-map", async (request: IpcRequest<{ map: BsvMapDetail; version: BSVersion }>, reply) => {
const maps = LocalMapsManagerService.getInstance();
reply(from(maps.downloadMap(request.args.map, request.args.version)))
reply(from(maps.downloadMap(request.args.map, request.args.version)));
});
ipc.on("one-click-install-map", async (request: IpcRequest<BsvMapDetail>) => {
const utils = UtilsService.getInstance();
const maps = LocalMapsManagerService.getInstance();
maps.oneClickDownloadMap(request.args).then(() => {
utils.ipcSend(request.responceChannel, {success: true});
}).catch(err => {
utils.ipcSend(request.responceChannel, {success: false, error: err});
});
maps.oneClickDownloadMap(request.args)
.then(() => {
utils.ipcSend(request.responceChannel, { success: true });
})
.catch(err => {
log.error(err);
utils.ipcSend(request.responceChannel, { success: false, error: err });
});
});
ipc.on("register-maps-deep-link", async (request: IpcRequest<void>) => {
const maps = LocalMapsManagerService.getInstance();
const utils = UtilsService.getInstance();
try{
try {
const res = maps.enableDeepLinks();
utils.ipcSend(request.responceChannel, {success: true, data: res});
utils.ipcSend(request.responceChannel, { success: true, data: res });
} catch (e) {
utils.ipcSend(request.responceChannel, { success: false });
}
catch(e){
utils.ipcSend(request.responceChannel, {success: false});
}
});
ipc.on("unregister-maps-deep-link", async (request: IpcRequest<void>) => {
const maps = LocalMapsManagerService.getInstance();
const utils = UtilsService.getInstance();
try{
try {
const res = maps.disableDeepLinks();
utils.ipcSend(request.responceChannel, {success: true, data: res});
utils.ipcSend(request.responceChannel, { success: true, data: res });
} catch (e) {
utils.ipcSend(request.responceChannel, { success: false });
}
catch(e){
utils.ipcSend(request.responceChannel, {success: false});
}
});
ipc.on("is-map-deep-links-enabled", async (request: IpcRequest<void>) => {
const maps = LocalMapsManagerService.getInstance();
const utils = UtilsService.getInstance();
try{
try {
const res = maps.isDeepLinksEnabled();
utils.ipcSend(request.responceChannel, {success: true, data: res});
utils.ipcSend(request.responceChannel, { success: true, data: res });
} catch (e) {
utils.ipcSend(request.responceChannel, { success: false });
}
catch(e){
utils.ipcSend(request.responceChannel, {success: false});
}
});
ipc.on("get-version-maps-path", async (req: IpcRequest<BSVersion>, reply) => {
ipc.on("get-version-maps-path", async (req: IpcRequest<BSVersion>, reply) => {
const maps = LocalMapsManagerService.getInstance();
reply(from(maps.getMapsFolderPath(req.args)));
});
});
+23 -31
View File
@@ -5,8 +5,6 @@ import { MSModel, MSModelType } from "shared/models/models/model-saber.model";
import { LocalModelsManagerService } from "../services/additional-content/local-models-manager.service";
import { IpcService } from "../services/ipc.service";
import { BSVersion } from "shared/bs-version.interface";
import { BsmLocalMap } from "shared/models/maps/bsm-local-map.interface";
import { from } from "rxjs";
import { BsmLocalModel } from "shared/models/models/bsm-local-model.interface";
import { ModelDownload } from "renderer/services/models-management/models-downloader.service";
@@ -16,56 +14,50 @@ ipcMain.on("one-click-install-model", async (event, request: IpcRequest<MSModel>
const utils = UtilsService.getInstance();
const models = LocalModelsManagerService.getInstance();
models.oneClickDownloadModel(request.args).then(() => {
utils.ipcSend(request.responceChannel, {success: true});
}).catch(e => {
utils.ipcSend(request.responceChannel, {success: false, error: e});
})
models
.oneClickDownloadModel(request.args)
.then(() => {
utils.ipcSend(request.responceChannel, { success: true });
})
.catch(e => {
utils.ipcSend(request.responceChannel, { success: false, error: e });
});
});
ipcMain.on("register-models-deep-link", async (event, request: IpcRequest<void>) => {
const maps = LocalModelsManagerService.getInstance();
const utils = UtilsService.getInstance();
try{
try {
const res = maps.enableDeepLinks();
utils.ipcSend(request.responceChannel, {success: true, data: res});
utils.ipcSend(request.responceChannel, { success: true, data: res });
} catch (e) {
utils.ipcSend(request.responceChannel, { success: false });
}
catch(e){
utils.ipcSend(request.responceChannel, {success: false});
}
});
ipcMain.on("unregister-models-deep-link", async (event, request: IpcRequest<void>) => {
const maps = LocalModelsManagerService.getInstance();
const utils = UtilsService.getInstance();
try{
try {
const res = maps.disableDeepLinks();
utils.ipcSend(request.responceChannel, {success: true, data: res});
utils.ipcSend(request.responceChannel, { success: true, data: res });
} catch (e) {
utils.ipcSend(request.responceChannel, { success: false });
}
catch(e){
utils.ipcSend(request.responceChannel, {success: false});
}
});
ipcMain.on("is-models-deep-links-enabled", async (event, request: IpcRequest<void>) => {
const maps = LocalModelsManagerService.getInstance();
const utils = UtilsService.getInstance();
try{
try {
const res = maps.isDeepLinksEnabled();
utils.ipcSend(request.responceChannel, {success: true, data: res});
utils.ipcSend(request.responceChannel, { success: true, data: res });
} catch (e) {
utils.ipcSend(request.responceChannel, { success: false });
}
catch(e){
utils.ipcSend(request.responceChannel, {success: false});
}
});
ipc.on<ModelDownload>("download-model", async (req, reply) => {
@@ -73,13 +65,13 @@ ipc.on<ModelDownload>("download-model", async (req, reply) => {
reply(models.downloadModel(req.args.model, req.args.version));
});
ipc.on<{version: BSVersion, type: MSModelType}>("get-version-models", async (req, reply) => {
ipc.on<{ version: BSVersion; type: MSModelType }>("get-version-models", async (req, reply) => {
const models = LocalModelsManagerService.getInstance();
const res = await models.getModels(req.args.type, req.args.version);
reply(res);
});
ipc.on<{version: BSVersion, models: BsmLocalModel[], outPath: string}>("export-models", async (req, reply) => {
ipc.on<{ version: BSVersion; models: BsmLocalModel[]; outPath: string }>("export-models", async (req, reply) => {
const models = LocalModelsManagerService.getInstance();
reply(models.exportModels(req.args.outPath, req.args.version, req.args.models));
});
@@ -87,4 +79,4 @@ ipc.on<{version: BSVersion, models: BsmLocalModel[], outPath: string}>("export-m
ipc.on<BsmLocalModel[]>("delete-models", async (req, reply) => {
const models = LocalModelsManagerService.getInstance();
reply(models.deleteModels(req.args));
});
});
+38 -39
View File
@@ -6,63 +6,62 @@ import { IpcRequest } from "shared/models/ipc";
import { Mod } from "shared/models/mods/mod.interface";
import { InstallModsResult } from "shared/models/mods";
import log from "electron-log";
import { IpcService } from "../services/ipc.service";
import { from } from "rxjs";
ipcMain.on("get-available-mods", (event, request: IpcRequest<BSVersion>) => {
const utils = UtilsService.getInstance();
const ipc = IpcService.getInstance();
ipc.on<BSVersion>("get-available-mods", (req, reply) => {
const modsManager = BsModsManagerService.getInstance();
modsManager.getAvailableMods(request.args).then(mods => {
utils.ipcSend(request.responceChannel, {success: true, data: mods});
}).catch(err =>{
utils.ipcSend(request.responceChannel, {success: false});
log.error("ipc", "get-available-mods", err, request);
});
reply(from(modsManager.getAvailableMods(req.args)));
});
ipcMain.on("get-installed-mods", (event, request: IpcRequest<BSVersion>) => {
const utils = UtilsService.getInstance();
ipc.on<BSVersion>("get-installed-mods", (req, reply) => {
const modsManager = BsModsManagerService.getInstance();
modsManager.getInstalledMods(request.args).then(mods => {
utils.ipcSend(request.responceChannel, {success: true, data: mods});
}).catch(err => {
utils.ipcSend(request.responceChannel, {success: false});
log.error("ipc", "get-installed-mods", err, request);
});
reply(from(modsManager.getInstalledMods(req.args)));
});
ipcMain.on("install-mods", (event, request: IpcRequest<{mods: Mod[], version: BSVersion}>) => {
ipcMain.on("install-mods", (event, request: IpcRequest<{ mods: Mod[]; version: BSVersion }>) => {
const utils = UtilsService.getInstance();
const modsManager = BsModsManagerService.getInstance();
modsManager.installMods(request.args.mods, request.args.version).then(nbInstalled => {
utils.ipcSend<InstallModsResult>(request.responceChannel, {success: true, data: nbInstalled})
}).catch(err => {
utils.ipcSend(request.responceChannel, {success: false, error: err});
log.error("ipc", "install-mods", err, request);
})
modsManager
.installMods(request.args.mods, request.args.version)
.then(nbInstalled => {
utils.ipcSend<InstallModsResult>(request.responceChannel, { success: true, data: nbInstalled });
})
.catch(err => {
utils.ipcSend(request.responceChannel, { success: false, error: err });
log.error("ipc", "install-mods", err, request);
});
});
ipcMain.on("uninstall-mods", (event, request: IpcRequest<{mods: Mod[], version: BSVersion}>) => {
ipcMain.on("uninstall-mods", (event, request: IpcRequest<{ mods: Mod[]; version: BSVersion }>) => {
const utils = UtilsService.getInstance();
const modsManager = BsModsManagerService.getInstance();
modsManager.uninstallMods(request.args.mods, request.args.version).then(nbInstalled => {
utils.ipcSend(request.responceChannel, {success: true, data: nbInstalled})
}).catch(err => {
utils.ipcSend(request.responceChannel, {success: false, error: err});
log.error("ipc", "uninstall-mods", err, request);
})
modsManager
.uninstallMods(request.args.mods, request.args.version)
.then(nbInstalled => {
utils.ipcSend(request.responceChannel, { success: true, data: nbInstalled });
})
.catch(err => {
utils.ipcSend(request.responceChannel, { success: false, error: err });
log.error("ipc", "uninstall-mods", err, request);
});
});
ipcMain.on("uninstall-all-mods", (event, request: IpcRequest<BSVersion>) => {
const utils = UtilsService.getInstance();
const modsManager = BsModsManagerService.getInstance();
modsManager.uninstallAllMods(request.args).then(nbInstalled => {
utils.ipcSend(request.responceChannel, {success: true, data: nbInstalled})
}).catch(err => {
utils.ipcSend(request.responceChannel, {success: false, error: err});
log.error("ipc", "uninstall-all-mods", err, request);
})
});
modsManager
.uninstallAllMods(request.args)
.then(nbInstalled => {
utils.ipcSend(request.responceChannel, { success: true, data: nbInstalled });
})
.catch(err => {
utils.ipcSend(request.responceChannel, { success: false, error: err });
log.error("ipc", "uninstall-all-mods", err, request);
});
});
+23 -28
View File
@@ -2,60 +2,55 @@ import { ipcMain } from "electron";
import { IpcRequest } from "shared/models/ipc";
import { LocalPlaylistsManagerService } from "../services/additional-content/local-playlists-manager.service";
import { UtilsService } from "../services/utils.service";
import log from "electron-log";
ipcMain.on("one-click-install-playlist", async (event, request: IpcRequest<string>) => {
const utils = UtilsService.getInstance();
const playlists = LocalPlaylistsManagerService.getInstance();
playlists.oneClickInstallPlaylist(request.args).then(() => {
utils.ipcSend(request.responceChannel, {success: true});
}).catch(e => {
utils.ipcSend(request.responceChannel, {success: false, error: e});
});
playlists
.oneClickInstallPlaylist(request.args)
.then(() => {
utils.ipcSend(request.responceChannel, { success: true });
})
.catch(e => {
log.error(e);
utils.ipcSend(request.responceChannel, { success: false, error: e });
});
});
ipcMain.on("register-playlists-deep-link", async (event, request: IpcRequest<void>) => {
const maps = LocalPlaylistsManagerService.getInstance();
const utils = UtilsService.getInstance();
try{
try {
const res = maps.enableDeepLinks();
utils.ipcSend(request.responceChannel, {success: true, data: res});
utils.ipcSend(request.responceChannel, { success: true, data: res });
} catch (e) {
utils.ipcSend(request.responceChannel, { success: false });
}
catch(e){
utils.ipcSend(request.responceChannel, {success: false});
}
});
ipcMain.on("unregister-playlists-deep-link", async (event, request: IpcRequest<void>) => {
const maps = LocalPlaylistsManagerService.getInstance();
const utils = UtilsService.getInstance();
try{
try {
const res = maps.disableDeepLinks();
utils.ipcSend(request.responceChannel, {success: true, data: res});
utils.ipcSend(request.responceChannel, { success: true, data: res });
} catch (e) {
utils.ipcSend(request.responceChannel, { success: false });
}
catch(e){
utils.ipcSend(request.responceChannel, {success: false});
}
});
ipcMain.on("is-playlists-deep-links-enabled", async (event, request: IpcRequest<void>) => {
const maps = LocalPlaylistsManagerService.getInstance();
const utils = UtilsService.getInstance();
try{
try {
const res = maps.isDeepLinksEnabled();
utils.ipcSend(request.responceChannel, {success: true, data: res});
utils.ipcSend(request.responceChannel, { success: true, data: res });
} catch (e) {
utils.ipcSend(request.responceChannel, { success: false });
}
catch(e){
utils.ipcSend(request.responceChannel, {success: false});
}
});
});
+7 -11
View File
@@ -1,16 +1,12 @@
import { ipcMain } from "electron";
import { BSVersion } from 'shared/bs-version.interface';
import { UtilsService } from "../services/utils.service";
import { IpcRequest } from "shared/models/ipc";
import { BSVersion } from "shared/bs-version.interface";
import { BSLocalVersionService } from "../services/bs-local-version.service";
import { IpcService } from "../services/ipc.service";
import { from } from "rxjs";
ipcMain.on('bs.uninstall', async (event, request: IpcRequest<BSVersion>) => {
const ipc = IpcService.getInstance();
ipc.on<BSVersion>("bs.uninstall", (req, reply) => {
const bsLocalVersionService = BSLocalVersionService.getInstance();
const utilsService = UtilsService.getInstance();
if(!request.args){ utilsService.ipcSend(request.responceChannel, {success: false}); }
const res = await bsLocalVersionService.deleteVersion(request.args);
utilsService.ipcSend(request.responceChannel, {success: res});
});
reply(from(bsLocalVersionService.deleteVersion(req.args)));
});
+93 -79
View File
@@ -1,103 +1,120 @@
import { ipcMain } from 'electron';
import { UtilsService } from '../services/utils.service';
import { BSVersionLibService } from '../services/bs-version-lib.service'
import { BSVersion } from 'shared/bs-version.interface';
import { exec } from 'child_process';
import { IpcRequest } from 'shared/models/ipc';
import { BSLocalVersionService } from '../services/bs-local-version.service';
import { BsmException } from 'shared/models/bsm-exception.model';
import { IpcService } from '../services/ipc.service';
import { from } from 'rxjs';
import path from 'path';
import { pathExist } from '../helpers/fs.helpers';
import { FolderLinkerService, LinkOptions } from '../services/folder-linker.service';
import { LocalMapsManagerService } from '../services/additional-content/local-maps-manager.service';
import { readJSON, writeJSON } from 'fs-extra';
import log from "electron-log"
import { VersionLinkerAction } from 'renderer/services/version-folder-linker.service';
import { VersionFolderLinkerService } from '../services/version-folder-linker.service';
import { ipcMain, shell } from "electron";
import { UtilsService } from "../services/utils.service";
import { BSVersionLibService } from "../services/bs-version-lib.service";
import { BSVersion } from "shared/bs-version.interface";
import { IpcRequest } from "shared/models/ipc";
import { BSLocalVersionService } from "../services/bs-local-version.service";
import { BsmException } from "shared/models/bsm-exception.model";
import { IpcService } from "../services/ipc.service";
import { from } from "rxjs";
import path from "path";
import { pathExist } from "../helpers/fs.helpers";
import { FolderLinkerService, LinkOptions } from "../services/folder-linker.service";
import { LocalMapsManagerService } from "../services/additional-content/local-maps-manager.service";
import { readJSON, writeJSON } from "fs-extra";
import log from "electron-log";
import { VersionLinkerAction } from "renderer/services/version-folder-linker.service";
import { VersionFolderLinkerService } from "../services/version-folder-linker.service";
const ipc = IpcService.getInstance();
ipcMain.on('bs-version.get-version-dict', (event, req: IpcRequest<void>) => {
BSVersionLibService.getInstance().getAvailableVersions().then(versions => {
UtilsService.getInstance().ipcSend(req.responceChannel, {success: true, data: versions});
}).catch(() => {
UtilsService.getInstance().ipcSend(req.responceChannel, {success: false});
})
ipcMain.on("bs-version.get-version-dict", (_event, req: IpcRequest<void>) => {
BSVersionLibService.getInstance()
.getAvailableVersions()
.then(versions => {
UtilsService.getInstance().ipcSend(req.responceChannel, { success: true, data: versions });
})
.catch(() => {
UtilsService.getInstance().ipcSend(req.responceChannel, { success: false });
});
});
ipcMain.on('bs-version.installed-versions', async (event, req: IpcRequest<void>) => {
BSLocalVersionService.getInstance().getInstalledVersions().then(versions => {
UtilsService.getInstance().ipcSend(req.responceChannel, {success: true, data: versions});
}).catch(() => {
UtilsService.getInstance().ipcSend(req.responceChannel, {success: false});
})
ipcMain.on("bs-version.installed-versions", async (_event, req: IpcRequest<void>) => {
BSLocalVersionService.getInstance()
.getInstalledVersions()
.then(versions => {
UtilsService.getInstance().ipcSend(req.responceChannel, { success: true, data: versions });
})
.catch(() => {
UtilsService.getInstance().ipcSend(req.responceChannel, { success: false });
});
});
ipcMain.on("bs-version.open-folder", async (event, req: IpcRequest<BSVersion>) => {
const localVersionService = BSLocalVersionService.getInstance();
const versionFolder = await localVersionService.getVersionPath(req.args);
(await pathExist(versionFolder)) && exec(`start "" "${versionFolder}"`);
ipcMain.on("bs-version.open-folder", async (_event, req: IpcRequest<BSVersion>) => {
const localVersionService = BSLocalVersionService.getInstance();
const versionFolder = await localVersionService.getVersionPath(req.args);
if (!(await pathExist(versionFolder))) return;
shell.openPath(versionFolder);
});
ipcMain.on("bs-version.edit", async (event, req: IpcRequest<{version: BSVersion, name: string, color: string}>) => {
BSLocalVersionService.getInstance().editVersion(req.args.version, req.args.name, req.args.color).then(res => {
UtilsService.getInstance().ipcSend(req.responceChannel, {success: !!res, data: res});
}).catch((error: BsmException) => {
UtilsService.getInstance().ipcSend(req.responceChannel, {success: false, error});
});
ipcMain.on("bs-version.edit", async (__event, req: IpcRequest<{ version: BSVersion; name: string; color: string }>) => {
BSLocalVersionService.getInstance()
.editVersion(req.args.version, req.args.name, req.args.color)
.then(res => {
UtilsService.getInstance().ipcSend(req.responceChannel, { success: !!res, data: res });
})
.catch((error: BsmException) => {
UtilsService.getInstance().ipcSend(req.responceChannel, { success: false, error });
});
});
ipcMain.on("bs-version.clone", async (event, req: IpcRequest<{version: BSVersion, name: string, color: string}>) => {
BSLocalVersionService.getInstance().cloneVersion(req.args.version, req.args.name, req.args.color).then(res => {
UtilsService.getInstance().ipcSend(req.responceChannel, {success: !!res, data: res});
}).catch((error: BsmException) => {
UtilsService.getInstance().ipcSend(req.responceChannel, {success: false, error});
});
ipcMain.on("bs-version.clone", async (_event, req: IpcRequest<{ version: BSVersion; name: string; color: string }>) => {
BSLocalVersionService.getInstance()
.cloneVersion(req.args.version, req.args.name, req.args.color)
.then(res => {
UtilsService.getInstance().ipcSend(req.responceChannel, { success: !!res, data: res });
})
.catch((error: BsmException) => {
UtilsService.getInstance().ipcSend(req.responceChannel, { success: false, error });
});
});
ipc.on("get-version-full-path", async (req: IpcRequest<BSVersion>, reply) => {
const localVersions = BSLocalVersionService.getInstance();
reply(from( localVersions.getVersionPath(req.args) ));
reply(from(localVersions.getVersionPath(req.args)));
});
ipc.on("relative-version-path-to-full", async (req: IpcRequest<{version: BSVersion, relative: string}>, reply) => {
ipc.on("relative-version-path-to-full", async (req: IpcRequest<{ version: BSVersion; relative: string }>, reply) => {
path.isAbsolute(req.args.relative) && reply(from(Promise.resolve(req.args.relative)));
const localVersions = BSLocalVersionService.getInstance();
const promise = localVersions.getVersionPath(req.args.version).catch(() => null).then(versionPath => {
return path.join(versionPath, req.args.relative);
});
const promise = localVersions
.getVersionPath(req.args.version)
.catch(() => null)
.then(versionPath => {
return path.join(versionPath, req.args.relative);
});
reply(from(promise));
});
ipc.on("full-version-path-to-relative", async (req: IpcRequest<{version: BSVersion, fullPath: string}>, reply) => {
ipc.on("full-version-path-to-relative", async (req: IpcRequest<{ version: BSVersion; fullPath: string }>, reply) => {
const localVersions = BSLocalVersionService.getInstance();
const promise = localVersions.getVersionPath(req.args.version).catch(() => null).then(versionPath => {
return path.relative(versionPath, req.args.fullPath);
});
const promise = localVersions
.getVersionPath(req.args.version)
.catch(() => null)
.then(versionPath => {
return path.relative(versionPath, req.args.fullPath);
});
reply(from(promise));
});
ipc.on("get-linked-folders", async (req: IpcRequest<{version: BSVersion, options?: { relative?: boolean }}>, reply) => {
ipc.on("get-linked-folders", async (req: IpcRequest<{ version: BSVersion; options?: { relative?: boolean } }>, reply) => {
const versionLinker = VersionFolderLinkerService.getInstance();
reply(from(versionLinker.getLinkedFolders(req.args.version, req.args.options)));
});
ipc.on("link-folder", async (req: IpcRequest<{ folder: string, options?: LinkOptions}>, reply) => {
ipc.on("link-folder", async (req: IpcRequest<{ folder: string; options?: LinkOptions }>, reply) => {
req.args.options ??= {};
const linker = FolderLinkerService.getInstance();
const relativeMapsFolder = path.join(LocalMapsManagerService.LEVELS_ROOT_FOLDER, LocalMapsManagerService.CUSTOM_LEVELS_FOLDER)
const relativeMapsFolder = path.join(LocalMapsManagerService.LEVELS_ROOT_FOLDER, LocalMapsManagerService.CUSTOM_LEVELS_FOLDER);
if(req.args.folder.includes(relativeMapsFolder)){
return reply(from(linker.linkFolder(req.args.folder, {keepContents: req.args.options?.keepContents, intermediateFolder: LocalMapsManagerService.SHARED_MAPS_FOLDER})));
if (req.args.folder.includes(relativeMapsFolder)) {
return reply(from(linker.linkFolder(req.args.folder, { keepContents: req.args.options?.keepContents, intermediateFolder: LocalMapsManagerService.SHARED_MAPS_FOLDER })));
}
if(req.args.folder.includes("UserData")){
if (req.args.folder.includes("UserData")) {
req.args.options = { ...req.args.options, backup: true };
}
@@ -105,20 +122,21 @@ ipc.on("link-folder", async (req: IpcRequest<{ folder: string, options?: LinkOpt
const jsonIPAPath = path.join(req.args.folder, "Beat Saber IPA.json");
if(!(await pathExist(jsonIPAPath))){ return reply(res); }
if (!(await pathExist(jsonIPAPath))) {
return reply(res);
}
await res.toPromise();
try{
const ipaData = (await readJSON(jsonIPAPath)) ?? {} as any;
ipaData["YeetMods"] = false;
await writeJSON(jsonIPAPath, ipaData, {spaces: 4});
}catch(e){
try {
const ipaData = (await readJSON(jsonIPAPath)) ?? ({} as any);
ipaData.YeetMods = false;
await writeJSON(jsonIPAPath, ipaData, { spaces: 4 });
} catch (e) {
log.error("Disable YeetMods", e);
}
reply(res);
});
ipc.on("link-version-folder-action", async (req: IpcRequest<VersionLinkerAction>, reply) => {
@@ -126,34 +144,30 @@ ipc.on("link-version-folder-action", async (req: IpcRequest<VersionLinkerAction>
reply(from(versionLinker.doAction(req.args)));
});
ipc.on("is-version-folder-linked", async (req: IpcRequest<{ version: BSVersion, relativeFolder: string }>, reply) => {
ipc.on("is-version-folder-linked", async (req: IpcRequest<{ version: BSVersion; relativeFolder: string }>, reply) => {
const versionLinker = VersionFolderLinkerService.getInstance();
reply(from(versionLinker.isFolderLinked(req.args.version, req.args.relativeFolder)));
});
ipc.on("unlink-folder", async (req: IpcRequest<{ folder: string, options?: LinkOptions}>, reply) => {
ipc.on("unlink-folder", async (req: IpcRequest<{ folder: string; options?: LinkOptions }>, reply) => {
req.args.options ??= {};
const linker = FolderLinkerService.getInstance();
const relativeMapsFolder = path.join(LocalMapsManagerService.LEVELS_ROOT_FOLDER, LocalMapsManagerService.CUSTOM_LEVELS_FOLDER)
const relativeMapsFolder = path.join(LocalMapsManagerService.LEVELS_ROOT_FOLDER, LocalMapsManagerService.CUSTOM_LEVELS_FOLDER);
if(req.args.folder.includes(relativeMapsFolder)){
return reply(from(linker.unlinkFolder(req.args.folder, {...req.args.options, intermediateFolder: LocalMapsManagerService.SHARED_MAPS_FOLDER})));
if (req.args.folder.includes(relativeMapsFolder)) {
return reply(from(linker.unlinkFolder(req.args.folder, { ...req.args.options, intermediateFolder: LocalMapsManagerService.SHARED_MAPS_FOLDER })));
}
if(req.args.folder.includes("UserData")){
if (req.args.folder.includes("UserData")) {
req.args.options = { ...req.args.options, backup: true };
}
reply(from(linker.unlinkFolder(req.args.folder, req.args.options)));
});
ipc.on("relink-all-versions-folders", async (req: IpcRequest<void>, reply) => {
const versionLinker = VersionFolderLinkerService.getInstance();
reply(from(versionLinker.relinkAllVersionsFolders()));
});
+14 -14
View File
@@ -1,14 +1,14 @@
import './bs-download-ipcs';
import './os-controls-ipcs';
import './bs-launcher-ipcs';
import './bs-version-ipcs';
import './bs-uninstall-ipcs';
import './supporters-ipcs';
import './launcher-ipcs';
import './window-manager-ipcs';
import './bs-mods-ipcs';
import './bs-maps-ipcs';
import './beat-saver-ipcs';
import './bs-playlist-ipcs';
import './model-saber.ipcs';
import './bs-model-ipcs';
import "./bs-download-ipcs";
import "./os-controls-ipcs";
import "./bs-launcher-ipcs";
import "./bs-version-ipcs";
import "./bs-uninstall-ipcs";
import "./supporters-ipcs";
import "./launcher-ipcs";
import "./window-manager-ipcs";
import "./bs-mods-ipcs";
import "./bs-maps-ipcs";
import "./beat-saver-ipcs";
import "./bs-playlist-ipcs";
import "./model-saber.ipcs";
import "./bs-model-ipcs";
+11 -14
View File
@@ -2,30 +2,27 @@ import { ipcMain } from "electron";
import { AutoUpdaterService } from "../services/auto-updater.service";
import { IpcRequest } from "shared/models/ipc";
import { UtilsService } from "../services/utils.service";
import { IpcService } from "../services/ipc.service";
import { from } from "rxjs";
const ipc = IpcService.getInstance();
ipcMain.on("download-update", async (event, request: IpcRequest<void>) => {
const updaterService = AutoUpdaterService.getInstance();
const utilsService = UtilsService.getInstance();
updaterService.downloadUpdate().then(res => utilsService.ipcSend(request.responceChannel, {success: res}))
.catch(() => utilsService.ipcSend(request.responceChannel, {success: false}));
updaterService
.downloadUpdate()
.then(res => utilsService.ipcSend(request.responceChannel, { success: res }))
.catch(() => utilsService.ipcSend(request.responceChannel, { success: false }));
});
ipcMain.on("check-update", async (event, request: IpcRequest<void>) => {
ipc.on("check-update", (_, reply) => {
const updaterService = AutoUpdaterService.getInstance();
const utilsService = UtilsService.getInstance();
updaterService.isUpdateAvailable().then(updateAvailable => {
utilsService.ipcSend(request.responceChannel, {success: true, data: updateAvailable});
})
.catch(() => utilsService.ipcSend(request.responceChannel, {success: false}));
reply(from(updaterService.isUpdateAvailable()));
});
ipcMain.on("install-update", async (event, request: IpcRequest<void>) => {
const updaterService = AutoUpdaterService.getInstance();
updaterService.quitAndInstall();
});
});
+9 -7
View File
@@ -7,18 +7,20 @@ import { MSGetQuery } from "shared/models/models/model-saber.model";
const ipc = IpcService.getInstance();
ipcMain.on("ms-get-model-by-id", async (event, request: IpcRequest<string|number>) => {
ipcMain.on("ms-get-model-by-id", async (event, request: IpcRequest<string | number>) => {
const utils = UtilsService.getInstance();
const ms = ModelSaberService.getInstance();
ms.getModelById(request.args).then(model => {
utils.ipcSend(request.responceChannel, {success: true, data: model});
}).catch(e => {
utils.ipcSend(request.responceChannel, {success: false, error: e});
})
ms.getModelById(request.args)
.then(model => {
utils.ipcSend(request.responceChannel, { success: true, data: model });
})
.catch(e => {
utils.ipcSend(request.responceChannel, { success: false, error: e });
});
});
ipc.on<MSGetQuery>("search-models", async (req, reply) => {
const ms = ModelSaberService.getInstance();
reply(ms.searchModels(req.args));
});
});
+33 -38
View File
@@ -1,47 +1,37 @@
import { ipcMain, shell, dialog, app } from 'electron';
import { UtilsService } from '../services/utils.service';
import { IpcRequest } from 'shared/models/ipc';
import { SystemNotificationOptions } from 'shared/models/notification/system-notification.model';
import { NotificationService } from '../services/notification.service';
import { SteamService } from '../services/steam.service';
import { IpcService } from '../services/ipc.service';
import { from } from 'rxjs';
import { fstat, lstat } from 'fs';
import { pathExist } from '../helpers/fs.helpers';
import { ipcMain, shell, dialog, app } from "electron";
import { UtilsService } from "../services/utils.service";
import { IpcRequest } from "shared/models/ipc";
import { SystemNotificationOptions } from "shared/models/notification/system-notification.model";
import { NotificationService } from "../services/notification.service";
import { SteamService } from "../services/steam.service";
import { IpcService } from "../services/ipc.service";
import { from, of } from "rxjs";
// TODO IMPROVE WINDOW CONTROL BY USING WINDOW SERVICE
const ipc = IpcService.getInstance();
ipcMain.on('window.close', async () => {
const utils = UtilsService.getInstance();
utils.getMainWindows("index.html")?.close();
});
ipcMain.on('window.maximize', async () => {
ipcMain.on("window.maximize", async () => {
const utils = UtilsService.getInstance();
utils.getMainWindows("index.html")?.maximize();
});
ipcMain.on('window.minimize', async () => {
ipcMain.on("window.minimize", async () => {
const utils = UtilsService.getInstance();
utils.getMainWindows("index.html")?.minimize();
});
ipcMain.on('window.reset', async () => {
ipcMain.on("window.reset", async () => {
const utils = UtilsService.getInstance();
utils.getMainWindows("index.html")?.restore();
});
ipcMain.on('new-window', async (event, request: IpcRequest<string>) => {
ipcMain.on("new-window", async (event, request: IpcRequest<string>) => {
shell.openExternal(request.args);
});
ipc.on('choose-folder', async (req: IpcRequest<string>, reply) => {
reply(
from(dialog.showOpenDialog({properties: ['openDirectory'], defaultPath: req.args ?? ""}))
)
ipc.on<string>("choose-folder", async (req, reply) => {
reply(from(dialog.showOpenDialog({ properties: ["openDirectory"], defaultPath: req.args ?? "" })));
});
ipcMain.on("window.progression", async (event, request: IpcRequest<number>) => {
@@ -49,16 +39,18 @@ ipcMain.on("window.progression", async (event, request: IpcRequest<number>) => {
utils.getMainWindows("index.html")?.setProgressBar(request.args / 100);
});
ipcMain.on('save-file', async (event, request: IpcRequest<{filename?: string, filters?: Electron.FileFilter[]}>) => {
dialog.showSaveDialog({properties: ['showOverwriteConfirmation'], defaultPath: request.args.filename, filters: request.args.filters}).then(res => {
ipcMain.on("save-file", async (event, request: IpcRequest<{ filename?: string; filters?: Electron.FileFilter[] }>) => {
dialog.showSaveDialog({ properties: ["showOverwriteConfirmation"], defaultPath: request.args.filename, filters: request.args.filters }).then(res => {
const utils = UtilsService.getInstance();
if(res.canceled || !res.filePath){ utils.ipcSend(request.responceChannel, {success: false}); }
UtilsService.getInstance().ipcSend(request.responceChannel, {success: true, data: res.filePath});
})
if (res.canceled || !res.filePath) {
utils.ipcSend(request.responceChannel, { success: false });
}
UtilsService.getInstance().ipcSend(request.responceChannel, { success: true, data: res.filePath });
});
});
ipcMain.on("current-version", async (event, request: IpcRequest<void>) => {
UtilsService.getInstance().ipcSend(request.responceChannel, {success: true, data: app.getVersion()});
ipc.on("current-version", (_, reply) => {
reply(of(app.getVersion()));
});
ipcMain.on("open-logs", async (event, request: IpcRequest<void>) => {
@@ -66,15 +58,18 @@ ipcMain.on("open-logs", async (event, request: IpcRequest<void>) => {
});
ipcMain.on("notify-system", async (event, request: IpcRequest<SystemNotificationOptions>) => {
NotificationService.getInstance().notify(request.args)
NotificationService.getInstance().notify(request.args);
});
ipcMain.on("open-steam", async (event, request: IpcRequest<void>) => {
const steam = SteamService.getInstance();
const utils = UtilsService.getInstance();
steam.openSteam().then(res => {
utils.ipcSend(request.responceChannel, {success: true, data: res});
}).catch((e) => {
utils.ipcSend(request.responceChannel, {success: false, error: e});
});
});
steam
.openSteam()
.then(res => {
utils.ipcSend(request.responceChannel, { success: true, data: res });
})
.catch(e => {
utils.ipcSend(request.responceChannel, { success: false, error: e });
});
});
+10 -7
View File
@@ -1,15 +1,18 @@
import { ipcMain } from "electron";
import { SupportersService } from "../services/supporters.service";
import { IpcRequest } from "shared/models/ipc";
import { UtilsService } from '../services/utils.service';
import { UtilsService } from "../services/utils.service";
ipcMain.on("get-supporters", (event, request: IpcRequest<void>) => {
const utils = UtilsService.getInstance();
const supportersService = SupportersService.getInstance();
supportersService.getSupporters().then(supporters => {
utils.ipcSend(request.responceChannel, {success: true, data: supporters});
}).catch(() => {
utils.ipcSend(request.responceChannel, {success: false});
});
});
supportersService
.getSupporters()
.then(supporters => {
utils.ipcSend(request.responceChannel, { success: true, data: supporters });
})
.catch(() => {
utils.ipcSend(request.responceChannel, { success: false });
});
});
+18 -10
View File
@@ -1,27 +1,35 @@
import { ipcMain } from "electron";
import { WindowManagerService } from "../services/window-manager.service";
import { IpcRequest } from "shared/models/ipc";
import { AppWindow } from "shared/models/window-manager/app-window.model";
import { BSLauncherService } from "../services/bs-launcher.service";
import { IpcService } from "../services/ipc.service";
import { from, of } from "rxjs";
const launcher = BSLauncherService.getInstance();
const ipc = IpcService.getInstance();
ipcMain.on("open-window-then-close-all", async (event, request: IpcRequest<AppWindow>) => {
ipc.on<AppWindow>("open-window-then-close-all", (req, reply) => {
const windowManager = WindowManagerService.getInstance();
windowManager.openWindow(request.args).then(window => {
windowManager.closeAllWindows(request.args);
const res = windowManager.openWindow(req.args).then(() => {
windowManager.closeAllWindows(req.args);
});
reply(from(res));
});
ipcMain.on("close-all-windows", async (event, request: IpcRequest<AppWindow>) => {
ipc.on<AppWindow>("close-all-windows", async (req, reply) => {
await launcher.restoreSteamVR();
const windowManager = WindowManagerService.getInstance();
windowManager.closeAllWindows(request.args);
reply(of(windowManager.closeAllWindows(req.args)));
});
ipcMain.on("close-windows", async (event, request: IpcRequest<AppWindow[]>) => {
ipc.on<AppWindow[]>("close-windows", async (req, reply) => {
await launcher.restoreSteamVR();
const windowManager = WindowManagerService.getInstance();
windowManager.close(...request.args);
});
reply(of(windowManager.close(...req.args)));
});
ipc.on<AppWindow>("open-window-or-focus", (req, reply) => {
const windowManager = WindowManagerService.getInstance();
reply(from(windowManager.openWindowOrFocus(req.args)));
});
+50 -52
View File
@@ -1,5 +1,3 @@
/* eslint global-require: off, no-console: off, promise/always-return: off */
/**
* This module executes inside of electron's main process. You can start
* electron renderer process from here and communicate with the other processes
@@ -8,50 +6,57 @@
* When running `npm run build` or `npm run build:main`, this file is compiled to
* `./src/main.js` using webpack. This gives us some performance wins.
*/
import path from 'path';
import { app, ipcMain, protocol } from 'electron';
import log from 'electron-log';
import './ipcs';
import { WindowManagerService } from './services/window-manager.service';
import { DeepLinkService } from './services/deep-link.service';
import { AppWindow } from 'shared/models/window-manager/app-window.model';
import { LocalMapsManagerService } from './services/additional-content/local-maps-manager.service';
import { LocalPlaylistsManagerService } from './services/additional-content/local-playlists-manager.service';
import { LocalModelsManagerService } from './services/additional-content/local-models-manager.service';
import { APP_NAME } from './constants';
import { BSLauncherService } from './services/bs-launcher.service';
import { IpcRequest } from 'shared/models/ipc';
import { MSModelType } from '../shared/models/models/model-saber.model';
import path from "path";
import { app, ipcMain } from "electron";
import log from "electron-log";
import "./ipcs";
import { WindowManagerService } from "./services/window-manager.service";
import { DeepLinkService } from "./services/deep-link.service";
import { AppWindow } from "shared/models/window-manager/app-window.model";
import { LocalMapsManagerService } from "./services/additional-content/local-maps-manager.service";
import { LocalPlaylistsManagerService } from "./services/additional-content/local-playlists-manager.service";
import { LocalModelsManagerService } from "./services/additional-content/local-models-manager.service";
import { APP_NAME } from "./constants";
import { BSLauncherService } from "./services/bs-launcher.service";
import { IpcRequest } from "shared/models/ipc";
import { LivShortcut } from "./services/liv/liv-shortcut.service";
const isDebug = process.env.NODE_ENV === 'development' || process.env.DEBUG_PROD === 'true';
const isDebug = process.env.NODE_ENV === "development" || process.env.DEBUG_PROD === "true";
log.transports.file.level = 'info';
log.transports.file.resolvePath = (() => {
log.transports.file.level = "info";
log.transports.file.resolvePath = () => {
const now = new Date();
return path.join(app.getPath("logs"), `${now.getFullYear()}-${now.getMonth()+1}-${now.getDate()}-v${app.getVersion()}.log`);
});
return path.join(app.getPath("logs"), `${now.getFullYear()}-${now.getMonth() + 1}-${now.getDate()}-v${app.getVersion()}.log`);
};
log.catchErrors();
if (process.env.NODE_ENV === 'production') {
const sourceMapSupport = require('source-map-support');
sourceMapSupport.install();
if (process.env.NODE_ENV === "production") {
const sourceMapSupport = require("source-map-support");
sourceMapSupport.install();
}
if (isDebug) {
require('electron-debug')();
require("electron-debug")();
}
const installExtensions = async () => {
const installer = require('electron-devtools-installer');
const installer = require("electron-devtools-installer");
const forceDownload = !!process.env.UPGRADE_EXTENSIONS;
const extensions = ['REACT_DEVELOPER_TOOLS'];
const extensions = ["REACT_DEVELOPER_TOOLS"];
return installer.default(extensions.map((name) => installer[name]), forceDownload).catch(console.log);
return installer
.default(
extensions.map(name => installer[name]),
forceDownload
)
.catch(log.error);
};
const createWindow = async (window: AppWindow = "launcher.html") => {
if(isDebug){ await installExtensions(); }
if (isDebug) {
await installExtensions();
}
WindowManagerService.getInstance().openWindow(window);
};
@@ -59,52 +64,45 @@ const initServicesMustBeInitialized = () => {
LocalMapsManagerService.getInstance();
LocalPlaylistsManagerService.getInstance();
LocalModelsManagerService.getInstance();
// Model
LivShortcut.getInstance();
BSLauncherService.getInstance();
}
const gotTheLock = app.requestSingleInstanceLock();
if(!gotTheLock){
if (!gotTheLock) {
app.quit();
}
else{
app.on('second-instance', (e, argv) => {
} else {
app.on("second-instance", (_, argv) => {
const deepLink = argv.find(arg => DeepLinkService.getInstance().isDeepLink(arg));
if(!deepLink){ return; }
if (!deepLink) {
return;
}
DeepLinkService.getInstance().dispatchLinkOpened(deepLink);
});
app.whenReady().then(() => {
app.setAppUserModelId(APP_NAME);
initServicesMustBeInitialized();
const deepLink = process.argv.find(arg => DeepLinkService.getInstance().isDeepLink(arg));
if(!deepLink){
if (!deepLink) {
createWindow();
}
else{
} else {
DeepLinkService.getInstance().dispatchLinkOpened(deepLink);
}
protocol.registerFileProtocol('file', (request, callback) => {
const pathname = decodeURI(request.url.replace('file:///', ''));
callback(pathname);
});
BSLauncherService.getInstance().restoreSteamVR();
// Log renderer errors
ipcMain.on('log-error', (event, args: IpcRequest<any>) => {
ipcMain.on("log-error", (_, args: IpcRequest<unknown>) => {
log.error(args?.args);
});
}).catch(log.error);
}
}
+18 -23
View File
@@ -2,68 +2,64 @@ import archiver from "archiver";
import { createWriteStream } from "fs";
import { Observable } from "rxjs";
import recursive from "recursive-readdir";
import { lstatSync } from "fs";
import * as _path from "path";
import { ArchiveProgress } from "shared/models/archive.interface";
import { Progression } from "main/helpers/fs.helpers";
export class Archive{
export class Archive {
private archive: archiver.Archiver;
private readonly output: string;
private readonly directories: string[] = [];
private readonly files: string[] = [];
constructor(output: string, options?: archiver.ArchiverOptions){
constructor(output: string, options?: archiver.ArchiverOptions) {
this.output = output;
this.initArchive(options);
}
private initArchive(options?: archiver.ArchiverOptions): void{
private initArchive(options?: archiver.ArchiverOptions): void {
const defaultOptions: archiver.ArchiverOptions = {
zlib: {level: 9}
zlib: { level: 9 },
};
this.archive = archiver("zip", {...defaultOptions, ...options});
this.archive = archiver("zip", { ...defaultOptions, ...options });
}
private async loadTotalFiles(): Promise<number>{
private async loadTotalFiles(): Promise<number> {
let totalFiles = this.files.length;
for(const path of this.directories){
for (const path of this.directories) {
const files = await recursive(path);
totalFiles += files.length;
}
return totalFiles;
}
public addDirectory(path: string, destPath?: string|false): void{
public addDirectory(path: string, destPath?: string | false): void {
this.directories.push(path);
destPath = destPath === false ? false : _path.basename(path);
this.archive.directory(path, destPath);
}
public addFile(path: string, destPath?: string): void{
public addFile(path: string, destPath?: string): void {
this.files.push(path);
destPath = destPath ||= _path.basename(path);
this.archive.file(path, {name: destPath});
destPath ||= _path.basename(path);
this.archive.file(path, { name: destPath });
}
public finalize(): Observable<Progression>{
public finalize(): Observable<Progression> {
const progress: Progression = {
total: 0,
current: 0
current: 0,
};
return new Observable<Progression>(observer => {
(async () => {
progress.total = await this.loadTotalFiles();
this.archive.on("entry", e => {
if(e.stats.isDirectory()){ return; }
if (e.stats.isDirectory()) {
return;
}
progress.current++;
observer.next(progress);
});
@@ -75,5 +71,4 @@ export class Archive{
})();
});
}
}
}
+115
View File
@@ -0,0 +1,115 @@
import { ChildProcessWithoutNullStreams, SpawnOptionsWithoutStdio, spawn } from "child_process";
import { Observable, ReplaySubject, Subscriber, filter, map, share } from "rxjs";
import { DepotDownloaderArgsOptions, DepotDownloaderErrorEvent, DepotDownloaderEvent, DepotDownloaderEventType, DepotDownloaderEventTypes, DepotDownloaderInfoEvent, DepotDownloaderWarningEvent } from "../../shared/models/depot-downloader.model";
export class DepotDownloader {
private process: ChildProcessWithoutNullStreams;
private processOut$: Observable<string>;
private subscriber: Subscriber<string>;
public constructor(
options: {
command: string, args?: string[], options?: SpawnOptionsWithoutStdio, echoStartData?: unknown
},
logger?: Logger
){
this.processOut$ = new Observable<string>(subscriber => {
this.subscriber = subscriber;
this.process = spawn(options.command, options.args ?? [], options.options);
subscriber.next(`[Info]|[Start]|${JSON.stringify(options.echoStartData) ?? ""}`);
this.process.stdout.on("data", data => {
const stringData: string = data.toString();
if(!stringData.includes(DepotDownloaderInfoEvent.Progress) && !stringData.includes(DepotDownloaderInfoEvent.Validated)){
logger?.info("DepotDownloader stdout:", stringData);
}
const lines: string[] = stringData.split("\n");
lines.forEach(line => subscriber.next(line));
});
this.process.on("error", error => subscriber.error(error));
this.process.stderr.on("error", error => subscriber.error(error));
this.process.on("exit", () => subscriber.complete());
return () => {
this.process.kill();
logger?.info("DepotDownloader process end with code", this.process.exitCode);
this.process = null;
}
}).pipe(share({connector: () => new ReplaySubject(1)}));
}
public $events(): Observable<DepotDownloaderEvent<unknown>>{
const eventTypesArr = Object.values(DepotDownloaderEventType);
const DepotDownloaderSubTypeOfEventType: {[key in DepotDownloaderEventType]: DepotDownloaderEventTypes[]} = {
[DepotDownloaderEventType.Error]: Object.values(DepotDownloaderErrorEvent),
[DepotDownloaderEventType.Warning]: Object.values(DepotDownloaderWarningEvent),
[DepotDownloaderEventType.Info]: Object.values(DepotDownloaderInfoEvent),
}
return this.processOut$.pipe(map(line => {
const matched = (line.toString() as string).match(/(?:\[(.*?)\])\|(?:\[(.*?)\]\|)?(.*?)(?=$|\[)/gm)?.[0] ?? null;
if(!matched){ return null; }
const splitedLine = matched.split("|").map(str => str.trim().replaceAll("[", "").replaceAll("]", "")) as [DepotDownloaderEventType, DepotDownloaderEventTypes, unknown];
if(!eventTypesArr.includes(splitedLine[0]) || !DepotDownloaderSubTypeOfEventType[splitedLine[0]].includes(splitedLine[1])){
return null;
}
return {
type: splitedLine[0],
subType: splitedLine[1],
data: splitedLine[2],
}
}),
filter(Boolean));
}
public sendInput(input: string): boolean{
if(!this.process.stdin.writable){ throw new Error("DepotDownloader stdin is not writable"); }
return this.process.stdin.write(`${input}\n`);
}
public stop(){
this.subscriber.complete();
}
public get running(){ return !!this.process }
public static buildArgs(depotDownloaderArgs: DepotDownloaderArgsOptions): string[]{
const args: string[] = [];
for(const [key, value] of Object.entries(depotDownloaderArgs)){
if(value === true){
args.push(`-${key}`);
}
else if(value){
args.push(`-${key}`);
args.push(`${value}`);
}
}
return args;
}
}
interface Logger {
info: (...args: unknown[]) => void,
warn: (...args: unknown[]) => void,
error: (...args: unknown[]) => void,
}
+25 -18
View File
@@ -1,23 +1,30 @@
import { contextBridge, ipcRenderer, IpcRendererEvent } from 'electron';
import { IpcChannel } from 'shared/models/ipc/ipc-response.interface';
import { contextBridge, ipcRenderer, IpcRendererEvent } from "electron";
import { ProviderPlatform } from "shared/models/provider-platform.enum";
contextBridge.exposeInMainWorld('electron', {
ipcRenderer: {
sendMessage(channel: IpcChannel, args: unknown[]) {
ipcRenderer.send(channel, args);
},
on(channel: IpcChannel, func: (...args: unknown[]) => void) {
const subscription = (_event: IpcRendererEvent, ...args: unknown[]) =>
func(...args);
ipcRenderer.on(channel, subscription);
const sep = process.platform === ProviderPlatform.WINDOWS ? "\\" : "/";
return () => ipcRenderer.removeListener(channel, subscription);
contextBridge.exposeInMainWorld("electron", {
ipcRenderer: {
sendMessage(channel: string, args: unknown[]) {
ipcRenderer.send(channel, args);
},
on(channel: string, func: (...args: unknown[]) => void) {
const subscription = (_event: IpcRendererEvent, ...args: unknown[]) => func(...args);
ipcRenderer.on(channel, subscription);
return () => ipcRenderer.removeListener(channel, subscription);
},
once(channel: string, func: (...args: unknown[]) => void) {
ipcRenderer.once(channel, (_event, ...args) => func(...args));
},
removeAllListeners(channel: string) {
ipcRenderer.removeAllListeners(channel);
},
},
once(channel: IpcChannel, func: (...args: unknown[]) => void) {
ipcRenderer.once(channel, (_event, ...args) => func(...args));
},
removeAllListeners(channel: IpcChannel) {
ipcRenderer.removeAllListeners(channel);
path: {
sep,
join: (...args: string[]): string => {
return args.join(sep);
}
}
},
});
@@ -6,29 +6,31 @@ import { BSLocalVersionService } from "../bs-local-version.service";
import { InstallationLocationService } from "../installation-location.service";
import { UtilsService } from "../utils.service";
import crypto from "crypto";
import { lstatSync, unlinkSync } from "fs";
import { copySync } from "fs-extra";
import { lstatSync } from "fs";
import { copy, createReadStream, ensureDir, realpath, unlink } from "fs-extra";
import StreamZip from "node-stream-zip";
import { RequestService } from "../request.service";
import sanitize from "sanitize-filename";
import { DeepLinkService } from "../deep-link.service";
import log from 'electron-log';
import log from "electron-log";
import { WindowManagerService } from "../window-manager.service";
import { ipcMain } from "electron";
import { IpcRequest } from 'shared/models/ipc';
import { IpcRequest } from "shared/models/ipc";
import { Observable, lastValueFrom } from "rxjs";
import { Archive } from "../../models/archive.class";
import { deleteFolder, ensureFolderExist, getFoldersInFolder, pathExist } from "../../helpers/fs.helpers";
import { deleteFolder, ensureFolderExist, getFilesInFolder, getFoldersInFolder, pathExist } from "../../helpers/fs.helpers";
import { readFile } from "fs/promises";
import { FolderLinkerService } from "../folder-linker.service";
import { allSettled } from "../../../shared/helpers/promise.helpers";
import { splitIntoChunk } from "../../../shared/helpers/array.helpers";
export class LocalMapsManagerService {
private static instance: LocalMapsManagerService;
public static getInstance(): LocalMapsManagerService{
if(!LocalMapsManagerService.instance){ LocalMapsManagerService.instance = new LocalMapsManagerService(); }
public static getInstance(): LocalMapsManagerService {
if (!LocalMapsManagerService.instance) {
LocalMapsManagerService.instance = new LocalMapsManagerService();
}
return LocalMapsManagerService.instance;
}
@@ -38,7 +40,7 @@ export class LocalMapsManagerService {
private readonly DEEP_LINKS = {
BeatSaver: "beatsaver",
ScoreSaber: "web+bsmap"
ScoreSaber: "web+bsmap",
};
private readonly localVersion: BSLocalVersionService;
@@ -49,7 +51,7 @@ export class LocalMapsManagerService {
private readonly windows: WindowManagerService;
private readonly linker = FolderLinkerService.getInstance();
private constructor(){
private constructor() {
this.localVersion = BSLocalVersionService.getInstance();
this.installLocation = InstallationLocationService.getInstance();
this.utils = UtilsService.getInstance();
@@ -69,142 +71,169 @@ export class LocalMapsManagerService {
});
}
public async getMapsFolderPath(version?: BSVersion): Promise<string>{
if(version){ return path.join(await this.localVersion.getVersionPath(version), LocalMapsManagerService.LEVELS_ROOT_FOLDER, LocalMapsManagerService.CUSTOM_LEVELS_FOLDER); }
const sharedMapsPath = path.join(this.installLocation.sharedContentPath, LocalMapsManagerService.SHARED_MAPS_FOLDER, LocalMapsManagerService.CUSTOM_LEVELS_FOLDER);
if(!(await pathExist(sharedMapsPath))){
public async getMapsFolderPath(version?: BSVersion): Promise<string> {
if (version) {
return path.join(await this.localVersion.getVersionPath(version), LocalMapsManagerService.LEVELS_ROOT_FOLDER, LocalMapsManagerService.CUSTOM_LEVELS_FOLDER);
}
const sharedMapsPath = path.join(await this.installLocation.sharedContentPath(), LocalMapsManagerService.SHARED_MAPS_FOLDER, LocalMapsManagerService.CUSTOM_LEVELS_FOLDER);
if (!(await pathExist(sharedMapsPath))) {
await ensureFolderExist(sharedMapsPath);
}
return sharedMapsPath;
}
private async computeMapHash(mapPath: string, rawInfoString: string): Promise<string>{
const mapRawInfo = JSON.parse(rawInfoString);
private async computeMapHash(mapPath: string, rawInfoString: string): Promise<string> {
const mapRawInfo: RawMapInfoData = JSON.parse(rawInfoString);
const shasum = crypto.createHash("sha1");
shasum.update(rawInfoString);
for(const set of mapRawInfo._difficultyBeatmapSets){
for(const diff of set._difficultyBeatmaps){
const hashFile = (filePath: string): Promise<void> => {
return new Promise<void>((resolve, reject) => {
const stream = createReadStream(filePath);
stream.on("data", data => shasum.update(data));
stream.on("error", reject);
stream.on("close", resolve);
});
};
for (const set of mapRawInfo._difficultyBeatmapSets) {
for (const diff of set._difficultyBeatmaps) {
const diffFilePath = path.join(mapPath, diff._beatmapFilename);
const diffContent = await readFile(diffFilePath, {encoding: "utf-8"}).catch(() => null);
diffContent && shasum.update(diffContent);
await hashFile(diffFilePath);
}
}
return shasum.digest("hex");
}
private async loadMapInfoFromPath(mapPath: string): Promise<BsmLocalMap>{
const infoFilePath = path.join(mapPath, "Info.dat");
private async loadMapInfoFromPath(mapPath: string): Promise<BsmLocalMap> {
const files = await getFilesInFolder(mapPath);
const infoFile = files.find(file => path.basename(file).toLowerCase() === "info.dat");
if(!(await pathExist(infoFilePath))){ return null; }
if (infoFile === null) {
return null;
}
const rawInfoString = await readFile(infoFilePath, {encoding: "utf-8"});
const rawInfoString = await readFile(infoFile, { encoding: "utf-8" });
const rawInfo: RawMapInfoData = JSON.parse(rawInfoString);
const coverUrl = new URL(`file:///${path.join(mapPath, rawInfo._coverImageFilename)}`).href;
const songUrl = new URL(`file:///${path.join(mapPath, rawInfo._songFilename)}`).href;
const hash = await this.computeMapHash(mapPath, rawInfoString);
return {rawInfo, coverUrl, songUrl, hash, path: mapPath};
return { rawInfo, coverUrl, songUrl, hash, path: mapPath };
}
private async downloadMapZip(zipUrl: string): Promise<{zip: StreamZip.StreamZipAsync, zipPath: string}>{
private async downloadMapZip(zipUrl: string): Promise<{ zip: StreamZip.StreamZipAsync; zipPath: string }> {
const fileName = path.basename(zipUrl);
const tempPath = this.utils.getTempPath();
await ensureFolderExist(this.utils.getTempPath());
const dest = path.join(tempPath, fileName);
const zipPath = (await lastValueFrom(this.reqService.downloadFile(zipUrl, dest))).data;
const zip = new StreamZip.async({file : zipPath});
const zip = new StreamZip.async({ file: zipPath });
return {zip, zipPath};
return { zip, zipPath };
}
private openOneClickDownloadMapWindow(mapId: string, isHash = false): void{
private openOneClickDownloadMapWindow(mapId: string, isHash = false): void {
ipcMain.once("one-click-map-info", async (event, req: IpcRequest<void>) => {
this.utils.ipcSend(req.responceChannel, {success: true, data: {id: mapId, isHash}});
this.utils.ipcSend(req.responceChannel, { success: true, data: { id: mapId, isHash } });
});
this.windows.openWindow("oneclick-download-map.html");
this.windows.openWindow("oneclick-download-map.html");
}
public getMaps(version?: BSVersion): Observable<BsmLocalMapsProgress>{
public getMaps(version?: BSVersion): Observable<BsmLocalMapsProgress> {
const progression: BsmLocalMapsProgress = {
total: 0,
loaded: 0,
maps: []
maps: [],
};
return new Observable<BsmLocalMapsProgress>(observer => {
(async () => {
const levelsFolder = await this.getMapsFolderPath(version);
const levelsPaths = (await pathExist(levelsFolder)) ? await getFoldersInFolder(levelsFolder) : [];
if(!(await pathExist(levelsFolder))) {
return observer.complete();
}
const levelsPaths = (await getFoldersInFolder(levelsFolder)) ?? [];
progression.total = levelsPaths.length;
const promises = levelsPaths.map(async levelPath => {
const mapInfo = await this.loadMapInfoFromPath(levelPath);
if(!mapInfo){ return null; }
progression.loaded++;
observer.next(progression);
return mapInfo;
});
const pathChunks = splitIntoChunk(levelsPaths, 50);
const mapsInfo = await allSettled(promises, {removeFalsy: true});
const loadedMaps: BsmLocalMap[] = [];
progression.maps = mapsInfo;
for (const chunk of pathChunks) {
const mapsInfo = await allSettled(chunk.map(async mapPath => {
const mapInfo = await this.loadMapInfoFromPath(mapPath);
if(!mapInfo) {
return null;
}
progression.loaded++;
observer.next(progression);
return mapInfo;
}), {removeFalsy: true});
loadedMaps.push(...(mapsInfo ?? []));
}
progression.maps = loadedMaps;
observer.next(progression);
})().then(() => {
observer.complete();
})();
}).catch(e=> {
observer.error(e);
});
});
}
public async versionIsLinked(version: BSVersion): Promise<boolean>{
public async versionIsLinked(version: BSVersion): Promise<boolean> {
const levelsPath = await this.getMapsFolderPath(version);
const isPathExist = await pathExist(levelsPath);
if(!isPathExist){ return false; }
if (!isPathExist) {
return false;
}
return lstatSync(levelsPath).isSymbolicLink()
return lstatSync(levelsPath).isSymbolicLink();
}
public async linkVersionMaps(version: BSVersion, keepMaps: boolean): Promise<void>{
public async linkVersionMaps(version: BSVersion, keepMaps: boolean): Promise<void> {
const versionMapsPath = await this.getMapsFolderPath(version);
return this.linker.linkFolder(versionMapsPath, {keepContents: keepMaps, intermediateFolder: LocalMapsManagerService.SHARED_MAPS_FOLDER});
return this.linker.linkFolder(versionMapsPath, { keepContents: keepMaps, intermediateFolder: LocalMapsManagerService.SHARED_MAPS_FOLDER });
}
public async unlinkVersionMaps(version: BSVersion, keepMaps: boolean): Promise<void>{
public async unlinkVersionMaps(version: BSVersion, keepMaps: boolean): Promise<void> {
const versionMapsPath = await this.getMapsFolderPath(version);
return this.linker.unlinkFolder(versionMapsPath, {keepContents: keepMaps, intermediateFolder: LocalMapsManagerService.SHARED_MAPS_FOLDER});
return this.linker.unlinkFolder(versionMapsPath, { keepContents: keepMaps, intermediateFolder: LocalMapsManagerService.SHARED_MAPS_FOLDER });
}
public deleteMaps(maps: BsmLocalMap[]): Observable<DeleteMapsProgress>{
public deleteMaps(maps: BsmLocalMap[]): Observable<DeleteMapsProgress> {
const mapsFolders = maps.map(map => map.path);
const mapsHashsToDelete = maps.map(map => map.hash);
return new Observable<DeleteMapsProgress>(observer => {
(async () => {
const progress: DeleteMapsProgress = { total: maps.length, deleted: 0 };
try{
for(const folder of mapsFolders){
try {
for (const folder of mapsFolders) {
const detail = await this.loadMapInfoFromPath(folder);
if(!mapsHashsToDelete.includes(detail?.hash)){ continue; }
if (!mapsHashsToDelete.includes(detail?.hash)) {
continue;
}
await deleteFolder(folder);
progress.deleted++;
observer.next(progress);
}
}catch(e){
} catch (e) {
observer.error(e);
}
observer.complete();
@@ -212,28 +241,30 @@ export class LocalMapsManagerService {
});
}
public async downloadMap(map: BsvMapDetail, version?: BSVersion): Promise<BsmLocalMap>{
if(!map.versions.at(0).hash){ throw "Cannot download map, no hash found"; }
public async downloadMap(map: BsvMapDetail, version?: BSVersion): Promise<BsmLocalMap> {
if (!map.versions.at(0).hash) {
throw "Cannot download map, no hash found";
}
const zipUrl = map.versions.at(0).downloadURL;
const mapsFolder = await this.getMapsFolderPath(version);
const {zip, zipPath} = await this.downloadMapZip(zipUrl);
const { zip, zipPath } = await this.downloadMapZip(zipUrl);
if (!zip) {
throw `Cannot download ${zipUrl}`;
}
const mapFolderName = sanitize(`${map.id}-${map.name}`);
const mapPath = path.join(mapsFolder, mapFolderName);
if(!zip){ throw `Cannot download ${zipUrl}`; }
await ensureFolderExist(mapPath);
await zip.extract(null, mapPath);
await zip.close();
unlinkSync(zipPath);
await unlink(zipPath);
const localMap = await this.loadMapInfoFromPath(mapPath);
localMap.bsaverInfo = map;
@@ -241,53 +272,47 @@ export class LocalMapsManagerService {
return localMap;
}
public async exportMaps(version: BSVersion, maps: BsmLocalMap[], outPath: string){
public async exportMaps(version: BSVersion, maps: BsmLocalMap[], outPath: string) {
const archive = new Archive(outPath);
if(!maps || maps.length === 0){
if (!maps || maps.length === 0) {
const mapsFolder = await this.getMapsFolderPath(version);
archive.addDirectory(mapsFolder, false);
}
else{
} else {
const mapsFolders = maps.map(map => map.path);
mapsFolders.forEach(maps => archive.addDirectory(maps));
}
return archive.finalize()
return archive.finalize();
}
public async oneClickDownloadMap(map: BsvMapDetail): Promise<void>{
const downloadedMap = await this.downloadMap(map);
public async oneClickDownloadMap(map: BsvMapDetail): Promise<void> {
const versions = await this.localVersion.getInstalledVersions();
const downloadedMap = await this.downloadMap(map, versions.pop());
const downloadedMapRealFolder = await realpath(path.dirname(downloadedMap.path));
for(const version of versions){
if(await this.versionIsLinked(version)){ continue; }
for (const version of versions) {
const versionMapsPath = await this.getMapsFolderPath(version);
await ensureDir(versionMapsPath);
await ensureFolderExist(versionMapsPath);
copySync(downloadedMap.path, path.join(versionMapsPath, path.basename(downloadedMap.path)), {overwrite: true});
if((await realpath(versionMapsPath)) === downloadedMapRealFolder){
continue;
}
await copy(downloadedMap.path, path.join(versionMapsPath, path.basename(downloadedMap.path)), { overwrite: true });
}
}
public enableDeepLinks(): boolean{
public enableDeepLinks(): boolean {
return Array.from(Object.values(this.DEEP_LINKS)).every(link => this.deepLink.registerDeepLink(link));
}
public disableDeepLinks(): boolean{
public disableDeepLinks(): boolean {
return Array.from(Object.values(this.DEEP_LINKS)).every(link => this.deepLink.unRegisterDeepLink(link));
}
public isDeepLinksEnabled(): boolean{
return Array.from(Object.values(this.DEEP_LINKS)).every(link => this.deepLink.isDeepLinkRegistred(link));
public isDeepLinksEnabled(): boolean {
return Array.from(Object.values(this.DEEP_LINKS)).every(link => this.deepLink.isDeepLinkRegistered(link));
}
}
}
@@ -1,5 +1,5 @@
import { DeepLinkService } from "../deep-link.service";
import log from "electron-log"
import log from "electron-log";
import { ipcMain } from "electron";
import { IpcRequest } from "shared/models/ipc";
import { UtilsService } from "../utils.service";
@@ -14,21 +14,21 @@ import sanitize from "sanitize-filename";
import { Progression, ensureFolderExist, unlinkPath } from "../../helpers/fs.helpers";
import { MODEL_FILE_EXTENSIONS, MODEL_TYPES, MODEL_TYPE_FOLDERS } from "../../../shared/models/models/constants";
import { InstallationLocationService } from "../installation-location.service";
import { Observable, Subscription, lastValueFrom, map } from "rxjs";
import { Observable, Subscription, lastValueFrom } from "rxjs";
import { readdir } from "fs/promises";
import md5File from "md5-file";
import { allSettled } from "../../../shared/helpers/promise.helpers";
import { ModelSaberService } from "../thrid-party/model-saber/model-saber.service";
import { BsmLocalModel } from "shared/models/models/bsm-local-model.interface";
import { ArchiveProgress } from "shared/models/archive.interface";
import { Archive } from "../../models/archive.class";
export class LocalModelsManagerService {
private static instance: LocalModelsManagerService;
public static getInstance(): LocalModelsManagerService{
if(!LocalModelsManagerService.instance){ LocalModelsManagerService.instance = new LocalModelsManagerService(); }
public static getInstance(): LocalModelsManagerService {
if (!LocalModelsManagerService.instance) {
LocalModelsManagerService.instance = new LocalModelsManagerService();
}
return LocalModelsManagerService.instance;
}
@@ -44,7 +44,7 @@ export class LocalModelsManagerService {
private readonly request: RequestService;
private readonly modelSaber: ModelSaberService;
private constructor(){
private constructor() {
this.deepLink = DeepLinkService.getInstance();
this.utils = UtilsService.getInstance();
this.windows = WindowManagerService.getInstance();
@@ -53,54 +53,48 @@ export class LocalModelsManagerService {
this.installPaths = InstallationLocationService.getInstance();
this.modelSaber = ModelSaberService.getInstance();
this.deepLink.addLinkOpenedListener(this.DEEP_LINKS.ModelSaber, (link) => {
this.deepLink.addLinkOpenedListener(this.DEEP_LINKS.ModelSaber, link => {
log.info("DEEP-LINK RECEIVED FROM", this.DEEP_LINKS.ModelSaber, link);
const url = new URL(link);
const type = url.host
const id = url.pathname.replace("/", '').split("/").at(0);
const type = url.host;
const id = url.pathname.replace("/", "").split("/").at(0);
this.openOneClickDownloadModelWindow(id, type);
});
}
private openOneClickDownloadModelWindow(id: string, type: string){
ipcMain.once("one-click-model-info", async (event, req: IpcRequest<void>) => {
this.utils.ipcSend(req.responceChannel, {success: true, data: {id, type}});
private openOneClickDownloadModelWindow(id: string, type: string) {
ipcMain.once("one-click-model-info", async (_event, req: IpcRequest<void>) => {
this.utils.ipcSend(req.responceChannel, { success: true, data: { id, type } });
});
this.windows.openWindow("oneclick-download-model.html");
}
private async getModelFolderPath(type: MSModelType, version?: BSVersion): Promise<string>{
const rootPath = !!version ? await this.localVersion.getVersionPath(version) : this.installPaths.sharedContentPath;
private async getModelFolderPath(type: MSModelType, version?: BSVersion): Promise<string> {
const rootPath = await (version ? this.localVersion.getVersionPath(version) : this.installPaths.sharedContentPath());
const modelFolderPath = path.join(rootPath, MODEL_TYPE_FOLDERS[type]);
await ensureFolderExist(modelFolderPath);
return modelFolderPath;
}
public downloadModel(model: MSModel, version: BSVersion): Observable<Progression<BsmLocalModel>>{
public downloadModel(model: MSModel, version: BSVersion): Observable<Progression<BsmLocalModel>> {
return new Observable<Progression<BsmLocalModel>>(subscriber => {
const subs: Subscription[] = [];
(async () => {
const modelFolder = await this.getModelFolderPath(model.type, version);
const modelDest = path.join(modelFolder, sanitize(path.basename(model.download)));
let url = model.download.split("/");
const url = model.download.split("/");
url[url.length - 1] = encodeURIComponent(url[url.length - 1]);
const download$ = this.request.downloadFile(url.join("/"), modelDest);
subs.push(download$.subscribe({ next: value => subscriber.next({...value, data: undefined}), error: e => subscriber.error(e) }));
subs.push(download$.subscribe({ next: value => subscriber.next({ ...value, data: undefined }), error: e => subscriber.error(e) }));
const downloaded = await lastValueFrom(download$);
@@ -110,59 +104,50 @@ export class LocalModelsManagerService {
hash: await md5File(downloaded.data),
type: model.type,
model,
version
}
version,
};
subscriber.next({...downloaded, data: res});
})().catch(err => subscriber.error(err)).then(() => subscriber.complete());
subscriber.next({ ...downloaded, data: res });
})()
.catch(err => subscriber.error(err))
.then(() => subscriber.complete());
return () => {
subs.forEach(sub => sub.unsubscribe());
}
};
});
}
public async oneClickDownloadModel(model: MSModel): Promise<void>{
if(!model){ return; }
public async oneClickDownloadModel(model: MSModel): Promise<void> {
if (!model) { return; }
const versions = await this.localVersion.getInstalledVersions();
const downloaded = await lastValueFrom(this.downloadModel(model, versions.pop()));
if(versions?.length === 0){ return; }
const fisrtVersion = versions.shift();
const downloaded = await lastValueFrom(this.downloadModel(model, fisrtVersion));
for(const version of versions){
for (const version of versions) {
const modelDest = path.join(await this.getModelFolderPath(model.type, version), path.basename(downloaded.data.path));
copyFileSync(downloaded.data.path, modelDest);
}
}
private async getModelsPaths(type: MSModelType, version?: BSVersion): Promise<string[]>{
private async getModelsPaths(type: MSModelType, version?: BSVersion): Promise<string[]> {
const modelsPath = await this.getModelFolderPath(type, version);
const files = await readdir(modelsPath, {withFileTypes: true});
const files = await readdir(modelsPath, { withFileTypes: true });
//return files.filter(file => file.isFile() && path.extname(file.name) === MODEL_FILE_EXTENSIONS[type]).map(file => path.join(modelsPath, file.name));
return files.reduce((acc, file) => {
if(!file.isFile() || path.extname(file.name) !== MODEL_FILE_EXTENSIONS[type]){ return acc; }
if (!file.isFile() || path.extname(file.name) !== MODEL_FILE_EXTENSIONS[type]) {
return acc;
}
acc.push(path.join(modelsPath, file.name));
return acc;
}, []);
}
public getModels(type: MSModelType, version?: BSVersion): Observable<Progression<BsmLocalModel[]>>{
public getModels(type: MSModelType, version?: BSVersion): Observable<Progression<BsmLocalModel[]>> {
const progression: Progression<BsmLocalModel[]> = {
total: 0,
current: 0,
data: null
data: null,
};
return new Observable<Progression<BsmLocalModel[]>>(subscriber => {
@@ -170,93 +155,89 @@ export class LocalModelsManagerService {
const modelsPaths = await this.getModelsPaths(type, version);
progression.total = modelsPaths.length;
const models = await allSettled(modelsPaths.map(async modelPath => {
const hash = await md5File(modelPath)
const localModel: BsmLocalModel = {
path: modelPath,
fileName: path.basename(modelPath, MODEL_FILE_EXTENSIONS[type]),
model: await this.modelSaber.getModelByHash(hash),
type, hash, version
}
const models = await allSettled(
modelsPaths.map(async modelPath => {
const hash = await md5File(modelPath);
progression.current++;
const localModel: BsmLocalModel = {
path: modelPath,
fileName: path.basename(modelPath, MODEL_FILE_EXTENSIONS[type]),
model: await this.modelSaber.getModelByHash(hash),
type,
hash,
version,
};
subscriber.next(progression);
progression.current++;
return localModel;
}));
subscriber.next(progression);
return localModel;
})
);
progression.data = models;
subscriber.next(progression);
})().catch(e => subscriber.error(e)).finally(() => subscriber.complete());
})()
.catch(e => subscriber.error(e))
.finally(() => subscriber.complete());
});
}
public exportModels(output: string, version?: BSVersion, models?: BsmLocalModel[]): Observable<Progression>{
public exportModels(output: string, version?: BSVersion, models?: BsmLocalModel[]): Observable<Progression> {
return new Observable<Progression>(subscriber => {
const archive = new Archive(output);
(async () => {
if(models?.length){
if (models?.length) {
models.forEach(model => archive.addFile(model.path, path.join(MODEL_TYPE_FOLDERS[model.type], path.basename(model.path))));
}
else{
for(const type of MODEL_TYPES){
} else {
for (const type of MODEL_TYPES) {
archive.addDirectory(await this.getModelFolderPath(type, version));
}
}
})().catch(e => subscriber.error(e)).then(() => (
archive.finalize().subscribe(subscriber)
));
})()
.catch(e => subscriber.error(e))
.then(() => archive.finalize().subscribe(subscriber));
});
}
public deleteModels(models: BsmLocalModel[]): Observable<Progression<BsmLocalModel[]>>{
public deleteModels(models: BsmLocalModel[]): Observable<Progression<BsmLocalModel[]>> {
return new Observable<Progression<BsmLocalModel[]>>(subscriber => {
(async () => {
const progression: Progression<BsmLocalModel[]> = {
total: models.length,
current: 0,
data: []
data: [],
};
for(const model of models){
for (const model of models) {
await unlinkPath(model.path);
progression.data.push(model);
progression.current = progression.data.length;
subscriber.next(progression);
}
})().catch(e => subscriber.error(e)).finally(() => subscriber.complete());
})()
.catch(e => subscriber.error(e))
.finally(() => subscriber.complete());
});
}
public enableDeepLinks(): boolean{
public enableDeepLinks(): boolean {
return Array.from(Object.values(this.DEEP_LINKS)).every(link => this.deepLink.registerDeepLink(link));
}
public disableDeepLinks(): boolean{
public disableDeepLinks(): boolean {
return Array.from(Object.values(this.DEEP_LINKS)).every(link => this.deepLink.unRegisterDeepLink(link));
}
public isDeepLinksEnabled(): boolean{
return Array.from(Object.values(this.DEEP_LINKS)).every(link => this.deepLink.isDeepLinkRegistred(link));
public isDeepLinksEnabled(): boolean {
return Array.from(Object.values(this.DEEP_LINKS)).every(link => this.deepLink.isDeepLinkRegistered(link));
}
}
export interface BsmLocalModelsProgress {
total: number;
loaded: number;
models: MSModel[];
}
}
@@ -6,7 +6,7 @@ import { DeepLinkService } from "../deep-link.service";
import { RequestService } from "../request.service";
import { UtilsService } from "../utils.service";
import { LocalMapsManagerService } from "./local-maps-manager.service";
import log from "electron-log"
import log from "electron-log";
import { isValidUrl } from "../../../shared/helpers/url.helpers";
import { ipcMain } from "electron";
import { WindowManagerService } from "../window-manager.service";
@@ -14,15 +14,16 @@ import { IpcRequest } from "shared/models/ipc";
import { BPList, DownloadPlaylistProgression } from "shared/models/playlists/playlist.interface";
import { copyFileSync, readFileSync } from "fs";
import { BeatSaverService } from "../thrid-party/beat-saver/beat-saver.service";
import { copySync } from "fs-extra";
import { copy, realpath } from "fs-extra";
import { ensureFolderExist, pathExist } from "../../helpers/fs.helpers";
export class LocalPlaylistsManagerService {
private static instance: LocalPlaylistsManagerService
private static instance: LocalPlaylistsManagerService;
public static getInstance(): LocalPlaylistsManagerService {
if (!LocalPlaylistsManagerService.instance) { LocalPlaylistsManagerService.instance = new LocalPlaylistsManagerService(); }
if (!LocalPlaylistsManagerService.instance) {
LocalPlaylistsManagerService.instance = new LocalPlaylistsManagerService();
}
return LocalPlaylistsManagerService.instance;
}
@@ -31,7 +32,6 @@ export class LocalPlaylistsManagerService {
BeatSaver: "bsplaylist",
};
private readonly versions: BSLocalVersionService;
private readonly maps: LocalMapsManagerService;
private readonly utils: UtilsService;
@@ -40,7 +40,7 @@ export class LocalPlaylistsManagerService {
private readonly windows: WindowManagerService;
private readonly bsaver: BeatSaverService;
private constructor(){
private constructor() {
this.maps = LocalMapsManagerService.getInstance();
this.versions = BSLocalVersionService.getInstance();
this.utils = UtilsService.getInstance();
@@ -50,110 +50,106 @@ export class LocalPlaylistsManagerService {
this.bsaver = BeatSaverService.getInstance();
this.deepLink.addLinkOpenedListener(this.DEEP_LINKS.BeatSaver, link => {
log.info("DEEP-LINK RECEIVED FROM", this.DEEP_LINKS.BeatSaver, link);
const url = new URL(link);
const bplistUrl = url.host === "playlist" ? url.pathname.replace("/", "") : "";
this.openOneClickDownloadPlaylistWindow(bplistUrl);
});
}
private getPlaylistIdFromDownloadUrl(url: string): string{
private getPlaylistIdFromDownloadUrl(url: string): string {
if (!isValidUrl(url)) {
return "";
}
if(!isValidUrl(url)){ return ""; }
const splited = url.split("/")
const splited = url.split("/");
const idIndex = splited.indexOf("id");
if(idIndex < 0){ return ""; }
if (idIndex < 0) {
return "";
}
return splited[idIndex + 1];
}
private async getPlaylistsFolder(version?: BSVersion){
private async getPlaylistsFolder(version?: BSVersion) {
if (!version) {
throw "Playlists are not available to be linked yet";
}
if(!version){ throw "Playlists are not available to be linked yet" }
const versionFolder = await this.versions.getVersionPath(version);
const folder = path.join(versionFolder, this.PLAYLISTS_FOLDER);
const folder = path.join(versionFolder, this.PLAYLISTS_FOLDER);
await ensureFolderExist(folder)
await ensureFolderExist(folder);
return folder;
}
private async installBPListFile(bpListUrlOrPath: string, version: BSVersion): Promise<string>{
private async installBPListFile(bpListUrlOrPath: string, version: BSVersion): Promise<string> {
const playlistFolder = await this.getPlaylistsFolder(version);
const bpListDest = path.join(playlistFolder, path.basename(bpListUrlOrPath));
const bpListDest = path.join(playlistFolder, path.basename(bpListUrlOrPath));
if(await pathExist(bpListUrlOrPath)){
if (await pathExist(bpListUrlOrPath)) {
copyFileSync(bpListUrlOrPath, bpListDest);
}
else{
} else {
await lastValueFrom(this.request.downloadFile(bpListUrlOrPath, bpListDest));
}
return bpListDest;
}
private async readPlaylistFile(path: string): Promise<BPList>{
if(!(await pathExist(path))){ throw `bplist file not exist at ${path}`; }
private async readPlaylistFile(path: string): Promise<BPList> {
if (!(await pathExist(path))) {
throw `bplist file not exist at ${path}`;
}
const rawContent = readFileSync(path).toString();
return JSON.parse(rawContent);
}
private openOneClickDownloadPlaylistWindow(downloadUrl: string): void{
private openOneClickDownloadPlaylistWindow(downloadUrl: string): void {
ipcMain.once("one-click-playlist-info", async (event, req: IpcRequest<void>) => {
this.utils.ipcSend(req.responceChannel, {success: true, data: {bpListUrl: downloadUrl, id: this.getPlaylistIdFromDownloadUrl(downloadUrl)}});
this.utils.ipcSend(req.responceChannel, { success: true, data: { bpListUrl: downloadUrl, id: this.getPlaylistIdFromDownloadUrl(downloadUrl) } });
});
this.windows.openWindow("oneclick-download-playlist.html");
}
public downloadPlaylist(bpListUrl: string, version: BSVersion): Observable<DownloadPlaylistProgression>{
public downloadPlaylist(bpListUrl: string, version: BSVersion): Observable<DownloadPlaylistProgression> {
const res = new BehaviorSubject<DownloadPlaylistProgression>({ progression: 0, current: null, downloadedMaps: [], mapsPath: [], bpListPath: "" });
const res = new BehaviorSubject<DownloadPlaylistProgression>({progression: 0, current: null, downloadedMaps: [], mapsPath: [], bpListPath: ""});
const sub = res.subscribe(process => {
this.utils.ipcSend("download-playlist-progress", {success: true, data: process});
}, err => {
this.utils.ipcSend("download-playlist-progress", {success: false, error: err});
});
const sub = res.subscribe(
process => {
this.utils.ipcSend("download-playlist-progress", { success: true, data: process });
},
err => {
this.utils.ipcSend("download-playlist-progress", { success: false, error: err });
}
);
const observer = async () => {
try{
try {
const bpListPath = await this.installBPListFile(bpListUrl, version);
res.next({...res.value, bpListPath});
res.next({ ...res.value, bpListPath });
const bpList = await this.readPlaylistFile(bpListPath);
for(const song of bpList.songs){
if(!song.key){ continue; }
for (const song of bpList.songs) {
if (!song.key) {
continue;
}
const map = await this.bsaver.getMapDetailsById(song.key);
res.next({
...res.value,
current: map,
progression: ((res.value.downloadedMaps.length + .5) / bpList.songs.length) * 100
progression: ((res.value.downloadedMaps.length + 0.5) / bpList.songs.length) * 100,
});
const mapPath = await this.maps.downloadMap(map, version);
@@ -165,63 +161,59 @@ export class LocalPlaylistsManagerService {
current: null,
downloadedMaps: [...res.value.downloadedMaps, map],
mapsPath: [...res.value.mapsPath, mapPath.path],
progression
progression,
});
}
}
catch(e){
} catch (e) {
res.error(e);
}
res.complete();
}
};
observer().finally(() => sub.unsubscribe());
return res.asObservable();
}
public async oneClickInstallPlaylist(bpListUrl: string): Promise<void>{
public async oneClickInstallPlaylist(bpListUrl: string): Promise<void> {
const versions = await this.versions.getInstalledVersions();
const firstVersion = versions.shift();
const fistVersionLinked = await this.maps.versionIsLinked(firstVersion);
const {bpListPath, mapsPath} = await this.downloadPlaylist(bpListUrl, firstVersion).toPromise();
for(const version of versions){
await this.installBPListFile(bpListPath, version);
const versionIsLinked = await this.maps.versionIsLinked(version);
if(fistVersionLinked && versionIsLinked){ continue; }
for(const mapPath of mapsPath){
const versionMapsFolder = await this.maps.getMapsFolderPath(version);
const mapDest = path.join(versionMapsFolder, path.basename(mapPath));
copySync(mapPath, mapDest, {overwrite: true});
}
const { bpListPath, mapsPath } = await lastValueFrom(this.downloadPlaylist(bpListUrl, versions.pop()));
if(mapsPath?.length === 0 || !bpListPath) {
return;
}
const realSourceMapsFolder = await realpath(path.dirname(mapsPath[0]));
for (const version of versions) {
await this.installBPListFile(bpListPath, version);
const versionMapsFolder = await this.maps.getMapsFolderPath(version);
const realDestMapsFolder = await realpath(versionMapsFolder);
if(realSourceMapsFolder === realDestMapsFolder) {
continue;
}
for (const mapPath of mapsPath) {
const mapDest = path.join(versionMapsFolder, path.basename(mapPath));
await copy(mapPath, mapDest, { overwrite: true });
}
}
}
public enableDeepLinks(): boolean{
public enableDeepLinks(): boolean {
return Array.from(Object.values(this.DEEP_LINKS)).every(link => this.deepLink.registerDeepLink(link));
}
public disableDeepLinks(): boolean{
public disableDeepLinks(): boolean {
return Array.from(Object.values(this.DEEP_LINKS)).every(link => this.deepLink.unRegisterDeepLink(link));
}
public isDeepLinksEnabled(): boolean{
return Array.from(Object.values(this.DEEP_LINKS)).every(link => this.deepLink.isDeepLinkRegistred(link));
public isDeepLinksEnabled(): boolean {
return Array.from(Object.values(this.DEEP_LINKS)).every(link => this.deepLink.isDeepLinkRegistered(link));
}
}
}
+28 -25
View File
@@ -1,51 +1,54 @@
import { autoUpdater } from 'electron-updater';
import log from 'electron-log';
import { UtilsService } from './utils.service';
import { gt } from 'semver';
export class AutoUpdaterService {
import { autoUpdater } from "electron-updater";
import log from "electron-log";
import { UtilsService } from "./utils.service";
import { gt } from "semver";
export class AutoUpdaterService {
private static instance: AutoUpdaterService;
private readonly utilsService: UtilsService;
public static getInstance(): AutoUpdaterService{
if(!AutoUpdaterService.instance){ AutoUpdaterService.instance = new AutoUpdaterService(); }
public static getInstance(): AutoUpdaterService {
if (!AutoUpdaterService.instance) {
AutoUpdaterService.instance = new AutoUpdaterService();
}
return AutoUpdaterService.instance;
}
constructor(){
constructor() {
autoUpdater.logger = log;
autoUpdater.autoDownload = false;
this.utilsService = UtilsService.getInstance();
}
public isUpdateAvailable(): Promise<boolean>{
public isUpdateAvailable(): Promise<boolean> {
return new Promise(resolve => {
autoUpdater.checkForUpdates().then(info => {
const needUpdate = (() => {
if(!info || !info.updateInfo){ return false; }
return gt(info.updateInfo.version, autoUpdater.currentVersion.version);
})();
resolve(needUpdate)}
).catch(() => resolve(false));
autoUpdater
.checkForUpdates()
.then(info => {
const needUpdate = (() => {
if (!info?.updateInfo) {
return false;
}
return gt(info.updateInfo.version, autoUpdater.currentVersion.version);
})();
resolve(needUpdate);
})
.catch(() => resolve(false));
});
}
public downloadUpdate(): Promise<boolean>{
public downloadUpdate(): Promise<boolean> {
autoUpdater.removeAllListeners("download-progress");
autoUpdater.addListener("download-progress", info => {
this.utilsService.ipcSend("update-download-progress", {success: true, data: info.percent});
this.utilsService.ipcSend("update-download-progress", { success: true, data: info.percent });
});
return autoUpdater.downloadUpdate().then(res => !!res && !!res.length);
}
public quitAndInstall(){
public quitAndInstall() {
autoUpdater.quitAndInstall();
}
}
}
+132 -175
View File
@@ -1,238 +1,195 @@
/* eslint-disable prefer-promise-reject-errors */
import { BS_APP_ID, BS_DEPOT } from "../constants";
import path from "path";
import { BSVersion, PartialBSVersion } from 'shared/bs-version.interface';
import { BSVersion } from "shared/bs-version.interface";
import { UtilsService } from "./utils.service";
import { ChildProcessWithoutNullStreams, spawn, spawnSync } from "child_process";
import { spawnSync } from "child_process";
import log from "electron-log";
import { InstallationLocationService } from "./installation-location.service";
import { ctrlc } from "ctrlc-windows";
import { BSLocalVersionService } from "./bs-local-version.service";
import isOnline from 'is-online';
import { WindowManagerService } from "./window-manager.service";
import { copy, copySync } from "fs-extra";
import { clean, satisfies } from "semver";
import { ensureFolderExist, pathExist } from "../helpers/fs.helpers";
import { copy, ensureDir } from "fs-extra";
import { pathExist } from "../helpers/fs.helpers";
import { Observable, map } from "rxjs";
import { DepotDownloaderArgsOptions, DepotDownloaderErrorEvent, DepotDownloaderEvent, DepotDownloaderEventType, DepotDownloaderInfoEvent } from "../../shared/models/depot-downloader.model";
import { DepotDownloader } from "../models/depot-downloader.class";
export class BSInstallerService{
export class BSInstallerService {
private static instance: BSInstallerService;
private static instance: BSInstallerService;
private readonly utils: UtilsService;
private readonly installLocationService: InstallationLocationService;
private readonly localVersionService: BSLocalVersionService;
private readonly windows: WindowManagerService;
private readonly utils: UtilsService;
private readonly installLocationService: InstallationLocationService;
private readonly localVersionService: BSLocalVersionService;
private readonly windows: WindowManagerService;
private depotDownloader: DepotDownloader;
private downloadProcess: ChildProcessWithoutNullStreams;
private constructor() {
this.utils = UtilsService.getInstance();
this.installLocationService = InstallationLocationService.getInstance();
this.localVersionService = BSLocalVersionService.getInstance();
this.windows = WindowManagerService.getInstance();
private constructor(){
this.utils = UtilsService.getInstance();
this.installLocationService = InstallationLocationService.getInstance();
this.localVersionService = BSLocalVersionService.getInstance();
this.windows = WindowManagerService.getInstance();
this.windows.getWindow("index.html")?.on("close", () => {
this.killDownloadProcess();
});
}
public static getInstance(){
if(!BSInstallerService.instance){ BSInstallerService.instance = new BSInstallerService(); }
return BSInstallerService.instance;
}
private escapeSpaces(path: string): string{
return `\"${path}\"`
this.windows.getWindow("index.html")?.on("close", () => {
this.depotDownloader?.stop();
});
}
private getDepotDownloaderExePath(): string{
return this.escapeSpaces(path.join(this.utils.getAssetsScriptsPath(), 'depot-downloader', 'DepotDownloader.exe'));
public static getInstance() {
if (!BSInstallerService.instance) {
BSInstallerService.instance = new BSInstallerService();
}
return BSInstallerService.instance;
}
private removeSpecialSchar(txt: string): string{ return txt.replaceAll(/\[|\]/g, ""); }
private sendDownloadEvent(event: DownloadEventType, data?: string|number, success = true): void{
if(typeof data === "string"){ data = this.removeSpecialSchar(data); }
this.utils.ipcSend(`bs-download.${event}`, { success, data });
private getDepotDownloaderExePath(): string {
return path.join(this.utils.getAssetsScriptsPath(), "depot-downloader", `DepotDownloader.${process.platform === 'linux' ? 'dll' : 'exe'}`);
}
public sendInputProcess(input: string){
if(this.downloadProcess.stdin.writable){
this.downloadProcess.stdin.write(`${input}\n`);
}
}
public killDownloadProcess(): Promise<boolean>{
return new Promise(resolve => {
if(this.downloadProcess?.killed && !this.downloadProcess?.pid){ return resolve(false); }
this.downloadProcess.once('exit', () => resolve(true));
ctrlc(this.downloadProcess.pid);
setTimeout(() => resolve(false), 3000);
});
}
public async isDotNet6Installed(): Promise<boolean>{
try{
const process = spawnSync(this.getDepotDownloaderExePath(), {shell: true});
if(process.stderr.toString()){
log.error("no dotnet", process.stderr.toString());
public async isDotNet6Installed(): Promise<boolean> {
try {
const proc = process.platform === 'linux'
? spawnSync('dotnet', [this.getDepotDownloaderExePath()])
: spawnSync(this.getDepotDownloaderExePath());
if (proc.stderr?.toString()) {
log.error("no dotnet", proc.stderr.toString());
return false;
}
return true;
}
catch(e){
} catch (e) {
log.error("Error while checking .NET 6", e);
return false;
}
}
}
public async downloadBsVersion(downloadInfos: DownloadInfo): Promise<DownloadEvent>{
private async buildDepotDownloaderInstance(downloadInfos: DownloadInfo, qr?: boolean): Promise<DepotDownloader> {
// TODO : Can be a lot improved by using ipcV2 and Observable
const versionPath = await this.localVersionService.getVersionPath(downloadInfos.bsVersion);
const dest = downloadInfos.isVerification ? versionPath : await this.getPathNotAleardyExist(versionPath);
const downloadVersion: BSVersion = { ...downloadInfos.bsVersion, ...(path.basename(dest) !== downloadInfos.bsVersion.BSVersion && { name: path.basename(dest) }) };
if(this.downloadProcess && this.downloadProcess.connected){ throw "AlreadyDownloading"; }
const {bsVersion} = downloadInfos;
if(!bsVersion){ return {type: "[Error]"}; }
if(!(await isOnline({timeout: 1500}))){ throw "no-internet"; }
const depotDownloaderOptions: DepotDownloaderArgsOptions = {
app: BS_APP_ID,
depot: BS_DEPOT,
dir: this.localVersionService.getVersionFolder(downloadVersion),
manifest: downloadInfos.bsVersion.BSManifest,
username: downloadInfos.username,
password: downloadInfos.password,
"remember-password": downloadInfos.stay,
validate: downloadInfos.isVerification,
qr
}
await ensureFolderExist(this.installLocationService.versionsDirectory);
await ensureDir(await this.installLocationService.versionsDirectory());
const versionPath = await this.localVersionService.getVersionPath(bsVersion)
const isLinux = process.platform === 'linux';
const exePath = this.getDepotDownloaderExePath();
const args = DepotDownloader.buildArgs(depotDownloaderOptions);
const dest = !downloadInfos.isVerification ? await this.getPathNotAleardyExist(versionPath) : versionPath;
return new DepotDownloader({
command: isLinux ? 'dotnet' : exePath,
args: isLinux ? [exePath, ...args] : args,
options: { cwd: await this.installLocationService.versionsDirectory() },
echoStartData: downloadVersion
}, log);
}
const downloadVersion: BSVersion = {...downloadInfos.bsVersion, ...(path.basename(dest) !== downloadInfos.bsVersion.BSVersion && {name: path.basename(dest)})}
private buildDepotDownloaderObservable(downloadInfos: DownloadInfo, qr?: boolean): Observable<DepotDownloaderEvent> {
return new Observable(sub => {
this.downloadProcess = spawn(
this.getDepotDownloaderExePath(),
[
`-app ${BS_APP_ID}`,
`-depot ${BS_DEPOT}`,
`-manifest ${bsVersion.BSManifest}`,
`-username \"${downloadInfos.username}\"`,
`-dir \"${this.localVersionService.getVersionFolder(downloadVersion)}\"`
],
{shell: true, cwd: this.installLocationService.versionsDirectory}
);
const depotDownloaderBuildPromise = this.buildDepotDownloaderInstance(downloadInfos, qr);
this.utils.ipcSend("start-download-version", {success: true, data: downloadVersion});
depotDownloaderBuildPromise.then(depotDownloader => {
return new Promise((resolve, reject) => {
if(this.depotDownloader?.running){
this.depotDownloader.stop();
}
this.downloadProcess.stdout.on('data', data => {
const matched = (data.toString() as string).match(/(?:\[(.*?)\])\|(?:\[(.*?)\]\|)?(.*?)(?=$|\[)/gm) ?? [];
matched.forEach(match => {
const out = match.split("|");
this.depotDownloader = depotDownloader;
if(out[0] !== "[Progress]" && out[0] !== "[Validated]"){ log.info(data.toString()); }
if(out[0] === "[Password]" as DownloadEventType && downloadInfos.password){
this.sendInputProcess(downloadInfos.password);
}
else if(out[0] === "[Password]" as DownloadEventType){
this.killDownloadProcess();
resolve({type: "[Password]", data: bsVersion});
}
else if(out[0] === "[2FA]" as DownloadEventType || out[0] === "[Guard]" as DownloadEventType){
this.sendDownloadEvent("[2FA]")
}
else if(out[0] === "[Progress]" as DownloadEventType || (out[0] === "[Validated]" as DownloadEventType && parseFloat(out[1]) < 100)){
this.sendDownloadEvent("[Progress]", parseFloat(out[1].replaceAll(",", ".")));
}
else if(out[0] === "[Finished]" as DownloadEventType || (out[0] === "[Validated]" as DownloadEventType && parseFloat(out[1]) === 100)){
resolve({type: "[Finished]"});
this.killDownloadProcess();
}
else if(out[0] === "[SteamID]" as DownloadEventType){
this.sendDownloadEvent("[SteamID]", out[1]);
}
else if(out[0] === "[Warning]" as DownloadEventType){
this.sendDownloadEvent("[Warning]", out[1]);
}
else if(out[0] === "[Error]" as DownloadEventType){
reject(this.removeSpecialSchar(out[1]));
this.killDownloadProcess();
log.error("Download Event, Error", data.toString());
}
depotDownloader.$events().pipe(map(event => {
if(event.type === DepotDownloaderEventType.Error){
throw event;
}
return event;
})).subscribe(sub);
}).catch(err => sub.error({
type: DepotDownloaderEventType.Error,
subType: DepotDownloaderErrorEvent.Unknown,
data: err
} as DepotDownloaderEvent));
return () => {
depotDownloaderBuildPromise.then(depotDownloader => depotDownloader.stop());
}
});
})
this.downloadProcess.stdout.on('error', (err) => {
log.error("BS-DOWNLOAD ERROR", err.toString());
this.killDownloadProcess();
if(err.toString().includes(".NET") || err.toString().includes("dotnet") || err.toString().includes(".dll")){
reject("dotnet");
}
reject();
});
this.downloadProcess.stderr.on('data', (err) => {
log.error("BS-DOWNLOAD ERROR", err.toString());
this.killDownloadProcess();
if(err.toString().includes(".NET") || err.toString().includes("dotnet") || err.toString().includes(".dll")){
reject("dotnet");
}
reject();
});
this.downloadProcess.stderr.on('error', (err) => {
log.error("BS-DOWNLOAD ERROR", err.toString());
this.killDownloadProcess();
if(err.toString().includes(".NET") || err.toString().includes("dotnet") || err.toString().includes(".dll")){
reject("dotnet");
}
reject();
});
}
this.downloadProcess.on('close', () => reject());
})
}
public downloadBsVersion(downloadInfos: DownloadInfo): Observable<DepotDownloaderEvent> {
return this.buildDepotDownloaderObservable(downloadInfos);
}
private async getPathNotAleardyExist(path: string): Promise<string>{
public autoDownloadBsVersion(downloadInfos: DownloadInfo): Observable<DepotDownloaderEvent> {
return this.buildDepotDownloaderObservable({...downloadInfos, password: null, stay: true}).pipe(map(event => {
if(event.type === DepotDownloaderEventType.Info && event.subType === DepotDownloaderInfoEvent.Password){
throw new Error("Ask for password while auto download");
}
return event;
}));
}
public downloadBsVersionWithQRCode(downloadInfos: DownloadInfo): Observable<DepotDownloaderEvent> {
return this.buildDepotDownloaderObservable(downloadInfos, true);
}
public sendInput(input: string): boolean {
return this.depotDownloader?.sendInput(input);
}
public stopDownload(): void {
this.depotDownloader?.stop();
}
private async getPathNotAleardyExist(path: string): Promise<string> {
let destPath = path;
let folderExist = await pathExist(destPath);
let i = 0;
while(folderExist){
while (folderExist) {
i++;
destPath = `${path} (${i})`;
folderExist = await pathExist(destPath);
}
return destPath
return destPath;
}
public async importVersion(path: string): Promise<PartialBSVersion>{
const rawBsVersion = await this.localVersionService.getVersionOfBSFolder(path);
public async importVersion(path: string): Promise<BSVersion> {
const version = await this.localVersionService.getVersionOfBSFolder(path);
if(!rawBsVersion){ throw new Error("NOT_BS_FOLDER"); }
if (!version) {
throw new Error("NOT_BS_FOLDER");
}
const destPath = await this.getPathNotAleardyExist(await this.localVersionService.getVersionPath(rawBsVersion));
const destPath = await this.getPathNotAleardyExist(await this.localVersionService.getVersionPath(version));
await copy(path, destPath, {dereference: true});
return rawBsVersion;
await copy(path, destPath, { dereference: true });
return version;
}
}
export interface DownloadInfo {
bsVersion: BSVersion,
username: string,
password?: string,
stay?: boolean,
isVerification: boolean
bsVersion: BSVersion;
username?: string;
password?: string;
stay?: boolean;
isVerification?: boolean;
}
export interface DownloadEvent{
type: DownloadEventType,
data?: unknown
export interface DownloadEvent {
type: DownloadEventType;
data?: unknown;
}
export type DownloadEventType = "[Password]" | "[Guard]" | "[2FA]" | "[Progress]" | "[Validated]" | "[Finished]" | "[AlreadyDownloading]" | "[Error]" | "[Warning]" | "[SteamID]" | "[Exit]" | "[NoInternet]";
+324 -60
View File
@@ -1,108 +1,372 @@
import path from "path";
import { LaunchResult, LauchOption } from "shared/models/bs-launch";
import { LaunchOption, BSLaunchEvent, BSLaunchEventData, BSLaunchWarning, BSLaunchErrorData, BSLaunchError } from "../../shared/models/bs-launch";
import { UtilsService } from "./utils.service";
import { BS_EXECUTABLE, BS_APP_ID, STEAMVR_APP_ID } from "../constants";
import { ChildProcessWithoutNullStreams, spawn } from "child_process";
import { BS_EXECUTABLE, BS_APP_ID, STEAMVR_APP_ID, IMAGE_CACHE_PATH } from "../constants";
import { ChildProcessWithoutNullStreams, SpawnOptionsWithoutStdio, spawn } from "child_process";
import { SteamService } from "./steam.service";
import { BSLocalVersionService } from "./bs-local-version.service";
import { OculusService } from "./oculus.service";
import { pathExist } from "../helpers/fs.helpers";
import { rename } from "fs/promises";
import log from "electron-log";
import { timer } from "rxjs";
export class BSLauncherService{
import { Observable, of } from "rxjs";
import { BsmProtocolService } from "./bsm-protocol.service";
import { app, shell} from "electron";
import Color from "color";
import { ensureDir, writeFile } from "fs-extra";
import toIco from "to-ico";
import { objectFromEntries } from "../../shared/helpers/object.helpers";
import { WindowManagerService } from "./window-manager.service";
import { IpcService } from "./ipc.service";
import { BSVersionLibService } from "./bs-version-lib.service";
import { execOnOs } from "../helpers/env.helpers";
import sharp from "sharp";
export class BSLauncherService {
private static instance: BSLauncherService;
private readonly utilsService: UtilsService;
private readonly steamService: SteamService;
private readonly oculusService: OculusService;
private readonly localVersionService: BSLocalVersionService;
private readonly bsmProtocolService: BsmProtocolService;
private readonly windows: WindowManagerService;
private readonly ipc: IpcService;
private readonly remoteVersion: BSVersionLibService;
private bsProcess: ChildProcessWithoutNullStreams;
public static getInstance(): BSLauncherService{
if(!BSLauncherService.instance){ BSLauncherService.instance = new BSLauncherService(); }
public static getInstance(): BSLauncherService {
if (!BSLauncherService.instance) {
BSLauncherService.instance = new BSLauncherService();
}
return BSLauncherService.instance;
}
private constructor(){
private constructor() {
this.utilsService = UtilsService.getInstance();
this.steamService = SteamService.getInstance();
this.oculusService = OculusService.getInstance();
this.localVersionService = BSLocalVersionService.getInstance();
this.bsmProtocolService = BsmProtocolService.getInstance();
this.windows = WindowManagerService.getInstance();
this.ipc = IpcService.getInstance();
this.remoteVersion = BSVersionLibService.getInstance();
this.bsmProtocolService.on("launch", link => {
log.info("Launch from bsm protocol", link.toString());
this.openShortcutLaunchWindow(this.shortcutLinkToShortcutParams(link)).catch(log.error);
});
}
private getSteamVRPath(): Promise<string>{
private getSteamVRPath(): Promise<string> {
return this.steamService.getGameFolder(STEAMVR_APP_ID, "SteamVR");
}
private async backupSteamVR(): Promise<void>{
private async backupSteamVR(): Promise<void> {
const steamVrFolder = await this.getSteamVRPath();
if(!await pathExist(steamVrFolder)){ return; }
return rename(steamVrFolder, steamVrFolder + ".bak").catch(log.error);
if (!(await pathExist(steamVrFolder))) {
return;
}
return rename(steamVrFolder, `${steamVrFolder}.bak`).catch(log.error);
}
public async restoreSteamVR(): Promise<void>{
public async restoreSteamVR(): Promise<void> {
const steamVrFolder = await this.getSteamVRPath();
const steamVrBackup = steamVrFolder + ".bak";
if(!await pathExist(steamVrBackup)){ return; }
return rename(steamVrFolder + ".bak", steamVrFolder).catch(log.error);
const steamVrBackup = `${steamVrFolder}.bak`;
if (!(await pathExist(steamVrBackup))) {
return;
}
return rename(steamVrBackup, steamVrFolder).catch(log.error);
}
public isBsRunning(): boolean{
return this.bsProcess?.connected || this.utilsService.taskRunning(BS_EXECUTABLE) === true;
public async isBsRunning(): Promise<boolean> {
return this.utilsService.taskRunning(BS_EXECUTABLE);
}
public async launch(launchOptions: LauchOption): Promise<LaunchResult>{
if(launchOptions.version.oculus && this.oculusService.oculusRunning() === false){ return "OCULUS_NOT_RUNNING" }
if(!launchOptions.version.oculus && this.steamService.steamRunning() === false){ return "STEAM_NOT_RUNNING" }
if(this.isBsRunning() === true){ return "BS_ALREADY_RUNNING" }
private buildBsLaunchArgs(launchOptions: LaunchOption): string[]{
const launchArgs = ["--no-yeet"];
const cwd = await this.localVersionService.getVersionPath(launchOptions.version);
const exePath = path.join(cwd, BS_EXECUTABLE);
if (launchOptions.oculus) {
launchArgs.push("-vrmode");
launchArgs.push("oculus");
}
if (launchOptions.desktop) {
launchArgs.push("fpfc");
}
if (launchOptions.debug) {
launchArgs.push("--verbose");
}
if (launchOptions.additionalArgs) {
launchArgs.push(...launchOptions.additionalArgs);
}
if(!(await pathExist(exePath))){ return "EXE_NOT_FINDED"; }
let launchArgs = [];
return Array.from(new Set(launchArgs).values());
}
if(!launchOptions.version.steam && !launchOptions.version.oculus){ launchArgs.push("--no-yeet"); }
if(launchOptions.oculus){ launchArgs.push("-vrmode oculus"); }
if(launchOptions.desktop){ launchArgs.push("fpfc"); }
if(launchOptions.debug){ launchArgs.push("--verbose"); }
if(launchOptions.additionalArgs){ launchArgs.push(...launchOptions.additionalArgs); }
private launchBSProcess(bsExePath: string, args: string[], debug = false): ChildProcessWithoutNullStreams{
launchArgs = Array.from(new Set(launchArgs).values());
const spawnOptions: SpawnOptionsWithoutStdio = { detached: true, cwd: path.dirname(bsExePath), env: {...process.env, "SteamAppId": BS_APP_ID} };
let restoreTimout: NodeJS.Timeout;
if(debug){
spawnOptions.windowsVerbatimArguments = true;
}
if(launchArgs.includes("fpfc")){
await this.backupSteamVR().catch(() => {
this.restoreSteamVR();
return spawn(bsExePath, args, spawnOptions);
}
public launch(launchOptions: LaunchOption): Observable<BSLaunchEventData>{
return new Observable<BSLaunchEventData>(obs => {(async () => {
if(launchOptions.skipAlreadyRunning !== true && await this.isBsRunning()){
return obs.error({type: BSLaunchError.BS_ALREADY_RUNNING} as BSLaunchErrorData);
}
const bsFolderPath = await this.localVersionService.getInstalledVersionPath(launchOptions.version);
const exePath = path.join(bsFolderPath, BS_EXECUTABLE);
if(!(await pathExist(exePath))){
return obs.error({type: BSLaunchError.BS_NOT_FOUND} as BSLaunchErrorData);
}
// Open Steam if not running
if(!launchOptions.version.oculus && !(await this.steamService.steamRunning())){
obs.next({type: BSLaunchEvent.STEAM_LAUNCHING});
await this.steamService.openSteam().then(() => {
obs.next({type: BSLaunchEvent.STEAM_LAUNCHED});
}).catch(e => {
log.error(e);
obs.next({type: BSLaunchWarning.UNABLE_TO_LAUNCH_STEAM});
});
}
// Backup SteamVR when desktop mode is enabled
if(!launchOptions.version.oculus && launchOptions.desktop){
await this.backupSteamVR().catch(() => {
return this.restoreSteamVR();
});
} else if(!launchOptions.version.oculus){
await this.restoreSteamVR();
}
const launchArgs = this.buildBsLaunchArgs(launchOptions);
obs.next({type: BSLaunchEvent.BS_LAUNCHING});
await new Promise<number>((resolve, reject) => {
const bsProcess = this.launchBSProcess(exePath, launchArgs, launchOptions.debug);
bsProcess.on("error", reject);
bsProcess.on("exit", resolve);
setTimeout(() => {
bsProcess.removeAllListeners("error");
bsProcess.removeAllListeners("exit");
resolve(-1);
}, 30_000);
}).then(exitCode => {
log.info("BS process exit code", exitCode);
}).catch(err => {
obs.error({type: BSLaunchError.BS_EXIT_ERROR, data: err} as BSLaunchErrorData);
}).finally(() => {
restoreTimout = setTimeout(() => this.restoreSteamVR(), 35_000);
this.restoreSteamVR().catch(log.error);
});
await timer(2_000).toPromise();
}
else{
await this.restoreSteamVR();
})().then(() => {
obs.complete();
}).catch(err => {
obs.error({type: BSLaunchError.UNKNOWN_ERROR, data: err} as BSLaunchErrorData);
})});
}
public shortcutLinkToShortcutParams(shortcutLink: string|URL): ShortcutParams{
if(typeof shortcutLink === "string"){
shortcutLink = new URL(shortcutLink);
}
if(launchOptions.debug){
this.bsProcess = spawn(`\"${exePath}\"`, launchArgs, {shell: true, cwd, env: {...process.env, "SteamAppId": BS_APP_ID}, detached: true, windowsVerbatimArguments: true });
}
else{
this.bsProcess = spawn(`\"${exePath}\"`, launchArgs, {shell: true, cwd, env: {...process.env, "SteamAppId": BS_APP_ID} });
const params = objectFromEntries(shortcutLink.searchParams.entries()) as ShortcutParams;
if(typeof params.additionalArgs === "string"){
params.additionalArgs = [params.additionalArgs];
}
this.bsProcess.on('error', err => log.error(err));
this.bsProcess.on('exit', code => {
this.restoreSteamVR().finally(() => clearTimeout(restoreTimout));
this.utilsService.ipcSend("bs-launch.exit", {data: code, success: code === 0})
return params;
}
public shortcutLinkToLaunchOptions(shortcutLink: string|URL): LaunchOption{
return this.shortcutParamsToLaunchOption(this.shortcutLinkToShortcutParams(shortcutLink));
}
private shortcutParamsToLaunchOption(params: ShortcutParams): LaunchOption{
const res: LaunchOption = {
version: {
BSVersion: params.version,
name: params.versionName,
steam: params.versionSteam === "true",
oculus: params.versionOculus === "true",
ino: +params.versionIno
},
oculus: params.oculusMode === "true",
desktop: params.desktopMode === "true",
debug: params.debug === "true",
additionalArgs: params.additionalArgs
};
return res;
}
private launchOptionToShortcutParams(launchOptions: LaunchOption): ShortcutParams{
const res: ShortcutParams = { version: launchOptions.version.BSVersion };
if(launchOptions.version.name){ res.versionName = launchOptions.version.name; }
if(launchOptions.version.steam){ res.versionSteam = `${launchOptions.version.steam}`; }
if(launchOptions.version.oculus){ res.versionOculus = `${launchOptions.version.oculus}`; }
if(launchOptions.version.ino){ res.versionIno = `${launchOptions.version.ino}`; }
if(launchOptions.oculus){ res.oculusMode = "true"; }
if(launchOptions.desktop){ res.desktopMode = "true"; }
if(launchOptions.debug){ res.debug = "true"; }
if(launchOptions.additionalArgs){ res.additionalArgs = launchOptions.additionalArgs; }
return res;
}
private createShortcutPngBuffer(color: Color): Promise<Buffer>{
const svgBuffer = Buffer.from(`
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 406.4 406.4" height="406.4" width="406.4">
<rect rx="69.453" height="406.4" width="406.4" fill="${color.hex()}"/>
<path d="M65.467 60.6H336.4v33.867L200.933 162.2 65.467 94.467z" fill="#fff"/>
</svg>
`);
return sharp(svgBuffer).resize(256).png().toBuffer();
}
/**
* Create .png file for the shortcut with the given color
* @param {Color} color
* @returns {Promise<string>} Path of the icon
*/
private async createShortcutPng(color: Color): Promise<string>{
const pngBuffer = this.createShortcutPngBuffer(color);
await ensureDir(IMAGE_CACHE_PATH);
const iconPath = path.join(IMAGE_CACHE_PATH, `launch_shortcut_${color.hex()}.png`);
await writeFile(iconPath, pngBuffer);
return iconPath;
}
/**
* Create .ico file for the shortcut with the given color
* @param {Color} color
* @returns {Promise<string>} Path of the icon
*/
private async createShortcutIco(color: Color): Promise<string>{
const pngBuffer = await this.createShortcutPngBuffer(color);
const icoBuffer = await toIco([pngBuffer]);
await ensureDir(IMAGE_CACHE_PATH);
const iconPath = path.join(IMAGE_CACHE_PATH, `launch_shortcut_${color.hex()}.ico`);
await writeFile(iconPath, icoBuffer);
return iconPath;
}
public createLaunchLink(launchOptions: LaunchOption): string{
const shortcutParams = this.launchOptionToShortcutParams(launchOptions);
return this.bsmProtocolService.buildLink("launch", shortcutParams).toString();
}
public async createLaunchShortcut(launchOptions: LaunchOption): Promise<boolean>{
const shortcutUrl = this.createLaunchLink(launchOptions);
const shortcutName = ["Beat Saber", launchOptions.version.BSVersion, launchOptions.version.name].join(" ");
const shortcutIconColor = new Color(launchOptions.version.color, "hex");
return execOnOs({
win32: async () => (
shell.writeShortcutLink(path.join(app.getPath("desktop"), `${shortcutName}.lnk`), {
target: shortcutUrl,
icon: await this.createShortcutIco(shortcutIconColor),
iconIndex: 0,
description: [shortcutName, launchOptions.version.color].join(" "), // <= Need color in description to help windows know that the shortcut is different
})
),
linux: async () => (
createDesktopUrlShortcut(path.join(app.getPath("desktop"), `${shortcutName}.desktop`), {
name: shortcutName,
url: shortcutUrl,
icon: await this.createShortcutPng(shortcutIconColor),
})
)
})
}
private async openShortcutLaunchWindow(launchOptions: ShortcutParams): Promise<void>{
const launchOption = this.shortcutParamsToLaunchOption(launchOptions);
const bsPath: string = await (async () => {
const bsPath = await this.localVersionService.getInstalledVersionPath(launchOption.version);
return bsPath ?? this.localVersionService.getVersionPath(launchOption.version);
})().catch(e => {
log.error(e);
return null;
});
return "LAUNCHED";
}
launchOption.version = (await this.localVersionService.getVersionOfBSFolder(bsPath, {
steam: launchOption.version.steam,
oculus: launchOption.version.oculus,
})) ?? launchOption.version;
}
launchOption.version = {...(await this.remoteVersion.getVersionDetails(launchOption.version.BSVersion)), ...launchOption.version};
this.ipc.once("shortcut-launch-options", (_data, reply) => {
reply(of(launchOption));
});
this.windows.openWindow("shortcut-launch.html");
}
}
type ShortcutParams = {
oculusMode?: string;
desktopMode?: string;
debug?: string;
additionalArgs?: string[];
version: string;
versionName?: string;
versionIno?: string;
versionSteam?: string;
versionOculus?: string;
}
/**
* Create .desktop file for url shortcut (only for linux)
* @param {string} shortcutPath
* @param options
* @returns
*/
function createDesktopUrlShortcut(shortcutPath: string, options?: {
url: string
name: string,
icon: string
}): Promise<boolean> {
const { url, name, icon } = options || {};
const data = [
"[Desktop Entry]",
"Type=Link",
`Name=${name}`,
`Icon=${icon}`,
`URL=${url}`
].join("\n");
return writeFile(shortcutPath, data).then(() => true);
}
+187 -112
View File
@@ -1,12 +1,11 @@
import { BSVersionLibService } from "./bs-version-lib.service";
import { BSVersion, PartialBSVersion } from 'shared/bs-version.interface';
import { BSVersion } from "shared/bs-version.interface";
import { InstallationLocationService } from "./installation-location.service";
import { SteamService } from "./steam.service";
import { BS_APP_ID, OCULUS_BS_DIR } from "../constants";
import path from "path";
import { createReadStream } from "fs";
import { ConfigurationService } from "./configuration.service";
import { rename } from "fs/promises";
import { lstat, rename } from "fs/promises";
import { BsmException } from "shared/models/bsm-exception.model";
import log from "electron-log";
import { OculusService } from "./oculus.service";
@@ -14,66 +13,109 @@ import { DownloadLinkType } from "shared/models/mods";
import sanitize from "sanitize-filename";
import { copyDirectoryWithJunctions, deleteFolder, getFoldersInFolder, pathExist } from "../helpers/fs.helpers";
import { FolderLinkerService } from "./folder-linker.service";
import { ReadStream, createReadStream } from "fs-extra";
import readline from "readline";
import { Observable, Subject } from "rxjs";
export class BSLocalVersionService{
export class BSLocalVersionService {
private static instance: BSLocalVersionService;
private static instance: BSLocalVersionService;
private readonly CUSTOM_VERSIONS_KEY = "custom-versions";
private readonly CUSTOM_VERSIONS_KEY = "custom-versions";
private readonly installLocationService: InstallationLocationService;
private readonly steamService: SteamService;
private readonly oculusService: OculusService;
private readonly remoteVersionService: BSVersionLibService;
private readonly configService: ConfigurationService;
private readonly linker: FolderLinkerService;
private readonly _loadedVersions$: Subject<BSVersion[]>;
private readonly installLocationService: InstallationLocationService;
private readonly steamService: SteamService;
private readonly oculusService: OculusService;
private readonly remoteVersionService: BSVersionLibService;
private readonly configService: ConfigurationService;
private readonly linker: FolderLinkerService;
public static getInstance(): BSLocalVersionService {
if (!BSLocalVersionService.instance) {
BSLocalVersionService.instance = new BSLocalVersionService();
}
return BSLocalVersionService.instance;
}
public static getInstance(): BSLocalVersionService{
if(!BSLocalVersionService.instance){ BSLocalVersionService.instance = new BSLocalVersionService(); }
return BSLocalVersionService.instance;
}
private constructor(){
private constructor() {
this.installLocationService = InstallationLocationService.getInstance();
this.steamService = SteamService.getInstance();
this.oculusService = OculusService.getInstance();
this.remoteVersionService = BSVersionLibService.getInstance();
this.configService = ConfigurationService.getInstance();
this.linker = FolderLinkerService.getInstance();
this._loadedVersions$ = new Subject<BSVersion[]>();
}
private async getVersionFromGlobalGameManagerFile(versionFilePath: string): Promise<BSVersion> {
public async getVersionOfBSFolder(bsPath: string): Promise<PartialBSVersion>{
const versionFilePath = path.join(bsPath, 'Beat Saber_Data', 'globalgamemanagers');
if(!(await pathExist(versionFilePath))){ return null; }
const versionsAvailable = await this.remoteVersionService.getAvailableVersions();
return new Promise<PartialBSVersion>(resolve => {
const stream = createReadStream(versionFilePath);
let findVersion: PartialBSVersion = null;
stream.on('data', (line) => {
line = line.toString();
for(const version of versionsAvailable){
if(line.includes(version.BSVersion)){
findVersion = {BSVersion: version.BSVersion};
if(findVersion.BSVersion !== path.basename(bsPath)){
findVersion.name = path.basename(bsPath);
if(!(await pathExist(versionFilePath))){ return null; }
const versionsDict = await this.remoteVersionService.getAvailableVersions();
let stream: ReadStream;
try{
stream = createReadStream(versionFilePath);
const rl = readline.createInterface({
input: stream,
crlfDelay: Infinity
});
for await (const line of rl) {
for (const bsVersion of versionsDict) {
if (line.includes(bsVersion.BSVersion)) {
stream.close();
return {...bsVersion};
}
stream.close();
stream.destroy();
break;
}
}
});
stream.on('end', () => {
if(findVersion){ resolve(findVersion) }
resolve(findVersion);
});
stream.on('close', () => {
if(findVersion){ resolve(findVersion) }
resolve(findVersion);
})
})
} catch(e) {
log.error(e);
} finally {
stream?.close();
}
return null;
}
public async getVersionOfBSFolder(
bsPath: string,
options?: {
steam?: boolean;
oculus?: boolean;
}
): Promise<BSVersion>{
if(!bsPath){ return null; }
const versionFilePath = path.join(bsPath, 'Beat Saber_Data', 'globalgamemanagers');
const folderVersion = await this.getVersionFromGlobalGameManagerFile(versionFilePath);
if(!folderVersion){ return null; }
if(options?.steam || options?.oculus){
return {...folderVersion, ...options};
}
if(folderVersion.BSVersion !== path.basename(bsPath)){
folderVersion.name = path.basename(bsPath);
}
const folderStats = await lstat(bsPath);
if(folderStats.ino){
folderVersion.ino = folderStats.ino;
}
const customVersion = this.getCustomVersions().find(customVersion => {
return customVersion.BSVersion === folderVersion.BSVersion && customVersion.name === folderVersion.name;
});
folderVersion.color = customVersion?.color;
return folderVersion;
}
private setCustomVersions(versions: BSVersion[]): void{
@@ -93,101 +135,129 @@ export class BSLocalVersionService{
this.setCustomVersions(customVersions.filter(v => (v.name !== version.name || v.BSVersion !== version.BSVersion || v.color !== version.color)));
}
public async getVersionPath(version: BSVersion): Promise<string>{
if(version.steam){ return this.steamService.getGameFolder(BS_APP_ID, "Beat Saber") }
if(version.oculus){ return this.oculusService.getGameFolder(OCULUS_BS_DIR); }
return path.join(
this.installLocationService.versionsDirectory,
this.getVersionFolder(version)
);
}
private removeSpecialChar(seq: string): string{
return sanitize(seq);
}
/**
* Return path of a version even if it's not installed.
* @param {BSVersion} version
* @returns {Promise<string>}
*/
public async getVersionPath(version: BSVersion): Promise<string>{
if(version.steam){ return this.steamService.getGameFolder(BS_APP_ID, "Beat Saber") }
if(version.oculus){ return this.oculusService.getGameFolder(OCULUS_BS_DIR); }
return path.join(
await this.installLocationService.versionsDirectory(),
this.getVersionFolder(version)
);
}
/**
* Return path of an installed version. Returns null if not found.
* @param {BSVersion} version
* @returns {Promise<string>}
*/
public async getInstalledVersionPath(version: BSVersion): Promise<string>{
const versionPath = await this.getVersionPath(version);
if(await pathExist(versionPath)){ return versionPath; }
const versionFolders = await getFoldersInFolder(await this.installLocationService.versionsDirectory());
for(const folder of versionFolders){
const stats = await lstat(folder);
if(stats.ino === version.ino){
return folder;
}
}
return null;
}
public getVersionFolder(version: BSVersion): string{
return version.name ?? version.BSVersion;
}
public getVersionType(version: BSVersion): DownloadLinkType{
if(version.steam){ return "steam"; }
if(version.oculus){ return "oculus"; }
return "universal"
public getVersionType(version: BSVersion): DownloadLinkType {
if (version.steam) {
return "steam";
}
if (version.oculus) {
return "oculus";
}
return "universal";
}
private async getSteamVersion(): Promise<BSVersion>{
private async getSteamVersion(): Promise<BSVersion> {
const steamBsFolder = await this.steamService.getGameFolder(BS_APP_ID, "Beat Saber");
if(!steamBsFolder || !(await pathExist(steamBsFolder))){ return null; }
const steamBsVersion = await this.getVersionOfBSFolder(steamBsFolder);
if(!steamBsVersion){ return null; }
const version = await this.remoteVersionService.getVersionDetails(steamBsVersion.BSVersion);
if(!version){ return null; }
return {...version, steam: true};
if (!steamBsFolder || !(await pathExist(steamBsFolder))) {
return null;
}
return this.getVersionOfBSFolder(steamBsFolder, { steam: true });
}
private async getOculusVersion(): Promise<BSVersion>{
private async getOculusVersion(): Promise<BSVersion> {
const oculusBsFolder = await this.oculusService.getGameFolder(OCULUS_BS_DIR);
if(!oculusBsFolder){ return null; }
const oculusBsVersion = await this.getVersionOfBSFolder(oculusBsFolder);
if(!oculusBsVersion){ return null; }
const version = await this.remoteVersionService.getVersionDetails(oculusBsVersion.BSVersion);
if(!version){ return null; }
return {...version, oculus: true};
if (!oculusBsFolder) {
return null;
}
return this.getVersionOfBSFolder(oculusBsFolder, { oculus: true });
}
public async getInstalledVersions(): Promise<BSVersion[]>{
public async getInstalledVersions(): Promise<BSVersion[]> {
const versions: BSVersion[] = [];
const steamVersion = await this.getSteamVersion();
if(steamVersion){ versions.push(steamVersion); }
if (steamVersion) {
versions.push(steamVersion);
}
const oculusVersion = await this.getOculusVersion();
if(oculusVersion){ versions.push(oculusVersion); }
if (oculusVersion) {
versions.push(oculusVersion);
}
if(!(await pathExist(this.installLocationService.versionsDirectory))){ return versions }
if (!(await pathExist(await this.installLocationService.versionsDirectory()))) {
return versions;
}
const folderInInstallation = await getFoldersInFolder(this.installLocationService.versionsDirectory);
const folderInInstallation = await getFoldersInFolder(await this.installLocationService.versionsDirectory());
for(const f of folderInInstallation){
for (const f of folderInInstallation) {
log.info("try get version from folder", f);
const rawVersion = await this.getVersionOfBSFolder(f);
if(!rawVersion){ continue; }
const bsVersion = {...await this.remoteVersionService.getVersionDetails(rawVersion.BSVersion)};
if(!bsVersion){ continue; }
bsVersion.name = path.basename(f) !== bsVersion.BSVersion ? path.basename(f) : undefined;
const customVersion = this.getCustomVersions().find(custom => custom.BSVersion === bsVersion.BSVersion && custom.name === bsVersion.name);
if(customVersion){
bsVersion.color = customVersion.color;
}
const version = await this.getVersionOfBSFolder(f);
versions.push(bsVersion);
if(!version){ continue; }
versions.push(version);
};
this.setCustomVersions(versions.filter(v => !!v.color));
this._loadedVersions$.next(versions);
return versions;
}
}
public async deleteVersion(version: BSVersion): Promise<boolean>{
if(version.steam || version.oculus){ return false; }
const versionFolder = await this.getVersionPath(version);
if(!(await pathExist(versionFolder))){ return true; }
public async deleteVersion(version: BSVersion): Promise<boolean>{
if(version.steam || version.oculus){ return false; }
const versionFolder = await this.getVersionPath(version);
if(!(await pathExist(versionFolder))){ return true; }
return deleteFolder(versionFolder)
.then(() => { return true; })
.catch(() => { return false; })
}
return deleteFolder(versionFolder)
.then(() => { return true; })
.catch(() => { return false; })
}
public async editVersion(version: BSVersion, name: string, color: string): Promise<BSVersion>{
if(version.steam || version.oculus){ throw {title: "CantEditSteam", message: "CantEditSteam"} as BsmException; }
const oldPath = await this.getVersionPath(version);
const editedVersion: BSVersion = version.BSVersion === name
? {...version, name: undefined, color}
: {...version, name: this.removeSpecialChar(name), color};
: {...version, name: sanitize(name), color};
const newPath = await this.getVersionPath(editedVersion);
if(oldPath === newPath){
@@ -212,7 +282,7 @@ export class BSLocalVersionService{
const originPath = await this.getVersionPath(version);
const cloneVersion: BSVersion = version.BSVersion === name
? {...version, name: undefined, color, steam: false, oculus: false}
: {...version, name: this.removeSpecialChar(name), color, steam: false, oculus: false};
: {...version, name: sanitize(name), color, steam: false, oculus: false};
const newPath = await this.getVersionPath(cloneVersion);
if(originPath === newPath){
@@ -233,16 +303,21 @@ export class BSLocalVersionService{
public async getLinkedFolders(version: BSVersion): Promise<string[]>{
const versionPath = await this.getVersionPath(version);
const [rootFolders, beatSaberDataFolders] = await Promise.all([
getFoldersInFolder(versionPath),
getFoldersInFolder(path.join(versionPath, "Beat Saber_Data"))
]);
const [rootFolders, beatSaberDataFolders] = await Promise.all([getFoldersInFolder(versionPath), getFoldersInFolder(path.join(versionPath, "Beat Saber_Data"))]);
const linkedFolder = Promise.all([...rootFolders, ...beatSaberDataFolders].map(async folder => {
if(!(await this.linker.isFolderSymlink(folder))){ return null; }
return folder;
}));
const linkedFolder = Promise.all(
[...rootFolders, ...beatSaberDataFolders].map(async folder => {
if (!(await this.linker.isFolderSymlink(folder))) {
return null;
}
return folder;
})
);
return (await linkedFolder).filter(folder => folder);
}
public get loadedVersions$(): Observable<BSVersion[]>{
return this._loadedVersions$.asObservable();
}
}
+55 -52
View File
@@ -1,71 +1,74 @@
import { UtilsService } from './utils.service';
import path from 'path';
import { writeFileSync } from 'fs';
import { BSVersion } from 'shared/bs-version.interface';
import { RequestService } from "./request.service"
import { readJSON } from 'fs-extra';
import { allSettled } from '../../shared/helpers/promise.helpers';
import { UtilsService } from "./utils.service";
import path from "path";
import { writeFileSync } from "fs";
import { BSVersion } from "shared/bs-version.interface";
import { RequestService } from "./request.service";
import { readJSON } from "fs-extra";
import { allSettled } from "../../shared/helpers/promise.helpers";
export class BSVersionLibService{
export class BSVersionLibService {
private readonly REMOTE_BS_VERSIONS_URL: string = "https://raw.githubusercontent.com/Zagrios/bs-manager/master/assets/jsons/bs-versions.json";
private readonly VERSIONS_FILE: string = "bs-versions.json";
private readonly REMOTE_BS_VERSIONS_URL: string = "https://raw.githubusercontent.com/Zagrios/bs-manager/master/assets/jsons/bs-versions.json"
private readonly VERSIONS_FILE: string = "bs-versions.json";
private static instance: BSVersionLibService;
private static instance: BSVersionLibService;
private utilsService: UtilsService;
private requestService: RequestService;
private utilsService: UtilsService;
private requestService: RequestService
private bsVersions: BSVersion[];
private bsVersions: BSVersion[];
private constructor() {
this.utilsService = UtilsService.getInstance();
this.requestService = RequestService.getInstance();
}
private constructor(){
this.utilsService = UtilsService.getInstance();
this.requestService = RequestService.getInstance();
}
public static getInstance(): BSVersionLibService {
if (!BSVersionLibService.instance) {
BSVersionLibService.instance = new BSVersionLibService();
}
return BSVersionLibService.instance;
}
public static getInstance(): BSVersionLibService{
if(!BSVersionLibService.instance){ BSVersionLibService.instance = new BSVersionLibService(); }
return BSVersionLibService.instance;
}
private getRemoteVersions(): Promise<BSVersion[]>{
private getRemoteVersions(): Promise<BSVersion[]> {
return this.requestService.getJSON<BSVersion[]>(this.REMOTE_BS_VERSIONS_URL);
}
private async getLocalVersions(): Promise<BSVersion[]>{
const localVersionsPath = path.join(this.utilsService.getAssestsJsonsPath(), this.VERSIONS_FILE);
return readJSON(localVersionsPath);
}
private async getLocalVersions(): Promise<BSVersion[]> {
const localVersionsPath = path.join(this.utilsService.getAssestsJsonsPath(), this.VERSIONS_FILE);
return readJSON(localVersionsPath);
}
private async updateLocalVersions(versions: BSVersion[]): Promise<void>{
const localVersionsPath = path.join(this.utilsService.getAssestsJsonsPath(), this.VERSIONS_FILE);
writeFileSync(localVersionsPath, JSON.stringify(versions, null, "\t"), {encoding: 'utf-8', flag: 'w'});
};
private async updateLocalVersions(versions: BSVersion[]): Promise<void> {
const localVersionsPath = path.join(this.utilsService.getAssestsJsonsPath(), this.VERSIONS_FILE);
writeFileSync(localVersionsPath, JSON.stringify(versions, null, "\t"), { encoding: "utf-8", flag: "w" });
}
private async loadBsVersions(): Promise<BSVersion[]>{
private async loadBsVersions(): Promise<BSVersion[]> {
if (this.bsVersions) {
return this.bsVersions;
}
if(this.bsVersions){ return this.bsVersions; }
const [localVersions, remoteVersions] = await allSettled([this.getLocalVersions(), this.getRemoteVersions()], { keepStructure: true });
const [localVersions, remoteVersions] = await allSettled([
this.getLocalVersions(), this.getRemoteVersions()
], {keepStructure: true});
let resVersions = localVersions;
if (remoteVersions?.length) {
resVersions = remoteVersions;
this.updateLocalVersions(resVersions);
}
this.bsVersions = resVersions;
return this.bsVersions;
}
let resVersions = localVersions;
if(remoteVersions && remoteVersions.length){ resVersions = remoteVersions; this.updateLocalVersions(resVersions); }
this.bsVersions = resVersions;
return this.bsVersions;
}
public async getAvailableVersions(): Promise<BSVersion[]> {
const bsVersions = await this.loadBsVersions();
if (!bsVersions?.length) {
return [];
}
return bsVersions;
}
public async getAvailableVersions(): Promise<BSVersion[]>{
const bsVersions = await this.loadBsVersions();
if(!bsVersions || !bsVersions.length){ return []; }
return bsVersions;
}
public async getVersionDetails(version: string): Promise<BSVersion>{
public async getVersionDetails(version: string): Promise<BSVersion> {
const versions = await this.getAvailableVersions();
return versions.find(v => v.BSVersion === version);
}
}
}
+48
View File
@@ -0,0 +1,48 @@
import { Subject, Subscription, filter } from "rxjs";
import { DeepLinkService } from "./deep-link.service";
import { buildUrl, isValidUrl } from "../../shared/helpers/url.helpers";
export class BsmProtocolService {
private static instance: BsmProtocolService;
public static getInstance(): BsmProtocolService{
if(!BsmProtocolService.instance){ BsmProtocolService.instance = new BsmProtocolService(); }
return BsmProtocolService.instance;
}
private readonly BSM_PROTOCOL = "bsmanager";
private readonly deepLink: DeepLinkService;
private linkeReceived$ = new Subject<URL>();
private constructor(){
this.deepLink = DeepLinkService.getInstance();
this.registerBsmProtocol();
this.deepLink.addLinkOpenedListener(this.BSM_PROTOCOL, link => {
if(!isValidUrl(link)){ return; }
this.linkeReceived$.next(new URL(link));
});
}
private registerBsmProtocol(): boolean{
if(this.deepLink.isDeepLinkRegistered(this.BSM_PROTOCOL)){ return true; }
return this.deepLink.registerDeepLink(this.BSM_PROTOCOL);
}
public on(host: string, listener: (link: URL) => void): Subscription {
return this.linkeReceived$.pipe(filter(link => link.host === host)).subscribe(listener);
}
public buildLink(host: string, params?: Record<string, string|string[]>): URL {
return buildUrl({
protocol: this.BSM_PROTOCOL,
host,
search: params
});
}
}

Some files were not shown because too many files have changed in this diff Show More