mirror of
https://github.com/wcbing/wcbing-apt-repo.git
synced 2025-12-28 18:18:31 +08:00
add sunloginclient
This commit is contained in:
parent
d9f459c28b
commit
d7da1cfac2
@ -38,6 +38,7 @@ echo "deb [signed-by=/etc/apt/keyrings/wcbing.gpg] https://packages.wcbing.top/d
|
|||||||
|uTools|utools|[官网](https://u.tools/download/)|
|
|uTools|utools|[官网](https://u.tools/download/)|
|
||||||
|360安全浏览器|browser360-cn-stable|[官网](https://browser.360.net/gc/)|
|
|360安全浏览器|browser360-cn-stable|[官网](https://browser.360.net/gc/)|
|
||||||
|滴答清单|dida|[官网](https://dida365.com/download)|
|
|滴答清单|dida|[官网](https://dida365.com/download)|
|
||||||
|
|向日葵|sunloginclient<br />提取自 Debian 12 的依赖:<br />gconf2-common<br />libgconf-2-4|[官网](https://sunlogin.oray.com/download/linux)|
|
||||||
|
|
||||||
### Github Releses
|
### Github Releses
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import requests
|
import subprocess
|
||||||
import os
|
import os
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
|
||||||
@ -8,11 +8,7 @@ def download(url, file_type):
|
|||||||
if not os.path.exists(file_dir):
|
if not os.path.exists(file_dir):
|
||||||
os.makedirs(file_dir)
|
os.makedirs(file_dir)
|
||||||
file_path = os.path.join(file_type, url.split("?")[0])
|
file_path = os.path.join(file_type, url.split("?")[0])
|
||||||
with requests.get(url, stream=True) as res:
|
subprocess.run(["curl", "-fsLo", file_path, url])
|
||||||
with open(file_path, "wb") as fw:
|
|
||||||
for chunk in res.iter_content(chunk_size=8192):
|
|
||||||
if chunk:
|
|
||||||
fw.write(chunk)
|
|
||||||
|
|
||||||
|
|
||||||
def check_download(name, version, url, arch, file_type):
|
def check_download(name, version, url, arch, file_type):
|
||||||
|
|||||||
8
get/sunlogin.py
Normal file
8
get/sunlogin.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import requests
|
||||||
|
from module.check import deb
|
||||||
|
|
||||||
|
req = requests.get("https://client-webapi.oray.com/softwares/SUNLOGIN_X_LINUX?x64=1")
|
||||||
|
version = req.json()["versionno"]
|
||||||
|
x64_url = req.json()["downloadurl"]
|
||||||
|
|
||||||
|
deb("sunloginclient", version, x64_url)
|
||||||
Loading…
x
Reference in New Issue
Block a user