File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 48
48
with :
49
49
use-cross : true
50
50
command : build
51
- args : --verbose --release --target ${{ matrix.target }}
51
+ args : --verbose --release --target ${{ matrix.target }} --features dist
52
52
53
53
- name : Build archive
54
54
shell : bash
Original file line number Diff line number Diff line change @@ -39,4 +39,7 @@ wasm-bindgen-futures = "0.4"
39
39
web-sys = { version = " 0.3.70" , features = [" console" ], default-features = false }
40
40
41
41
[profile .release ]
42
- opt-level = 2
42
+ opt-level = 2
43
+
44
+ [features ]
45
+ dist = []
Original file line number Diff line number Diff line change
1
+ #![ cfg_attr( all( target_os = "windows" , feature = "dist" ) , windows_subsystem = "windows" ) ]
2
+
1
3
extern crate core;
2
4
3
5
mod array_table;
@@ -483,6 +485,7 @@ impl<'array> eframe::App for MyApp<'array> {
483
485
if self . unsaved_changes { " *" } else { "" }
484
486
) ;
485
487
488
+ #[ cfg( not( feature = "dist" ) ) ]
486
489
if self . show_fps {
487
490
self . frame_history
488
491
. on_new_frame ( ctx. input ( |i| i. time ) , frame. info ( ) . cpu_usage ) ;
You can’t perform that action at this time.
0 commit comments