修改: debian/changelog

修改:     debian/control
	修改:     src/main.cpp
	修改:     src/widget.cpp
	新文件:   tool/btinst
	修改:     translations/spark-store_zh_CN.ts
This commit is contained in:
2022-04-03 17:44:39 +08:00
parent 44d1041087
commit 5b55646789
6 changed files with 65 additions and 54 deletions

21
tool/btinst Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
# 第一个参数固定是bittorrent下载链接或者magnet
# 第二个参数就是文件名
export DISPLAY=:0
export XAUTHORITY=/home/shenmo/.Xauthority
if [ -x /tmp/spark-store/$2 ];then
rm /tmp/spark-store/$2
echo "检测到之前下载了软件包,未避免不能覆盖,先删除"
fi
mkdir -p /tmp/spark-store
cd /tmp/spark-store
echo "开始下载软件包"
aria2c "$1"
echo "安装"
pkexec ssinstall "/tmp/spark-store/$2"
echo 安装结束,按回车关闭窗口
read
exit 0