diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 47db4b0..680267f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Release on: push: branches: - - main + - release jobs: release: @@ -24,6 +24,8 @@ jobs: - uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAURI_PRIVATE_KEY: ${{ secret.TAURI_PRIVATE_KEY }} + TAURI_KEY_PASSWORD: ${{ secret.TAURI_KEY_PASSWORD }} with: tagName: dolos-v__VERSION__ releaseName: 'Dolos v__VERSION__' diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/src-tauri/src/tcp_proxy.rs b/src-tauri/src/tcp_proxy.rs index 90bb6d3..70041ae 100644 --- a/src-tauri/src/tcp_proxy.rs +++ b/src-tauri/src/tcp_proxy.rs @@ -22,16 +22,17 @@ struct OutputActor { output_reciever: mpsc::Receiver> } +// Server for Riot Client impl InputActor { async fn run(mut self) { loop { let mut curr_buf = [0; 1024 * 64]; tokio::select! { - // Receiving from Riot Games + sending to Client + // Receiving from Output Actor Some(data) = self.input_reciever.recv() => { let _ = self.input_stream.write_all(&data).await; } - // Receiving from Client + sending to Riot Games + // Receiving from Riot Client Ok(n) = self.input_stream.read(&mut curr_buf) => { if n > 0 { let _ = self.output_sender.send(curr_buf[0..n].to_vec()).await; @@ -42,12 +43,13 @@ impl InputActor { } } +// Connection to Riot Servers impl OutputActor { async fn run(mut self) { loop { let mut curr_buf = [0; 1024 * 64]; tokio::select! { - // Receiving from Client + sending to Riot Games + // Receiving from Input Actor Some(data) = self.output_reciever.recv() => { let data_str = String::from_utf8_lossy(&data); let msg = if data_str.contains(" { if n > 0 { let _ = self.input_sender.send(curr_buf[0..n].to_vec()).await; diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 566fabe..6e70a2d 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -54,7 +54,12 @@ "csp": null }, "updater": { - "active": false + "active": true, + "endpoints": [ + "https://leastrio.github.io/Dolos/version.json" + ], + "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDNENDdCMzRCQzhENTY2MjMKUldRalp0WElTN05IUFVnaXZROVZuQ0RYWGhtajRYUFVXZ3BrZXhvUkpmUU9nZzRYT0cwbHlzVm8K", + "dialog": true }, "windows": [ {