Skip to content

Latest commit

 

History

History
82 lines (57 loc) · 4.66 KB

File metadata and controls

82 lines (57 loc) · 4.66 KB

EAM Developer Quick Start

EAM is a project with the following components:

Prerequisites

  • Rust: Install the Rust toolchain and Cargo.
  • Node.js: Install Node.js for the React frontend.
  • Bun: Bun is used as our runtime.
  • .NET Framework 4.8: Required for the C# sub-project. (Comes with windows)
  • Tauri CLI: Install globally with cargo install tauri-cli.

Setup Steps

  1. Install JavaScript Dependencies:

  2. Link the eam-commons-js lib:

    • Build the lib using npm run build in [t-src-modules/eam-commons-js]
    • Run either npm link or bun link in t-src-modules/eam-commons-js
    • Run either npm link eam-commons-js or bun link eam-commons-js in the project root
  3. Build the included binaries (Windows only):

    If you have trouble building the EAM_Task_Installer you can just copy the current existing versions from yourC:\Users\%username%\AppData\Local\ExaltAccountManager\v4 into the specified destinations. (Requires an installed EAM version)

  4. Run EAM in developer mode: Run bun run tauri dev in the root of the project.

    This will take quite a while for the first time but eventually you should see a transparent Window pop up. This windows will after a short time display EAM.

    Enjoy coding 🥳

Recommendations

  • We use GitMojis for commit messages, if you don't wish to do so, that's fine but expect your commits to be squashed upon merge.
  • If possible use a GPG-Key to sign your commits.

Bonus

  • Opening the developer tools
    • Windows: Press F12 when EAM is focused to open the Developer console.
    • macOS: Right-Click -> Inspect or press CMD + Shift + J
  • Reload the page
    • Windows: Press F5 or Ctrl + R to reload the window.
    • macOS: Right-Click -> Reload or open the developer tools and press CMD + R
  • The LocalStorage and SessionStorage contain data.

Building for Production

At the moment building for production is not done via GitHub actions since we use a Code Signing Certificate that is stored on a local SmartCard. If you wish to build your own version please do so by modifying the src-tauri\tauri.conf.json file.

Remove the following properties in order to be able to build:

  • bundle.windows.certificateThumbprint This is the code signing certificates thumbprint
  • bundle.windows.digestAlgorithm This is the digest Algorithem for code signing
  • bundle.windows.timestampUrl This is the timestamp server used for code signing
  • bundle.plugins.updater.endpoints This are the endpoints for EAM-Updates. If you build your own version you need to either host your own or remove all update servers.
  • bundle.plugins.updater.pubkey This is the public key of the updates, since your build requires it's own private key you need to either remove this property or have your own key-pair.

More informations can be found at the Tauri documentation https://tauri.app/reference/config/
When ready, use npm run tauri build in the root of the project.