# LTCTM的软件推荐站v3 **Repository Path**: ltctm/software-nav3 ## Basic Information - **Project Name**: LTCTM的软件推荐站v3 - **Description**: 软件商店 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-03 - **Last Updated**: 2025-09-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 用途 本程序的frontend用于部署在想要发布软件导航站的静态页面的服务器(windows或linux均可) # frontend 基于[daisyUI](https://daisyui.com/) (tailwind.css)+vite(vue3)开发 # localend ## 程序目录下新建config.toml ```toml pull_interval = 30 pull_timeout = 3.0 [github_download] # url_mode可以是'replace'或者'concat' # 'replace'模式参考:https://github.com/xixu-me/Xget # 在base_url为'https://example1.com/gh'的情况下 # replace形如:https://example1.com/gh/{author}/{prject}/releases # 'concat'模式参考:https://github.com/hunshcn/gh-proxy # 在base_url为'https://example2.com'的情况下 # concat形如:https://example2.com/https://github.com/{author}/{prject}/releases url_mode = "replace" host = "https://mirror.ltctm.net/gh" #所有url的最后不能有"/" [github] base_url = "https://api.github.com" token = "your token" [gitee] base_url = "https://gitee.com/api/v5" token = "your token" ``` 强烈推荐将`GITHUB_API_TOKEN`和`GITEE_API_TOKEN`设置在环境变量。配置环境变量后,config里就不需要再配置。 ## 程序目录下新建manual_data.xlsx 示例数据见本程序中的`software.csv`(编码为`utf-8-sig`,即`UTF-8 with BOM`),可以手动粘贴到`manual_data.xlsx`的`software`页面 github和gitee的`sharePassword`字段用来在Release的多个Asset里匹配目标文件,`{}`表示该位置必须有字,`{ver}`匹配`数字.数字`或者`数字.数字.数字`,`{ver_even}`表示版本号的第一个数字为偶数,`{ver_odd}`表示版本号的第一个数字为奇数,`{num}`表示不用作版本号的其他数字,`<>`、``、``、``、``表示需要存在,但是不是版本号的一部分的字符 程序会以`HEAD`请求的方式以及`GET Headers={Range:Bytes=0-content_length}`获取直链下载的文件的大小(github和gitee的直链除外),更新日期为进行请求的日期,表明当天该直链有效。 ## 启动 ``` python -m main ``` ## 调试 在根目录新建`DEBUG`文件即可调试 # 镜像站说明 ## github - [ltctm](https://mirror-gh.ltctm.net) ## greasyfork - [gfork](https://gfork.dahi.icu)为自定义样式的镜像站 - [gf.qytechs](https://gf.qytechs.cn/zh-CN)为仿制原站点的镜像站