File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ yarn tauri dev
4444
4545- [ GitHub Discussions - Tauri 系列] ( https://github.com/lencx/OhMyBox/discussions?discussions_q=label%3A%22Tauri+%E7%B3%BB%E5%88%97%22 )
4646- [ 知乎专栏 - Tauri 系列] ( https://www.zhihu.com/column/c_1519079232848785408 )
47+ - [ 公众号 - Tauri 系列(免费篇 + 付费篇)] ( https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzIzNjE2NTI3NQ==&action=getalbum&album_id=2593843659863752704&from_itemidx=1&from_msgid=2247485485#wechat_redirect ) - ` 探索 Tauri 更多的能力 ` 。免费篇和知乎专栏,GitHub Discussions 是同步更新的。付费内容比较小众,会阅读一点点 Tauri 源码,主要是针对性的解决一些问题,不定期更新。原创不易,有能力的朋友可以支持一下,感恩。
4748
4849## 赞助
4950
Original file line number Diff line number Diff line change @@ -7,12 +7,19 @@ mod omb;
77
88fn main ( ) {
99 let context = tauri:: generate_context!( ) ;
10- tauri:: Builder :: default ( )
10+ let app = tauri:: Builder :: default ( )
1111 . setup ( omb:: setup:: init)
1212 . plugin ( omb:: fs:: FsExtra :: default ( ) )
1313 . menu ( tauri:: Menu :: os_default ( & context. package_info ( ) . name ) )
1414 . system_tray ( omb:: tray:: menu ( ) )
1515 . on_system_tray_event ( omb:: tray:: handler)
16- . run ( context)
16+ . build ( context)
1717 . expect ( "error while running OhMyBox application" ) ;
18+
19+ app. run ( |_app_handle, event| match event {
20+ tauri:: RunEvent :: Updater ( updater_event) => {
21+ dbg ! ( updater_event) ;
22+ }
23+ _ => { }
24+ } )
1825}
You can’t perform that action at this time.
0 commit comments