File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change 1- import { copyFile } from "node:fs" ;
2- import { join , resolve } from "node:path" ;
1+ import { $ } from "bun" ;
32
4- const rootDir = resolve ( __dirname , ".." ) ;
5-
6- const wasmModuleDir = join ( rootDir , "dist/wasm/2020/msfs_navigation_data_interface.wasm" ) ;
7- const panelDir = join (
8- rootDir ,
9- "example/aircraft/PackageSources/SimObjects/Airplanes/Navigraph_Navigation_Data_Interface_Aircraft/panel/msfs_navigation_data_interface.wasm" ,
10- ) ;
11-
12- copyFile ( wasmModuleDir , panelDir , err => {
13- if ( err ) {
14- console . error ( `[-] Wasm module copy failed: ${ err . message } ` ) ;
15- process . exit ( 1 ) ;
16- }
17-
18- console . info ( `[*] Copying WASM module to aircraft panel folder` ) ;
19- } ) ;
3+ await $ `cp dist/wasm/2020/msfs_navigation_data_interface.wasm example/aircraft/PackageSources/SimObjects/Airplanes/Navigraph_Navigation_Data_Interface_Aircraft/panel/msfs_navigation_data_interface.wasm` ;
You can’t perform that action at this time.
0 commit comments