如何自动升级Firebreath插件 [英] How to automatically upgrade a Firebreath plugin

查看:116
本文介绍了如何自动升级Firebreath插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我使用Firebreath编写了一个跨浏览器插件,并且为所有浏览器制作了一个安装程序.我在stackoverflow中搜索了自动插件安装,并找到了很多不错的答案,

Recently, I wrote a cross-browser plugin using Firebreath, and I made one installer for all browsers. I searched in stackoverflow for automatic plugin installation, and find a bunch of good answers,

FireBreath插件自动安装

在没有手册的情况下在网页上部署Firebreath插件安装

插件安装

以最少的用户步骤部署NPAPI插件

所有答案都指出,需要用户互动才能下载和安装插件.

All answers points out that it needs users’ interaction to download and install the plugin.

我的问题是插件升级是否遵循首次安装的相同过程,即允许用户下载最新的安装程序并手动重新安装?还有其他选项可以使插件更自动升级(减少用户交互)吗?

我也搜索了这个答案,但它并没有说明自动升级插件的方式.

I also searched this answer a little bit relevant, but it doesn’t tell the way to upgrade a plugin automatically.

更新后的firebreath插件刷新

还是我应该问一下升级firebreath插件的最佳实践是什么?

Or I should ask what is the best practice to upgrade firebreath plugin?

推荐答案

基本上,您的问题没有很好的答案.我有适用于所有浏览器的就地更新(在不重新启动的情况下在浏览器中进行更新),但是它充满了困难且极其脆弱.我真的不推荐.

Basically there is no good answer to your question, unfortunately. I have had in-place updates working for all browsers (updating in the browser without a restart), but it's fraught with difficulty and extremely fragile. I don't really recommend it.

我所见过的最干净的更新体验可能是使用 Google奥马哈在后台安装和自动更新.奥马哈最大的弊端在于它是设置和工作的野兽.即使只是构建它也需要大量工作,然后您必须自定义许多常量等.

Probably the cleanest update experience I've seen is by using Google Omaha to do the install and automatic updates in the background. The biggest downside to Omaha is that it's a beast to get set up and working; even just building it requires a lot of work, and then you have to customize a lot of constants and such.

我的操作方式只是要求用户下载并安装更新(MSI或带有Applescript的.DMG,具体取决于平台),然后告诉他们必须重新启动浏览器才能获取新的更新.版本.它不干净,但是可以大大降低支持要求.

The way I do it is just require that the user download and install an update (MSI or .DMG w/ applescript, depending on the platform) and then just tell them they'll have to restart their browser to get the new version. It's not clean, but it drastically reduces the support requirements.

这篇关于如何自动升级Firebreath插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆