File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -255,17 +255,20 @@ impl eframe::App for App {
255255fn update ( message_tx : & mpsc:: Sender < Message > ) {
256256 let message_tx = message_tx. clone ( ) ;
257257
258+ let name = if cfg ! ( all( windows, feature = "pktmon" ) ) {
259+ "stardb-exporter-pktmon"
260+ } else if cfg ! ( all( windows, feature = "pcap" ) ) {
261+ "stardb-exporter-pcap"
262+ } else {
263+ "stardb-exporter"
264+ } ;
265+
258266 thread:: spawn ( move || {
259267 let status = self_update:: backends:: github:: Update :: configure ( )
260268 . repo_owner ( "juliuskreutz" )
261269 . repo_name ( "stardb-exporter" )
262- . bin_name ( if cfg ! ( all( windows, feature = "pktmon" ) ) {
263- "stardb-exporter-pktmon"
264- } else if cfg ! ( all( windows, feature = "pcap" ) ) {
265- "stardb-exporter-pcap"
266- } else {
267- "stardb-exporter"
268- } )
270+ . identifier ( name)
271+ . bin_name ( name)
269272 . current_version ( self_update:: cargo_crate_version!( ) )
270273 . no_confirm ( true )
271274 . build ( )
You can’t perform that action at this time.
0 commit comments