File tree Expand file tree Collapse file tree 4 files changed +23
-0
lines changed Expand file tree Collapse file tree 4 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 11# Development
22public /
3+ src-tauri /sidecars /
34
45# Logs
56logs
Original file line number Diff line number Diff line change 1414 "cmd" : " java" ,
1515 "args" : true ,
1616 "sidecar" : false
17+ },
18+ {
19+ "name" : " sidecars/bun-sidecar" ,
20+ "args" : true ,
21+ "sidecar" : true
1722 }
1823 ]
1924 },
Original file line number Diff line number Diff line change 39394040 " icons/icon.icns" ,
4141 " icons/icon.ico"
42+ ],
43+ "externalBin" : [
44+ " sidecars/bun-sidecar"
4245 ]
4346 }
4447}
Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import { inject } from " vue" ;
3+ import { Command } from ' @tauri-apps/plugin-shell' ;
34import type {
45 ContextGlobalStatesType ,
56} from " @/types/application/global-states.type.ts" ;
67import { GlobalStatesContextKey } from " @/constants/application.ts" ;
78import MaterialRipple from " @/components/misc/MaterialRipple.vue" ;
89
910const globalStates = inject <ContextGlobalStatesType >(GlobalStatesContextKey );
11+
12+ async function startElysia(): Promise <void > {
13+ const command = Command .sidecar (" sidecars/bun-sidecar" , [
14+ " hello" ,
15+ " from a fucking javascript server" ,
16+ ]);
17+ const output = await command .execute ();
18+
19+ console .log (output );
20+ }
1021 </script >
1122
1223<template >
@@ -33,5 +44,8 @@ const globalStates = inject<ContextGlobalStatesType>(GlobalStatesContextKey);
3344 </span >
3445 <MaterialRipple />
3546 </button >
47+ <button key =" unknown-button" @click =" startElysia" >
48+ Heh
49+ </button >
3650 </TransitionGroup >
3751</template >
You can’t perform that action at this time.
0 commit comments