Skip to content

Commit

Permalink
workflow(fix): now autocreates the out folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigTag committed Jan 29, 2025
1 parent bfea29a commit 105680b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: npm run setup

- name: Build WASM module
run: npm run build:wasm
run: npm run build:wasm-workflow

- name: Pre-Release
uses: softprops/action-gh-release@v1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"lint:js": "eslint \"src/js/**/*.ts\"",
"setup": ".\\scripts\\setup.bat",
"build:wasm": ".\\scripts\\build.bat",
"build:wasm-workflow": "./scripts/build.sh",
"build:wasm-workflow": ".\\scripts\\build_workflow.bat",
"build:js": "cd .\\src\\js && npm run build",
"build:gauge": "cd .\\examples\\gauge && npm run build",
"dev:gauge": "cd .\\examples\\gauge && npm run dev",
Expand Down
4 changes: 2 additions & 2 deletions scripts/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

cd %~dp0

cargo-msfs build msfs2020 -i .. -o ..\out\msfs_navigation_data_interface.wasm
mkdir ..\out

cd %~dp0
cargo-msfs build msfs2020 -i .. -o ..\out\msfs_navigation_data_interface.wasm

copy ..\out\msfs_navigation_data_interface.wasm ..\examples\aircraft\PackageSources\SimObjects\Airplanes\Navigraph_Navigation_Data_Interface_Aircraft\panel
19 changes: 0 additions & 19 deletions scripts/build.sh

This file was deleted.

7 changes: 7 additions & 0 deletions scripts/build_workflow.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@echo off

cd %~dp0

mkdir ..\out

cargo-msfs build msfs2020 -i .. -o ..\out\msfs_navigation_data_interface.wasm

0 comments on commit 105680b

Please sign in to comment.