mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-16 05:42:04 +08:00
修改: debian/changelog
修改: debian/control 修改: src/main.cpp 修改: src/widget.cpp 新文件: tool/btinst 修改: translations/spark-store_zh_CN.ts
This commit is contained in:
21
tool/btinst
Executable file
21
tool/btinst
Executable 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
|
||||
Reference in New Issue
Block a user