# deb_build **Repository Path**: zinface/deb_build ## Basic Information - **Project Name**: deb_build - **Description**: deb安装包快速制作参考 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-02-09 - **Last Updated**: 2022-05-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # deb安装包快速制作 ### 1. 文件准备: ``` 1). 格式参考: testapp_1.0.0-20220120_amd64 2). 架构参考: i386 amd64 arm64(aarch64) mips64 查看本机适配架构类型 dpkg --print-architecture 3). DEBIAN/control: section (软件类别) utils,net,mail,text,x11 4). DEBIAN/control: priority (重要程度) required,standard,optional,extra 5). DEBIAN/control: depends (依赖项) openssl(>=1.0.0), 6). DEBIAN/control: essential (是否基础软件,若为yes将不能卸载) yes no 7). xxx.desktop: Categories (软件种类) 主类型: Network Office Graphics Audio Video AudioVideo System Development Utility Game Settings System 附加类型: IDE TV Java Qt Shell ... 参考: https://specifications.freedesktop.org/menu-spec/menu-spec-1.0.html ``` ### 2. 构建deb: ```shell dpkg -b testapp_1.0.0-20220120_amd64 testapp_1.0.0-20220120_amd64.deb ``` ### 3. 安装deb: (或者把.deb拷贝到自己的用户目录及下再双击安装) ```shell sudo dpkg -i testapp_1.0.0-20220120_amd64.deb ``` * 1). 安装成功后, 可在 /opt/apps/ 下见到 testapp 安装包目录 * 2). 安装成功后, 可在应用列表中搜索 Test 见到对应app ![jpg](doc/search.jpg) * 3). 安装成功后, 运行 testapp 会见到 ![jpg](doc/run.jpg) ### 4. 卸载deb: (或者到应用管理中卸载) ```shell sudo dpkg -r testapp ```