Skip to content
This repository has been archived by the owner on May 29, 2022. It is now read-only.

Verbose Overview

Jahnavi Gupta edited this page Jan 17, 2021 · 2 revisions

There are a few components which add up to make Sinix as a final product. A list of all the active projects on the orgs profile.

Introduction

This project includes the source of Sinix Desktop application. It comes with a store to browse through the available games and install it in a click. It also works as a webview wrapper for HTML5 games. Sinix Desktop is powered by Tauri and hence cross-platform by design.

Source Tree

The source code is mainly divided into two parts.

src-tauri/ is the root directory for the backend. It just contains the minimal code to get started using [Tauri]. Mostly, there won't be anything to mess around with.

For frontend, Tauri exposes some API functions which can be used to do things that normally aren't in the league of Frontend. This API also includes emit and listen function which can be used as a communication medium between Frontend and Backend.

browse(){
  open().then((file) => { // Opens file browser
    emit("sinix-install", file)
    console.log(file)
  }).catch((err) => {
    console.log(err)
  })
}

Source

In here, Frontend signals to Backend every time user selects a file from his/her local computer to install. It sends file - the path to that file - to the backend to install it successfully.

Clone this wiki locally