您是否经常使用某些网站?在您的计算机上为他们提供本机应用程序确实可以使他们更易于访问。想象一下(Imagine),您不必转到浏览器然后查找打开您网站的选项卡。在这篇文章中,我们介绍了一个名为Nativefier的命令行工具,它可以让您为任何 Web 应用程序或网页创建本机应用程序。我们还介绍了您可以按照哪些步骤为您喜欢的任何网页创建本机应用程序。
Nativefier评论
Nativefier是开源的,用JavaScript 编写(JavaScript),使用Electron为Windows、Mac和Linux制作原生应用程序。Nativefier创建的应用程序可以保留一些配置和设置,为您提供更像应用程序的体验。要使用Nativefier,你需要在你的机器上安装Node.js。如果你还没有它,你可以在这里查看我们关于如何在Windows上安装(Windows)Node.js的文章。
如何创建原生应用程序
1.在所需目录中打开一个CMD窗口。(CMD)
2. 执行以下命令安装Nativefier。
npm install -g nativefier
3. 安装完成后,您可以执行以下命令为任何网页或 web-app 创建原生应用程序。
nativefier --name “Application Name” “http://applicationurl.com”
这应该创建一个名为Application Name的应用程序,其 URL 为http://applicationurl.com.现在您可以打开Nativefier创建的文件夹并找到您的应用程序的可执行文件。您可以创建此 exe 文件的快捷方式,以便您可以直接从开始菜单、任务栏或您选择的任何其他位置启动它。
闪存支持(Flash Support)
如果您选择的网站需要 Flash 支持,您可以通过在安装命令中添加 –flash 标签来轻松添加它。该命令将变为:
nativefier --name --flash “Application Name” “http://applicationurl.com”
要使用 Flash,需要使用Google Chrome,或者您需要手动安装PepperFlash Chrome 插件(PepperFlash Chrome Plugin)。
应用程序菜单(Application Menu)
由于这些应用程序只不过是一个包裹在您想要的URL周围的(URL)WebView。您可以执行一些可以在普通 Web 浏览器上完成的基本操作。为此,您可以通过按键盘上的“Alt”键访问应用程序菜单。现在使用这些菜单,您可以向前或向后导航或重新加载整个应用程序。
像大多数网络浏览器一样,您可以轻松地使用Ctrl+= 放大并使用Ctrl+-缩小。甚至还有一个切换全屏模式的选项。Nativefier生成的应用程序最好的部分是它们带有成熟的类似 Chrome 的开发人员工具。您可以访问控制台、网络和Chrome 开发者工具(Chrome Developer Tools)提供的所有其他功能。Ctrl+Shift+I来启用/禁用开发人员工具。
如前所述,应用程序可以保留一些最小配置,这可以通过转到应用程序菜单然后选择编辑(Edit )然后清除应用程序数据来清除。(Clear App Data.)这应该使用您可能维护的所有会话或登录完全重置应用程序。
可移植性(Portability)
使用Nativefier生成的所有应用程序都是可移植的。您可以轻松携带它们的所有配置。这样可以确保您的数据无处不在,并防止您一次又一次地登录。
Nativefier是您收藏中的绝佳工具。如果您经常使用任何网站,以至于您想拥有一个本机应用程序,那么您必须尝试使用 Nativefier(Nativefier)。生成的应用程序简单、快速且可靠。此外,在专用的本机窗口中使用您最喜欢的 Web 应用程序总体上也是一种很棒的体验。我已经使用Nativefier为大多数社交网络(Social Networks)、GitHub和各种其他 Web 应用程序创建原生应用程序。单击(Click) 此处(here)(here)了解有关 Nativefier 的更多信息。
Create native Windows application of any web page using Nativefier.
Do you use some websites very often? Having a native app for them on yoυr compυter can really make them more accessible. Imagine you do nоt have to go to your browser and then look fоr the tab that haѕ your website opened. In this post, we’ve covered a command linе tool called Nativefier that lets you create native applications for any web-app or webpage. We’ve also covered the steps that you can follow to create a native application for any of your favorite web pages.
Nativefier Review
Nativefier is open source and written in JavaScript and uses Electron to make native applications for Windows, Mac, and Linux. The applications created by Nativefier can preserve some configuration and settings to give you a more app-like experience. To use Nativefier you need to have Node.js installed on your machine. If you do not have it already, you can check out our article on how to install Node.js on Windows here.
How to create native applications
1. Open a CMD window in the desired directory.
2. Execute the following command to install Nativefier.
npm install -g nativefier
3. Once the installation is complete, you can execute the following command to create a native application for any webpage or web-app.
nativefier --name “Application Name” “http://applicationurl.com”
This should create an application named Application Name whose URL is http://applicationurl.com. Now you can open the folder created by Nativefier and locate the executable for your application. You can create shortcuts to this exe file so that you can directly launch it from the start menu, taskbar or any other place of your choice.
Flash Support
If your chosen website requires flash support, you can easily add it by adding a –flash tag in the installation command. The command would become:
nativefier --name --flash “Application Name” “http://applicationurl.com”
For flash to work, Google Chrome is required, or you need to install the PepperFlash Chrome Plugin manually.
Application Menu
Since these applications are nothing but a WebView wrapped around your desired URL. You can perform some basic operations that you could have done on a normal web browser. To do so, you can access the application menu by pressing ‘Alt’ key from your keyboard. Now using these menus, you can navigate forward or backward or reload the entire application.
Like most of the web-browsers, you can easily zoom in using Ctrl+= and zoom out using Ctrl+-. There is even an option to toggle full-screen mode. The best part about Nativefier generated applications is that they come with full-fledged Chrome-like developer tools. You get access to console, network and all other features that are offered Chrome Developer Tools. You can enable/disable developer tools by hitting Ctrl+Shift+I.
As mentioned the applications can preserve some minimal configuration, and this can be cleared by going to the application menu and then select Edit and then Clear App Data. This should completely reset the application with all the sessions or logins that you might have maintained.
Portability
All the applications generated using Nativefier are portable. You can easily carry them around with all their configuration. This makes sure you have your data everywhere and prevents you from logging again and again.
Nativefier is a great tool to have in your collection. If you use any website so frequently that you feel like having a native application for that, you must give Nativefier a try. The applications generated are simple, fast and reliable. Also using your favorite web apps in a dedicated native window is a great experience in total. I’ve used Nativefier to create native applications for most of the Social Networks, GitHub and various other web apps. Click here to know more about Nativefier.