-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a76dfb0
commit a84a035
Showing
7 changed files
with
98 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# Contributing | ||
|
||
Contributions are welcome and encouraged! | ||
|
||
## Development | ||
|
||
Clone the repo | ||
|
||
```bash | ||
git clone https://github.com/mihai-dinculescu/msfs-2020-gps-link.git | ||
``` | ||
|
||
Start msfs-2020-gps-link in dev mode | ||
|
||
```bash | ||
cd msfs-2020-gps-link | ||
yarn tauri dev | ||
``` | ||
|
||
### Releases | ||
|
||
- Update version in `msfs-2020-gps-link\src-tauri\Cargo.toml` | ||
- Update version in `msfs-2020-gps-link\package.json` | ||
- Update `version.txt` | ||
- Commit | ||
- Add tag | ||
|
||
```bash | ||
git tag -a vX.X.X | ||
``` | ||
|
||
- Push | ||
|
||
```bash | ||
git push --follow-tags | ||
``` | ||
|
||
- Build a new installer | ||
|
||
```bash | ||
yarn tauri build | ||
``` | ||
|
||
The new installer can be found in `msfs-2020-gps-link\msfs-2020-gps-link\src-tauri\target\release\bundle\msi`. | ||
|
||
- Create the release and publish the installer archive | ||
|
||
### Troubleshooting | ||
|
||
### 1. Tauri `target` path | ||
|
||
Tauri doesn't currently handle Rust workspaces very well. The following workaround is needed in order to make it successfully build the release bundle | ||
|
||
msfs-2020-gps-link/.cargo/config | ||
|
||
```toml | ||
[build] | ||
target-dir = "<full-path-to-project>/msfs-2020-gps-link/src-tauri/target" | ||
``` | ||
|
||
## Tracing | ||
|
||
Spin up Jaeger | ||
|
||
```bash | ||
docker run -d -p6831:6831/udp -p6832:6832/udp -p16686:16686 -p14268:14268 jaegertracing/all-in-one:latest | ||
``` | ||
|
||
Start msfs-2020-gps-link in dev mode | ||
|
||
```bash | ||
cd msfs-2020-gps-link | ||
RUST_LOG=info yarn tauri dev | ||
``` | ||
|
||
Browse the Jaeger traces at http://localhost:16686. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "MSFS-2020-GPS-Link" | ||
version = "0.1.0" | ||
version = "0.2.0" | ||
authors = [ "Mihai Dinculescu <[email protected]>" ] | ||
edition = "2018" | ||
description = "MSFS 2020 GPS Link" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.1.0 | ||
0.2.0 |