将网页变为APP

install the tools

1
yay -S nodejs-nativefier

use the tools

1
nativefier --icon [path] --name [name] [the url]
1
nativefier --icon "/home/mika/Pictures/imgurl.png" --name "imgurl" "https://www.imgurl.org/"

将会生成如下所示的文件夹,其中的同名文件将可以被执行
product

编写.desktop文件

1
2
3
4
5
6
7
8
9
[Desktop Entry]
Type=Application
Name=imgurl
GenericName=imgurl
Comment=upload the Pictures
Exec="/home/mika/note/justnote/imgurl-linux-x64/imgurl" %f
Icon=/home/mika/Pictures/imgurl.png
Terminal=true
Categories=X-Application;

效果如下
desktop app