Skip to content

Commit 91243f9

Browse files
committed
prefix sidebar with hyprnote-sidecar
1 parent 505beb0 commit 91243f9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/desktop_cd.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,16 @@ jobs:
101101
- run: pnpm -F ui build
102102
- if: ${{ matrix.include_am }}
103103
run: |
104-
aws s3 cp s3://argmax/stt apps/desktop/src-tauri/binaries/stt-${{ matrix.target }} \
104+
aws s3 cp s3://argmax/stt apps/desktop/src-tauri/binaries/hyprnote-sidecar-stt-${{ matrix.target }} \
105105
--endpoint-url ${{ secrets.CLOUDFLARE_R2_ENDPOINT_URL }} \
106106
--region auto
107107
env:
108108
AWS_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY_ID }}
109109
AWS_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_R2_SECRET_ACCESS_KEY }}
110110
- if: ${{ matrix.include_am }}
111111
run: |
112-
chmod +x ./apps/desktop/src-tauri/binaries/stt-${{ matrix.target }}
113-
./scripts/sidecar.sh "./apps/desktop/${{ env.TAURI_CONF_PATH }}" "binaries/stt"
112+
chmod +x ./apps/desktop/src-tauri/binaries/hyprnote-sidecar-stt-${{ matrix.target }}
113+
./scripts/sidecar.sh "./apps/desktop/${{ env.TAURI_CONF_PATH }}" "binaries/hyprnote-sidecar-stt"
114114
# - run: ./scripts/resource.sh "./apps/desktop/${{ env.TAURI_CONF_PATH }}" "resources/libonnxruntime.dylib"
115115
- uses: ./.github/actions/apple_cert
116116
id: apple-cert

crates/host/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub enum ProcessMatcher {
2525
pub fn kill_processes_by_matcher(matcher: ProcessMatcher) -> u16 {
2626
let target = match matcher {
2727
ProcessMatcher::Name(name) => name,
28-
ProcessMatcher::Sidecar => "stt".to_string(),
28+
ProcessMatcher::Sidecar => "hyprnote-sidecar".to_string(),
2929
};
3030

3131
let mut sys = sysinfo::System::new();
@@ -78,6 +78,6 @@ mod tests {
7878
#[test]
7979
fn test_kill_processes_by_matcher() {
8080
let killed_count = kill_processes_by_matcher(ProcessMatcher::Sidecar);
81-
assert!(killed_count > 0);
81+
assert!(killed_count == 0);
8282
}
8383
}

plugins/local-stt/src/ext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ async fn start_external_server<R: Runtime, T: Manager<R>>(
484484
external::CommandBuilder::new(move || {
485485
app_handle
486486
.shell()
487-
.sidecar("stt")
487+
.sidecar("hyprnote-sidecar-stt")
488488
.expect("failed to create sidecar command")
489489
.current_dir(dirs::home_dir().unwrap())
490490
.args(["serve", "--any-token"])

0 commit comments

Comments
 (0)