[Share Experiences] appnativefy打包任意WEB应用成Appimage程序包
Tofloor
poster avatar
kernelry
deepin
2022-05-07 17:33
Author

以前在Windows系统下常用Teambition做计划任务、用语雀来记录文档,但最近将操作系统更换成UOS之后,这两款软件却没有Linux版本,星火商店的语雀也仅仅是WEB版,使用起来不流畅。偶然看到appnativefy,尝试打包Teambition和语雀成Appimage程序包,打包后的应用比浏览器要方便和流畅,再配合Appimage安装工具更加方便了。

发现论坛还没有人分享,特来分享一下。appnativefy的项目地址:appnativefy

安装appnativefy

sudo apt install nodejs npm wget
sudo npm install -g appnativefy

用法介绍

xxx@host:~/appnativefy$ appnativefy --help
/usr/local/lib/node_modules/appnativefy
Make executable AppImages from any Website URL

Usage: appnativefy [options]

选项:
  -h, --help               显示帮助信息                                   [布尔]
  -V, --version            显示版本号                                     [布尔]
  -n, --name                Input website name                      [必需]
  -u, --url                 Website url                              [必需]
      --internalurls        internal urls
      --appCopyright        Copyright information
      --appVersion          App version info
      --blockexternalurls  Block URLs that do not match internal URLs
      --saveAs             Show a 'Save as' dialog, while downloading items
      --favicon            Force use website favicon, as AppImage icon
      --widevine           Widevine support (for sites with DRM protected
                           content)
      --services           Google/Microsoft 365 sign-in support
      --noOverwrite        Specifies if destination directory should not be
                           overwritten
      --conceal            Conceals the source code within the AppImage into an
                           archive
      --counter            Use a counter that persists even with window focus
                           for the application badge
      --singleinstance     Single instance of application
      --disablegpu         Disable hardware acceleration

打包Appimage软件包

appnativefy --name "yuque" --url "https://www.yuque.com/login" --favicon
appnativefy --name "Teambition" --url "https://account.teambition.com/login" --favicon

打包好的应用会放到当前用户主目录的appnativefy文件夹中。

软件运行截图

1、语雀

image.png

2、Teambition

image.png

Reply Favorite View the author
All Replies
清汤白菜郭先生
deepin
2022-05-07 17:53
#1

顶一个!yeah

Reply View the author
神末shenmo
deepin
Spark-App
Q&A Team
2022-05-07 18:18
#2

这样打出来的不也是个网页吗confused

Reply View the author
kernelry
deepin
2022-05-07 18:33
#3
神末shenmo

这样打出来的不也是个网页吗confused

这两个本身就是WEB应用,打包后比浏览器使用方便些,感觉也流畅很多。

Reply View the author
sgb76
deepin
2022-05-08 02:02
#4
kernelry

这两个本身就是WEB应用,打包后比浏览器使用方便些,感觉也流畅很多。

星火商店的语雀有两个版本,一个是基于spark-webapp-runtime打包的WEB版(也是网页版打包,但是打包很简单,没那么复杂),另一个是基于deepin-wine6-stable打包的wine版,这个在配置不高的机器上运行确实要慢一些。

Reply View the author
ljq790615
deepin
2022-05-08 04:52
#5

终端执行 npm install -g appnativefy 报错,前面加上 sudo 就没问题了。

Reply View the author
Comments
kernelry
2022-05-08 06:55
谢谢补充
kernelry
deepin
2022-05-08 06:54
#6
sgb76

星火商店的语雀有两个版本,一个是基于spark-webapp-runtime打包的WEB版(也是网页版打包,但是打包很简单,没那么复杂),另一个是基于deepin-wine6-stable打包的wine版,这个在配置不高的机器上运行确实要慢一些。

用wine的版本也是很卡

sob

Reply View the author