明月几时有的下一句是什么| 思伤脾是什么意思| 八哥鸟吃什么| 月经期间喝红糖水有什么好处| 反胃是什么原因引起的| dollars是什么意思| 看见蛇有什么预兆| 梦见火车脱轨什么预兆| 毛遂自荐什么意思| 脑动脉硬化吃什么药| 心脏病是什么症状| 深柜是什么意思| 咒语是什么意思| 打蛔虫吃什么药| 失独是什么意思| 漫威是什么意思| 接风吃什么| 宫内早孕什么意思| 飞是什么结构| 春节的习俗是什么| http是什么| 提前吃什么药喝酒不醉| 喝什么水对身体好| 脾虚湿气重吃什么中成药| 喝什么利尿效果最好| 为什么手指会发麻| 胆小如鼠的意思是什么| 脚为什么会脱皮| 中午吃什么不会胖| 静脉曲张有什么症状| 胃溃疡不能吃什么食物| 专车是什么意思| 掉头发是缺什么| bp是什么单位| 梦见两只狗是什么征兆| 梦见自己怀孕是什么意思| 老头晕是什么原因引起的| 小孩个子矮小吃什么促进生长发育| 糖尿病人吃什么好| yet什么意思| 胃反流吃什么药好| 发烧吃什么水果好| 丑时五行属什么| 为什么没有广东大学| 印第安人是什么人种| 青砖茶属于什么茶| 100岁是什么之年| adhd是什么病| 什么是工科| 湿气重吃什么调理| 口腔痛什么原因| 美团和美团外卖有什么区别| 什么是螨虫型痘痘图片| 智是什么意思| 晚上睡不着是什么原因引起的| 宬字五行属什么| 椰子水有什么好处| 物有所值是什么意思| 牙齿发炎吃什么药| 二尖瓣钙化是什么意思| 四肢麻木是什么原因引起的| 终身为国是什么生肖| 十二指肠球部溃疡吃什么药| 老人过生日送什么礼物好| 视力模糊用什么眼药水| 经期有血块是什么原因| 为什么会晕车| 六三年属什么生肖| 吃什么能软化血管| b超检查什么| 1969年是什么年| 海马有什么功效作用| 禄是什么意思| 苯磺酸氨氯地平片是什么药| 脂溢性脱发用什么药| 光动力治疗什么| 贵州有什么特产| 梦见摘桑葚是什么意思| 心季吃什么药| 毛囊炎是什么样子| 未成年喝酒有什么危害| 坐位体前屈是什么意思| 肠癌是什么原因造成的| 天生丽质难自弃是什么意思| ad滴剂什么牌子好| 感冒吃什么食物好| 空气是由什么组成的| 有什么症状| 过生日送什么礼物| 血糖高可以喝什么饮料| 董事长是什么职位| 苹果为什么叫苹果| 银子发黑是什么原因| bml什么意思| 什么是溶血性疾病| 什么头什么脑| 右肾盂分离是什么意思| 桃胶有什么功效| 尖锐湿疣吃什么药| 嗓子哑是什么病的前兆| olp是什么意思| 大腿痛挂什么科| 腰封是什么意思| 白内障什么症状| 解解乏是什么意思| 心静自然凉是什么意思| 卜卜脆是什么意思| 构树是什么树| 背包客是什么意思| 派特ct主要检查什么| 生酮是什么意思| 1月份是什么星座的人| 女性尿检能查出什么病| 人流前需要检查什么项目| 梦到迁坟是什么意思| 母是什么结构| 吃什么药能让月经马上来| 梦见两条大蟒蛇是什么征兆| 月经不来又没怀孕是什么原因| eb是什么意思| 什么饭不能吃| 女生心脏在什么位置| 申时是什么时间| 为什么会得阴道炎| 叛逆期是什么意思| 鲶鱼吃什么| 胃字出头念什么| 心跳加快是什么病| 金与什么相生相克| c肽是什么意思| 什么的眨眼| 炒房是什么意思| 淀粉是什么| 月经期体重增加是什么原因| 什么是朱砂痣| 红馆是什么地方| 米粉是什么做的| fc是什么| 1995是什么年| 两个土念什么字| 胸腔里面像岔气了的疼是什么原因| 梦见朋友离婚了是什么意思| 猫爪草有什么功效| 颈动脉斑块吃什么药| 高光是什么意思| 为什么会有颈纹| mcm是什么牌子| 囊性灶什么意思严重吗| 绍兴本地人喝什么黄酒| 农历7月25日是什么星座| 什么的鸟窝| 眼神迷离是什么意思| 客车是什么车| 屈原姓什么| 哈森鞋子属于什么档次| 强光斑是什么意思| 子宫偏小有什么影响| 锦纶是什么材料| 脑委缩吃什么药能空制| 犀利的眼神是什么意思| 褒义是什么意思| 但求无愧于心上句是什么| 田螺不能和什么一起吃| 湛蓝是什么颜色| 卡路里是什么| 黄加红是什么颜色| 流浓黄鼻涕是什么原因| 脸上长红色的痘痘是什么原因| 舌尖起泡是什么原因| 感冒了挂什么科| 黄芪有什么好处| 7月7日是什么日子| 吃什么饭| 手术后喝什么鱼汤最好| 声带白斑是什么病| 潸然泪下是什么意思| 姨妈少是什么原因怎么办| 什么叫理疗| 盐和小苏打一起有什么作用| 正方形纸能折什么| cg动画是什么意思| 4月22日什么星座| bl是什么意思| 什么样的人招蚊子| 肠道紊乱有什么症状| 吃什么去湿气最快| 意思是什么意思| 高铁与动车的区别是什么| 鼻子流黄水是什么原因| 耳朵轮廓痒是什么原因| 切记是什么意思| 小孩眼屎多是什么原因引起的| 送枕头代表什么意思| 什么天什么什么| jeep是什么意思| poscer是什么牌子| 每天坚持做俯卧撑有什么好处| 宝宝喝什么奶粉好| kiv是什么车| 什么叫无产阶级| 肾炎是什么病| aqi是什么意思| 厄运是什么意思| 体寒的人吃什么食物好| 肋骨中间是什么器官| 白萝卜不能和什么一起吃| 福建有什么特产| 什么时候闰三月| 爱奇艺积分有什么用| 耵聍是什么| 绝经三年了突然又出血了什么原因| 为什么会流黄鼻涕| 唐僧取经取的是什么经| dic是什么意思| 二月十九是什么星座| 一个月小猫吃什么| 肾宝片有什么副作用吗| 贝兄念什么| ecc是检查什么的| 胬肉是什么| 女人梦到被蛇咬是什么意思| 土生金是什么意思| 清宫是什么意思| 泸州老窖什么档次| 复合维生素b片主治什么病| cyan是什么颜色| 胆巴是什么| 氮肥是什么肥| 梦到别人怀孕了是什么意思| 缺铁性贫血吃什么药最好| 低压低吃什么药| 还人是什么意思| 老花眼是什么原因引起的| 369是什么意思| 十指纤纤尽夸巧是什么生肖| 谢邀什么意思| 女生私密部位长什么样| 四九城是什么意思| 什么是甲状腺结节病| 开指是什么意思| 检验葡萄糖用什么试剂| 再接再厉什么意思| lo什么意思| 百思不得其解是什么意思| 什么叫外阴白斑| 十指不沾阳春水是什么意思| 胃不舒服吃什么水果| 临界心电图是什么意思| 高血压中医叫什么病| 股藓要用什么药膏效果最好| 八月十六号是什么星座| gu是什么品牌| 考试前不能吃什么| 肾阳虚有什么症状男性| 腹泻吃什么药最好| 月经期间可以喝什么汤比较好| 吃丹参有什么好处| 11月18日是什么星座| 走马观花的走什么意思| 手痒脚痒是什么原因| 斛什么意思| 为什么游戏| 柴鱼是什么鱼| 查脂肪肝做什么检查| 百度
Skip to main content

堪比卡特死亡之扣!国外强人隔人劈扣扣碎篮板

百度   据悉,2018北京电视节目交易会(春季)将于3月25日至28日在北京会议中心举办。

Enable apps to automatically update themselves.

Process: Main

See also: A detailed guide about how to implement updates in your application.

autoUpdater is an EventEmitter.

Platform Notices?

Currently, only macOS and Windows are supported. There is no built-in support for auto-updater on Linux, so it is recommended to use the distribution's package manager to update your app.

In addition, there are some subtle differences on each platform:

macOS?

On macOS, the autoUpdater module is built upon Squirrel.Mac, meaning you don't need any special setup to make it work. For server-side requirements, you can read Server Support. Note that App Transport Security (ATS) applies to all requests made as part of the update process. Apps that need to disable ATS can add the NSAllowsArbitraryLoads key to their app's plist.

info

Your application must be signed for automatic updates on macOS. This is a requirement of Squirrel.Mac.

Windows?

On Windows, you have to install your app into a user's machine before you can use the autoUpdater, so it is recommended that you use electron-winstaller or Electron Forge's Squirrel.Windows maker to generate a Windows installer.

Apps built with Squirrel.Windows will trigger custom launch events that must be handled by your Electron application to ensure proper setup and teardown.

Squirrel.Windows apps will launch with the --squirrel-firstrun argument immediately after installation. During this time, Squirrel.Windows will obtain a file lock on your app, and autoUpdater requests will fail until the lock is released. In practice, this means that you won't be able to check for updates on first launch for the first few seconds. You can work around this by not checking for updates when process.argv contains the --squirrel-firstrun flag or by setting a 10-second timeout on your update checks (see electron/electron#7155 for more information).

The installer generated with Squirrel.Windows will create a shortcut icon with an Application User Model ID in the format of com.squirrel.PACKAGE_ID.YOUR_EXE_WITHOUT_DOT_EXE, examples are com.squirrel.slack.Slack and com.squirrel.code.Code. You have to use the same ID for your app with app.setAppUserModelId API, otherwise Windows will not be able to pin your app properly in task bar.

Events?

The autoUpdater object emits the following events:

Event: 'error'?

Returns:

  • error Error

Emitted when there is an error while updating.

Event: 'checking-for-update'?

Emitted when checking for an available update has started.

Event: 'update-available'?

Emitted when there is an available update. The update is downloaded automatically.

Event: 'update-not-available'?

Emitted when there is no available update.

Event: 'update-downloaded'?

Returns:

  • event Event
  • releaseNotes string
  • releaseName string
  • releaseDate Date
  • updateURL string

Emitted when an update has been downloaded.

On Windows only releaseName is available.

note

It is not strictly necessary to handle this event. A successfully downloaded update will still be applied the next time the application starts.

Event: 'before-quit-for-update'?

This event is emitted after a user calls quitAndInstall().

When this API is called, the before-quit event is not emitted before all windows are closed. As a result you should listen to this event if you wish to perform actions before the windows are closed while a process is quitting, as well as listening to before-quit.

Methods?

The autoUpdater object has the following methods:

autoUpdater.setFeedURL(options)?

  • options Object
    • url string
    • headers Record<string, string> (optional) macOS - HTTP request headers.
    • serverType string (optional) macOS - Can be json or default, see the Squirrel.Mac README for more information.

Sets the url and initialize the auto updater.

autoUpdater.getFeedURL()?

Returns string - The current update feed URL.

autoUpdater.checkForUpdates()?

Asks the server whether there is an update. You must call setFeedURL before using this API.

note

If an update is available it will be downloaded automatically. Calling autoUpdater.checkForUpdates() twice will download the update two times.

autoUpdater.quitAndInstall()?

Restarts the app and installs the update after it has been downloaded. It should only be called after update-downloaded has been emitted.

Under the hood calling autoUpdater.quitAndInstall() will close all application windows first, and automatically call app.quit() after all windows have been closed.

note

It is not strictly necessary to call this function to apply an update, as a successfully downloaded update will always be applied the next time the application starts.

百度