Skip to content

Commit acab867

Browse files
committed
try fix linux/wasm build
1 parent 645467b commit acab867

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v6
1616
- uses: extractions/setup-just@v3
1717
- name: Install wayland
18-
run: sudo apt install -y libwayland-dev
18+
run: sudo apt install -y libwayland-dev libudev-dev libasound2-dev pkg-config
1919
- name: Temporarily modify the rust toolchain version
2020
run: rustup override set nightly
2121
- name: Install nightly components
@@ -35,7 +35,7 @@ jobs:
3535
- uses: actions/checkout@v6
3636
- uses: extractions/setup-just@v3
3737
- name: Install wayland
38-
run: sudo apt install -y libwayland-dev
38+
run: sudo apt install -y libwayland-dev libudev-dev libasound2-dev pkg-config
3939
- name: Temporarily modify the rust toolchain version
4040
run: rustup override set nightly
4141
- name: Install nightly components

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ wasm = ["getrandom/wasm_js", "dep:wasm-bindgen", "dep:console_error_panic_hook"]
3030

3131
[lib]
3232
crate-type = ["cdylib", "rlib"]
33+
name = "noiter_lib"
3334

3435
[dependencies]
3536
bevy = {version = "0.19.0", default-features = false, features = ["2d", "ui", "bevy_settings"]}

Justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ wasm:
2323
cd www && wasm-pack build --no-opt --out-dir www/pkg --target web --debug --features "wasm"
2424
wasm_rel:
2525
cd www && wasm-pack build --no-opt --out-dir www/pkg --target web --release --features "wasm"
26-
cd www && wasm-opt -O4 -all -o pkg/ucalc_bg.wasm pkg/ucalc_bg.wasm
26+
cd www && wasm-opt -O4 -all -o pkg/noiter_bg.wasm pkg/noiter_bg.wasm
2727
wasm_full:
2828
cd www && wasm-pack build --no-opt --out-dir www/pkg --target web --profile release_lto --features "wasm"
29-
cd www && wasm-opt -O4 -all -o pkg/ucalc_bg.wasm pkg/ucalc_bg.wasm
29+
cd www && wasm-opt -O4 -all -o pkg/noiter_bg.wasm pkg/noiter_bg.wasm
3030
run_wasm:
3131
cd www && python3 -m http.server 8080
3232
update:

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![windows_subsystem = "windows"]
22
use bevy::app::AppExit;
33
fn main() -> AppExit {
4-
noiter::app::app_run()
4+
noiter_lib::app::app_run()
55
}

0 commit comments

Comments
 (0)