[Share Experiences] appnativefy 离线包 这个可以避免下载 electron 巨慢的问题
Tofloor
poster avatar
酷谷的谷子
deepin
2022-05-08 05:40
Author

看到 这个 帖子 https://bbs.deepin.org/post/236453

顺便也尝试了一下 要是 打包 网站 一个链接点一下就会跳出一个新窗口 这点不是很爽 其他还可以。

顺便写来一个 appnativefy 执行脚本 appnativefy-zenity-GUI-Shell.zip

需要安装 sudo apt install deepin-wine-helpe 或者 sudo apt install zenity

链接: https://pan.baidu.com/s/19MxNJnaj4W0r15dQqEd1KA 密码: n0vp

image.png

 #!/bin/bash

MY_title="appnativefy - zenity - GUI - Shell "
NEW_NEME=""
ANME_URL=""
MY_NAME=$(zenity --entry --width=520 --title="$MY_title[输入打包名称 不能有符号和中文]" --text="$NEW_NEME") || exit
MY_URL=$(zenity --entry --width=520 --title="$MY_title[输入名网址]" --text="$ANME_URL") || exit

Processing=$(appnativefy --name "$MY_NAME" --url "$MY_URL" --services --widevine --favicon | zenity --progress \
--width=520 \
--pulsate --title "正在执行 appnativefy 命令 ......" \
--text "正在生成${MY_NAME}-x86_64.AppImage" \
--pulsate --auto-close --auto-kill) || exit

dengdeng='============================================================='
for i in {1==1};do
  if [ ! -f "$HOME/appnativefy/${MY_NAME}-x86_64.AppImage" ]
  then
  $Processing && rm -rf $HOME/appnativefy/*-linux-x64 ; zenity --info --width=520 --title="$MY_title" --text="$dengdeng\n已经取消了\n$dengdeng" 
  else
  zenity --info --width=520 --title="$MY_title" --text="$dengdeng\n已经打包好了 ${MY_NAME}-x86_64.AppImage\n$dengdeng" 
  fi
done

exit 0
Reply Favorite View the author
All Replies
ljq790615
deepin
2022-05-09 03:10
#1

先赞一个

Reply View the author
ljq790615
deepin
2022-05-09 04:23
#2

发现打包出来的APP,一个链接点一下就会跳出一个新窗口,尤其还需要重新登陆。

Reply View the author
酷谷的谷子
deepin
2022-05-09 04:43
#3
ljq790615

发现打包出来的APP,一个链接点一下就会跳出一个新窗口,尤其还需要重新登陆。

这个不清楚我的也是,参数里也没有相关的设置。

Reply View the author
ljq790615
deepin
2022-05-10 01:13
#4

不过对于不需要登录的网站,打个包挺好用的。每个大小73MB+

Reply View the author