-
Notifications
You must be signed in to change notification settings - Fork 1
Verbose Overview
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.
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.
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)
})
}
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.