Commit Graph

533 Commits

Author SHA1 Message Date
Sandro Soria
7513a1202d
Merge f0321e1f6d into 03dac9ed6d 2024-10-26 16:48:08 +00:00
Sandro642
f0321e1f6d Reorder function calls in prepareModsTab.
Moved the manageModCategory function call to the end within prepareModsTab. This ensures that category management happens after resolving the UI elements, maintaining the logical sequence of operations.
2024-10-26 17:46:24 +02:00
Sandro642
0893cf5a5e Update landing script to improve debug capabilities
Added comment about server regex customization and clarified the login parameter's role in the dlAsync function, simplifying testing and validation without game launch.
2024-10-26 17:45:03 +02:00
Sandro642
8744d3b8c5 Remove unnecessary comment separators
Deleted redundant comment separators to clean up the code and improve readability. This does not affect the functionality but ensures the codebase remains easier to maintain.
2024-10-26 17:41:08 +02:00
Sandro642
aab9ff5c3e Update launch process with Discord RPC enhancements
Refined the logic for initializing and shutting down Discord Rich Presence (RPC). Added more detailed logging and error handling to the game launch process, enhancing the user experience and debugging capabilities.
2024-10-26 17:39:40 +02:00
Sandro642
a8a00e46ba Add Athena's Shield section to README
Introduced instructions on activating Athena's Shield in HeliosLauncher. This includes steps for running the verification system and choosing various options to ensure mod integrity and a secure gaming experience.
2024-10-26 17:26:45 +02:00
Sandro642
068ca6b0f0 Remove French configuration and distribution files
Deleted `config.json` and `distribution.json` from the `fr` directory. These files contained localized configuration and distribution settings which are no longer needed.
2024-10-26 17:11:43 +02:00
Sandro642
5ffa73275e Remove outdated .idea configuration files
Removed various .idea project configuration files that are no longer needed. This cleanup helps avoid clutter and potential conflicts with differing local configurations.
2024-10-26 17:08:43 +02:00
Sandro642
d0c5bf142d Set package to private
Change the "private" field in package.json to true. This will prevent the package from being accidentally published to public repositories.
2024-10-26 17:06:30 +02:00
Sandro642
a9c81a15ff Update review date in landing.js header comment
Adjusted the review date to reflect the latest inspection on 10.26.2024. No other changes or bug fixes were included in this commit.
2024-10-26 17:05:45 +02:00
Sandro642
160898389e Add crypto package to dependencies
The crypto package is added to the dependencies in package.json to support encryption-related functionalities. This addition helps in enhancing the security features of the application.
2024-10-26 17:03:39 +02:00
Sandro642
db499844db Update documentation: Move Athena's Shield docs to /docs
Renamed Athena's Shield documentation file and added detailed sections explaining its purpose, key features, and user benefits. Introduced a new security feature for HeliosLauncher, ensuring the integrity of installed mods.
2024-10-26 17:03:15 +02:00
Sandro642
1515571824 Remove deprecated Athena Shield and HeliosLauncher code
Deleted the dlAsync.js and landing.js files from both "ancien code" and "version code final" directories. This cleanup removes outdated functionality related to mod validation and launcher processes, streamlining the codebase.
2024-10-26 16:51:58 +02:00
Sandro642
a94aa49402 Fix typo in comment annotation
Corrected the typo "discovereds" to "discovered" in the comment section of the landing.js file. This ensures accuracy and professionalism in the documentation.
2024-10-26 16:46:22 +02:00
Sandro642
50ad0e8a91 Enable detailed debug logging for mod identity validation
This commit refactors the mod identity extraction and validation process to include detailed debug logs, which are conditionally logged based on the `athShield.debug` flag. It also updates the import statements and correctly references the `ConfigManager.getNameDataPath` function for error messages.
2024-10-26 16:46:05 +02:00
Sandro642
f366b8b86a Update distribution URL in distromanager.js
Revert distribution URL to 'https://helios-files.geekcorner.eu.org/distribution.json'. This change ensures compatibility with the older distribution endpoint and corrects the previous, unintended URL.
2024-10-26 16:28:41 +02:00
Sandro642
84b4ba91ed Refactor identity check error message
Simplify the log message for identity not found in the manifest by combining it with the hash usage statement. This improves readability and reduces redundancy in the code.
2024-10-26 16:28:10 +02:00
Sandro642
33788d4086 Update REMOTE_DISTRO_URL to new API endpoint
Switched the distribution URL to a more reliable API endpoint to improve stability and performance. The new URL is 'https://api.skym-mc.fr/api/v1/servers/distro', which replaces the old one.
2024-10-26 16:27:50 +02:00
Sandro642
485facf1f1 Enable debug logging conditionally for AthShield
Wrapped several logging statements related to module identity extraction and validation with a conditional check on the athShield.debug flag. This ensures that detailed logging information is recorded only when debugging is enabled, optimizing performance and log clarity.
2024-10-26 16:27:25 +02:00
Sandro642
3cdad516c9 Add debug mode option to Athena's Shield configuration
Introduced an option to activate debug mode in Athena's Shield. Updated relevant JavaScript files and configuration to handle the debug mode setting. Added a new method for retrieving the debug status within the parserAthShield.js class.
2024-10-26 16:26:54 +02:00
Sandro642
09646484f1 Add project configuration and settings files
Added .gitignore to exclude IDE-specific files, set up project code style configuration, included game and launcher settings in config.json, and created minimal discord and distribution JSON files for project setup.
2024-10-26 14:30:35 +02:00
Sandro642
980c836d9d Make package public
Changed "private" field in package.json from true to false. This will make the package accessible on npm and allow others to install it.
2024-10-25 21:16:50 +02:00
Sandro642
1f4df6b8ff Refactor config path retrieval in landing.js
Remove unused dataPath constant and replace its usage in mod validation error message with ConfigManager.getNameDataPath(). This ensures the config path is retrieved dynamically.
2024-10-24 23:40:14 +02:00
Sandro642
48350019f2 Refactor dataPath assignment
Replaced direct assignment of `dataPath` with variable `nameDataPath` for consistent naming. Introduced `getNameDataPath` function to return the launcher directory name string.
2024-10-24 23:39:45 +02:00
Sandro642
9d4c8cc399 Fix escape character handling in console log messages
Updated console log messages in athshield.js to use single quotes for consistent escape character handling. This adjustment ensures better compatibility and readability of string literals in the code.
2024-10-24 18:20:36 +02:00
Sandro642
297a3a099c Refactor comments and questions from French to English
Updated all comments and user prompts in athshield.js from French to English for better code readability and broader usability. No functional changes were made.
2024-10-24 18:18:52 +02:00
Sandro642
96e0ca12f4 Refactor menu visibility logic in athshield.js
Separate logic for 'cacher' and 'bloquer' options and update corresponding values to 'hidden' and 'blocked' respectively. Ensure configuration is saved after setting the menu visibility.
2024-10-24 18:17:46 +02:00
Sandro642
fc5a2d4b8d Rename view method to type and integrate athShield in settings
Renamed the `view` method to `type` in parserAthShield.js to better reflect its purpose. Removed unused `athShield` import from landing.js and added it to settings.js. Added a manageModCategory function in settings.js to manage the display and interaction state of the Mods tab based on the type of `athShield`.
2024-10-24 18:00:00 +02:00
Sandro642
ae9e7b54b0 Update athshield script path in package.json
Relocated the athshield.js script from ./athshield/ to app/assets/athshield/. This change ensures better organization of script files within the project structure.
2024-10-24 16:28:14 +02:00
Sandro642
e3c6a185ed Add Athena's Shield activation messages
Include messages for when Athena's Shield is activated and deactivated in the English localization file. This will provide users with clear notifications on the status of Athena's Shield.
2024-10-24 16:28:05 +02:00
Sandro642
b435f7a485 Refactor project structure by moving athshield files
Relocated athshield files to app/assets/athshield for better organization and maintainability. This change improves the project's folder structure and simplifies file management.
2024-10-24 16:27:56 +02:00
Sandro642
2fc9c3ec35 Add mod verification logic using Athena's Shield
Integrated Athena's Shield for mod verification, including mod identity extraction and validation against expected identities. Added exclusion list for mods, and implemented fallbacks for missing mod identities using MD5 hashes. Adjusted logging and error reporting to provide clearer feedback.
2024-10-24 16:27:37 +02:00
Sandro Soria
1476dbb67b Merge remote-tracking branch 'origin/master' 2024-10-24 16:10:27 +02:00
Sandro Soria
886b29e356 Use AthShield for mod verification
Implemented mod verification using AthShield when enabled. Added detailed mod identity extraction and validation logic for better integrity checks. Added logs for each verification step and fallback to hash-based identity if the manifest is missing.

Grande ligne : quand tu actives ath shield alors il utilise le système Athena's Shield.
2024-10-24 16:10:14 +02:00
Sandro642
7073c2744b Add mod whitelist and new HeliosLauncher support
Implemented a whitelist for mods and added support for the new version of HeliosLauncher. Also corrected a language key for launch information logging.
2024-10-24 16:08:15 +02:00
Sandro642
85cb73363a Fix typo in game launch message
Corrected the typo from "launchingGame" to "waintingLaunchingGame" in the en_US language file. This ensures the message displayed to users is accurate and free of errors.
2024-10-24 16:08:01 +02:00
Sandro642
3790b52d0d Update landing.js dependencies and add new features
Replaced 'path' with 'fs' module and removed unused 'Lang'. Added support for the new HeliosLauncher version and implemented a whitelist for mods. Fixed a typo in the logging message.
2024-10-24 16:05:21 +02:00
Sandro642
5f3e229360 Add new dlAsync function and mod validation messages
Implemented a new `dlAsync.js` file and updated the `en_US.toml` with new mod validation messages. This includes the logic for mod verification and error handling, ensuring the integrity of mods before launching the game.

Ajout prochainement de l'utilitaire npm run athshield
2024-10-23 19:17:23 +02:00
Sandro642
9813802b1c Add Athena's Shield configuration and CLI
Introduce AthenaShield class to manage configuration, CLI for user setup, and update package.json with new script. This enhances the application's configurability and user interaction.
2024-10-23 17:33:39 +02:00
Sandro642
3ee4c73790 Add documentation for Athena's Shield feature 2024-10-23 16:23:32 +02:00
Daniel Scalzi
03dac9ed6d
Electron 33, dependency upgrade. 2024-10-22 00:24:50 -04:00
Daniel Scalzi
eb683f89ec
Support 1.20.5, electron 30, dependency upgrade. 2024-04-28 17:35:19 -04:00
Daniel Scalzi
ae0e9e227d
2.2.1
CVE-2024-27303
2024-03-06 21:57:24 -05:00
Daniel Scalzi
dc15bbfde8
2.2.0 2024-02-22 11:50:18 -05:00
Daniel Scalzi
0d23f5c45b
Upgrade to Electron 29, Node.js 20. 2024-02-22 11:42:13 -05:00
Kamesuta
fc4823a01f
Localize Microsoft/Mojang authentication error messages (#331)
* Move Microsoft/Mojang error message to lang file.

* Add mstfLogin to language file
2024-02-22 11:23:23 -05:00
Daniel Scalzi
95eebc18a7
2.1.1 2024-01-04 19:09:30 -05:00
Daniel Scalzi
d03ff90f78
Remove mojang authserver as it has been permanently shut down. 2024-01-04 19:09:03 -05:00
Daniel Scalzi
258cd0d421
2.1.0 2023-12-03 18:06:25 -05:00
Daniel Scalzi
f65eb2f2d6
Dependency upgrade. 2023-12-03 18:05:47 -05:00