Skip to content

Commit bc4b276

Browse files
authored
Ignore meta files check using AssetMetaCheck (#49)
* fix: Ignore meta files check using `AssetMetaCheck` Fixes #48. * chore: Bump to Bevy 0.12
1 parent c174e77 commit bc4b276

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ opt-level = 1
1616
opt-level = 3
1717

1818
[dependencies]
19-
bevy = "0.11"
19+
bevy = "0.12"

src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@
44
// Feel free to delete this line.
55
#![allow(clippy::too_many_arguments, clippy::type_complexity)]
66

7+
use bevy::asset::AssetMetaCheck;
78
use bevy::prelude::*;
89

910
fn main() {
1011
App::new()
12+
// Wasm builds will check for meta files (that don't exist) if this isn't set.
13+
// This causes errors and even panics on web build on itch.
14+
// See https://github.com/bevyengine/bevy_github_ci_template/issues/48.
15+
.insert_resource(AssetMetaCheck::Never)
1116
.add_plugins(DefaultPlugins)
1217
.add_systems(Startup, setup)
1318
.run();

0 commit comments

Comments
 (0)