Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[submodule "Ecdar-GUI-Web"]
path = Ecdar-GUI-Web
url = https://github.com/ECDAR-AAU-SW-P5/Ecdar-GUI-Web.git
url = https://github.com/ECDAR-AAU-SW-P5/Ecdar-GUI-Web
branch = main
2 changes: 1 addition & 1 deletion Ecdar-GUI-Web
58 changes: 34 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,65 @@

A native implementation of Ecdar-GUI-Web

## Compile
Be shure to be in the root folder of the project and follow these steps

### Install Dependencies
### Install dependencies

Install `node`, `protobuf`, and `cargo`

#### Linux

###### Debian
```
$ git clone https://github.com/ECDAR-AAU-SW-P5/Ecdar-GUI-Web.git
sudo apt install cargo nodejs protobuf-compiler
```

#### Linux

Install `node`, `npm` and `cargo`
###### Arch
```
$ sudo pacman -S cargo nodejs npm
sudo pacman -S cargo nodejs protobuf
```

###### Debian
#### Mac
```
$ sudo apt install cargo node npm
brew install protobuf node
```

#### Mac
Install [Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html)

#### Windows
Install [Protoc](https://www.geeksforgeeks.org/how-to-install-protocol-buffers-on-windows/)

Install [Node](https://nodejs.org/en/download)

Install [Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html)


### Npm Dependencies
```
$ npm i -g vite
$ cd Ecdar-GUI-WEB
$ npm install
$ cd ..
```
### Cargo dependencies
To run tauri applications, some need to install tauri cli
```
$ cargo install tauri-cli
cargo install tauri-cli
```

### Git dependencies
To install and initialize all submodules, run
```
git submodule update --init --recursive
```

### Ecdar-GUI-Web dependencies
Open the `Ecdar-GUI-Web` submodule, and follow its installation instructions to ensure that it can compile itself.

### Run
How to run Ecdar-GUI-Native
#### Dev
```
$ cargo tauri dev
cargo tauri dev
```
#### Release
```
$ cargo tauri build
cargo tauri build
```

In release the executable can be found at
###### Mac/Linux
The executable can be found at `./src-tauri/target/release/ecdar`
```./target/release/ecdar```
###### Windows
The executable can be found at `.\src-tauri\target\release\ecdar.exe`
```.\target\release\ecdar.exe```
4 changes: 2 additions & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"beforeBuildCommand": "yarn --cwd=./Ecdar-GUI-Web/ build",
"beforeDevCommand": "yarn --cwd=./Ecdar-GUI-Web/ dev",
"beforeBuildCommand": "git submodule update --init --recursive && yarn --cwd=./Ecdar-GUI-Web install && yarn --cwd=./Ecdar-GUI-Web/ build",
"beforeDevCommand": "git submodule update --init --recursive && yarn --cwd=./Ecdar-GUI-Web install && yarn --cwd=./Ecdar-GUI-Web/ dev",
"devPath": "http://localhost:5173",
"distDir": "../Ecdar-GUI-Web/build/",
"withGlobalTauri" : true
Expand Down