add sublime (offical repo)

This commit is contained in:
wcbing 2024-09-05 14:47:44 +08:00
parent f8b93ab35c
commit 4cf0b09d1f
3 changed files with 52 additions and 33 deletions

View File

@ -23,28 +23,28 @@ echo "deb [signed-by=/etc/apt/keyrings/wcbing.gpg] https://packages.wcbing.top/d
可在 [这里](https://packages.wcbing.top/deb/status.txt) 查看具体版本。
|软件名|包名|渠道|
|-|-|-|
|QQ|linuxqq|[官网](https://im.qq.com/linuxqq/)|
|QQ音乐|qqmusic|[官网](https://y.qq.com/download/download.html)|
|腾讯会议|wemeet|[官网](https://meeting.tencent.com/download/)|
|Clash Verge Rev|clash-verge|[Github Releses](https://github.com/clash-verge-rev/clash-verge-rev/releases)|
|FlClash|flclash|[Github Releses](https://github.com/chen08209/FlClash/releases)|
|mihomo|mihomo|[Github Releases](https://github.com/MetaCubeX/mihomo/releases)|
|hugo|hugo|[Github Releases](https://github.com/gohugoio/hugo/releases)|
|RustDesk|rustdesk|[Github Releases](https://github.com/rustdesk/rustdesk/releases)|
|Visual Studio Code|code|[官网](https://code.visualstudio.com)|
|Microsoft Edge|microsoft-edge-stable|[官网](https://www.microsoft.com/en-us/edge/download)|
|Google Chrome|google-chrome-stable<br />google-chrome-beta<br />google-chrome-unstable|官方仓库|
|Obsidian|obsidian|[Github Releases](https://github.com/obsidianmd/obsidian-releases/releases)|
|WPS Office|wps-office|[官网](https://linux.wps.cn/)|
|百度网盘|baidunetdisk|[官网](https://pan.baidu.com/download)|
|钉钉|com.alibabainc.dingtalk|[官网](https://www.dingtalk.com/download/)|
|飞书|bytedance-feishu-stable|[官网](https://www.feishu.cn/download)|
|termius|termius-app<br />termius-beta|官方仓库|
|Sublime Text|sublime-text|[官网](https://www.sublimetext.com/download)|
|Xmind|xmind-vana|[官网](https://xmind.cn/download/)|
|Mozilla Firefox|firefox<br />firefox_beta<br />firefox_devedition<br />firefox_esr<br />firefox_nightly<br />|官方仓库|
|软件名|包名|渠道|架构|
|-|-|-|-|
|QQ|linuxqq|[官网](https://im.qq.com/linuxqq/)|x86_64|
|QQ音乐|qqmusic|[官网](https://y.qq.com/download/download.html)|x86_64|
|腾讯会议|wemeet|[官网](https://meeting.tencent.com/download/)|x86_64|
|Clash Verge Rev|clash-verge|[Github Releses](https://github.com/clash-verge-rev/clash-verge-rev/releases)|x86_64|
|FlClash|flclash|[Github Releses](https://github.com/chen08209/FlClash/releases)|x86_64|
|mihomo|mihomo|[Github Releases](https://github.com/MetaCubeX/mihomo/releases)|x86_64|
|hugo|hugo|[Github Releases](https://github.com/gohugoio/hugo/releases)|x86_64|
|RustDesk|rustdesk|[Github Releases](https://github.com/rustdesk/rustdesk/releases)|x86_64|
|Visual Studio Code|code|[官网](https://code.visualstudio.com)|x86_64|
|Microsoft Edge|microsoft-edge-stable|[官网](https://www.microsoft.com/en-us/edge/download)|x86_64|
|Google Chrome|google-chrome-stable<br />google-chrome-beta<br />google-chrome-unstable|官方仓库|x86_64|
|Obsidian|obsidian|[Github Releases](https://github.com/obsidianmd/obsidian-releases/releases)|x86_64|
|WPS Office|wps-office|[官网](https://linux.wps.cn/)|x86_64|
|百度网盘|baidunetdisk|[官网](https://pan.baidu.com/download)|x86_64|
|钉钉|com.alibabainc.dingtalk|[官网](https://www.dingtalk.com/download/)|x86_64|
|飞书|bytedance-feishu-stable|[官网](https://www.feishu.cn/download)|x86_64|
|termius|termius-app<br />termius-beta|官方仓库|x86_64|
|Sublime Text<br />Sublime Merge|sublime-text<br />sublime-merge|官方仓库|x86_64, arm64|
|Xmind|xmind-vana|[官网](https://xmind.cn/download/)|x86_64|
|Mozilla Firefox|firefox<br />firefox_beta<br />firefox_devedition<br />firefox_esr<br />firefox_nightly<br />|官方仓库|x86_64|
## 自行建立仓库

View File

@ -1,11 +0,0 @@
import requests
import re
from module.check import deb
req = requests.get("https://www.sublimetext.com/download_thanks?target=x64-deb")
x64_deb_url = re.findall('url = "(.*amd64.deb)"', req.text)[0]
# https://download.sublimetext.com/sublime-text_build-4180_amd64.deb
version = x64_deb_url.split("-")[-1].split("_")[0]
deb("sublime-text", version, x64_deb_url)

30
merge_latest/sublime.py Normal file
View File

@ -0,0 +1,30 @@
import requests
import re
from module.merge_deb import merge_latest_deb
deb_repo = "https://download.sublimetext.com/"
deb_Packages_url = deb_repo + "apt/stable/Packages"
deb_Packages = requests.get(deb_Packages_url).text
debs = re.split("(?=Package: )", deb_Packages)[1:]
# print(debs)
# sublime 的 Packages 按照版本升序排列,倒数两个为 amd64 和 arm64 最新版本
sublime_text_debs = []
sublime_merge_debs = []
for deb in debs:
if "Package: sublime-text\n" in deb:
sublime_text_debs.append(deb)
elif "Package: sublime-merge\n" in deb:
sublime_merge_debs.append(deb)
deb_latest = (
sublime_text_debs[-2]
+ sublime_text_debs[-1]
+ sublime_merge_debs[-2]
+ sublime_merge_debs[-1]
)
merge_latest_deb("sublime", deb_repo, deb_latest)