# Debian包工具 **Repository Path**: tangxiaofeng97/debian-package-tool ## Basic Information - **Project Name**: Debian包工具 - **Description**: 一些手动打包中使用的脚本 - **Primary Language**: Python - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-18 - **Last Updated**: 2025-10-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Debian包工具 #### 介绍 Debian系列相关的工具 #### 软件架构 软件架构说明 #### 安装教程 `git clone git@gitee.com:tangxiaofeng97/debian-package-tool.git` #### 使用说明 ##### edit_changes.py 功能是根据changes文件中列举的文件名,自动计算sha1、sha256、md5、文件大小字段并填充。 使用命令是`python3 edit_changes.py` ##### edit_deb_version.py 功能是修改本文件夹下所有的deb包的版本号。 1. 在`edit_deb_version.py`文件中设置`old_version`、`new_version`、`arch`三个变量 2. 使用命令`python3 edit_deb_version.py`,会自动修改deb包中的control文件和deb包的版本号。 ##### ubuntu_sources_download.py         提供一个Ubuntu_sources_download类。可以在类的成员函数`download_source_from_ubuntu` 中传入一个`source`列表作为参数,自动列表中的源文件保存在当前目录的源文件夹中。 ```示例 from ubuntu_sources_download import Ubuntu_sources_download source_list = ["lumino", "hello", "node-html-loader"] Download = Ubuntu_sources_download() Download.download_source_from_ubuntu(source_list) ```         还提供了代理功能,实验使用的是快代理的api代理。需要在实例化类的时候,传入代理参数。 ```代理示例 api_url = 'https://dps.kdlapi.com/api/getdps/?secret_id=ohfjn&signature=tj1&format=text&sep=1&dedup=1' Download = Ubuntu_sources_download(proxies_api_url=api_url, username='d221797890', password='e8gtych') ``` #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request