自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Linux奇技淫巧:把任何網(wǎng)站變成單個(gè)可執(zhí)行的Appimage

系統(tǒng) Linux
Appnativefy是一個(gè)簡(jiǎn)單的命令行工具,可以從任何網(wǎng)站生成可執(zhí)行的AppImage文件,它在后端使用Nativefier API,并帶有AppImageKIt。

 要將Web應(yīng)用創(chuàng)建為便攜式的Appimage包格式嗎?Appnativefy就是能幫你實(shí)現(xiàn)這樣功能的一個(gè)簡(jiǎn)單工具。

Appnativefy是一個(gè)簡(jiǎn)單的命令行工具,可以從任何網(wǎng)站生成可執(zhí)行的AppImage文件,它在后端使用Nativefier API,并帶有AppImageKIt。

Appimage是一種通用的Linux包格式。與其他軟件包不同,您不需要安裝它。只需使其可執(zhí)行,并運(yùn)行啟動(dòng)程序!

如何使用Appnativefy:

使用Appnativefy,您可以運(yùn)行一個(gè)簡(jiǎn)單的命令將網(wǎng)站轉(zhuǎn)換為單個(gè)可執(zhí)行的Appimage:

appnativefy --name "TYPE_PACKAGE_NAME" --url "URL_ADDRESS"

例如,您可以通過(guò)以下命令將www.linuxmi.com變成appimage: 

  1. linuxmi@linuxmi:~/www.linuxmi.com$ appnativefy --name "LinuxMi" --url "https://www.linuxmi.com" --favicon 

您可以在命令末尾添加更多標(biāo)志以啟用更多選項(xiàng),例如:

  •  --services允許使用Microsoft 365和Google之類(lèi)的服務(wù)登錄。
  •  --favicon強(qiáng)制在制作AppImage時(shí)使用網(wǎng)站的圖標(biāo)。
  •  --widevine添加了Widevine支持以啟用播放啟用DRM的內(nèi)容。
  •  有關(guān)更多信息,請(qǐng)運(yùn)行appnativefy -h

例如,運(yùn)行以下命令將為Spotify創(chuàng)建具有Widevine支持,啟用登錄服務(wù)并使用favicon的應(yīng)用程序映像。 

  1. linuxmi@linuxmi:~/www.linuxmi.com$ appnativefy --name "Spotify" --url "https://open.spotify.com" --services --widevine --favicon 

該應(yīng)用程序?qū)⒃谟脩?hù)主目錄中創(chuàng)建一個(gè)appnativefy文件夾,其中包含所有生成的Appimage包。

如何安裝Appnativefy:

該軟件以NPM軟件包的形式提供。要安裝它,首先打開(kāi)終端并運(yùn)行命令以安裝依賴(lài)項(xiàng): 

  1. linuxmi@linuxmi:~/www.linuxmi.com$ sudo apt install nodejs npm wget 

然后通過(guò)npm命令安裝該工具: 

  1. linuxmi@linuxmi:~/www.linuxmi.com$ sudo npm install -g appnativefy 

輸出如下: 

  1. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142  
  2. npm WARN deprecated har-validator@5.1.5: this library is no longer supported  
  3. /usr/local/bin/appnativefy -> /usr/local/lib/node_modules/appnativefy/appnativefy.js  
  4. > core-js@3.9.0 postinstall /usr/local/lib/node_modules/appnativefy/node_modules/core-js  
  5. > node -e "try{require('./postinstall')}catch(e){}" 

如何刪除Appnativefy:

要?jiǎng)h除命令行工具,只需運(yùn)行命令: 

  1. linuxmi@linuxmi:~/www.linuxmi.com$ sudo npm uninstall -g appnativefy 

如果您不使用nodejs和npm,請(qǐng)刪除它們以釋放幾十MB的磁盤(pán)空間: 

  1. linuxmi@linuxmi:~/www.linuxmi.com$ sudo apt purge --auto-remove nodejs npm  

 

責(zé)任編輯:龐桂玉 來(lái)源: Linux公社
相關(guān)推薦

2022-09-30 12:55:14

Linux筆記

2022-01-07 14:50:46

VS CodeLinux代碼

2017-08-18 13:30:01

前端CSS布局奇技

2020-05-20 19:38:11

前端js調(diào)試工具

2021-04-12 06:09:38

Spring擴(kuò)展點(diǎn)應(yīng)用

2023-06-26 08:05:36

2022-04-21 15:00:53

LinuxShell

2020-11-26 11:45:31

Python繪圖代碼

2017-10-24 13:42:55

流氓App安卓Google

2021-03-30 07:47:46

SVG 濾鏡 CSS技巧

2021-06-07 12:20:14

LinuxASCII命令

2021-05-18 13:05:31

LinuxRust復(fù)用器

2021-05-07 13:56:13

Linux器監(jiān)視服務(wù)器

2023-09-19 08:03:50

rebase?merge

2022-04-24 16:00:15

LinuxLinux命令ls命令

2021-05-31 11:45:37

LinuxRustShell

2015-04-13 13:21:45

JavaScript JavaScript

2019-04-25 13:10:04

Java 8Stream API編程語(yǔ)言

2024-11-28 09:21:00

Python字符串代碼

2020-11-27 10:33:11

Linuxcpmv命令
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)