Build your gui use tauri

source

Install

I use kali as my main development desktop, see the full install doc here

 1sudo apt update
 2sudo apt install -y libwebkit2gtk-4.0-dev \
 3    build-essential \
 4    curl \
 5    wget \
 6    libssl-dev \
 7    libgtk-3-dev \
 8    libayatana-appindicator3-dev \
 9    librsvg2-dev
10
11#install rust use rustup
12curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
13#install tauri use cargo
14cargo install tauri-cli --version "^1.0.0"
15#manage node version use nvm
16curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
17#restart you terminal session or source you terminal rc file
18#install latest lts version node
19nvm install --lts

Download node from node official website

node script

1{
2  // This content is just a sample
3  "scripts": {
4    "tauri": "tauri"
5  }
6}
 1# here i use [ant design pro](https://pro.ant.design/zh-CN/docs/getting-started)
 2npm i @ant-design/pro-cli -g
 3pro create tauri-app
 4cd tauri-app && npm install
 5#install tauri
 6npm install --save-dev @tauri-apps/cli
 7#edit your package.json put node script in
 8npm run tauri init
 9#edit src-tauri/tauri.conf.json
10#"beforeBuildCommand": "npm run build",
11#"beforeDevCommand": "npm run dev",
12#"devPath": "http://localhost:8000",
13#"distDir": "../dist"
14npm run tauri dev
1npm run tauri build
2#will got a deb bundle and an appimage file under src-tauri/target/release/bundle

Happy dev your cross-platform GUI use javascript