DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

ref: c48f91ee4ef66fbecbcfd08a803a745b1f5c323b deck-builder/client/build.rs -rw-r--r-- 476 bytes
c48f91eeJonni Liljamo chore(client): fmt, clippy 1 year, 7 months ago
                                                                                
ea4c58c1 skye
ea4c58c1 skye
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use bevy_assets_bundler::*;

// build.rs
// encryption key: [u8; 16] array
// make sure the key is consistent between build.rs and main.rs
fn main() {
    let key = [
        25, 221, 123, 82, 182, 95, 251, 128, 83, 192, 172, 139, 92, 102, 34, 248,
    ];
    let mut options = AssetBundlingOptions::default();
    options.set_encryption_key(key);
    options.encode_file_names = true;
    options.enabled_on_debug_build = true;
    _ = AssetBundler::from(options).build();
}