增加打包脚本
parent
b556390f51
commit
e906e5ab5c
|
@ -2,6 +2,7 @@
|
|||
.vscode
|
||||
|
||||
._*
|
||||
*.deb
|
||||
|
||||
.Spotlight-V100
|
||||
.Trashes
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -d unpack ]; then
|
||||
sudo rm -rf unpack
|
||||
fi
|
||||
|
||||
version="1.0.3"
|
||||
|
||||
mkdir -p unpack/DEBIAN
|
||||
|
||||
cp debian/control unpack/DEBIAN/
|
||||
cp -r usr unpack/
|
||||
|
||||
cd unpack
|
||||
find usr -type f | xargs md5sum > DEBIAN/md5sums
|
||||
|
||||
_size=$(du -d 0 usr | cut -f1)
|
||||
|
||||
sed -i "s/{{size}}/${_size}/" DEBIAN/control
|
||||
sed -i "s/{{version}}/${version}/" DEBIAN/control
|
||||
|
||||
cd ..
|
||||
sudo chown -R root:root unpack/
|
||||
dpkg-deb -b unpack/ "extra-repo-book_${version}.deb"
|
||||
|
||||
sudo rm -rf unpack
|
|
@ -0,0 +1,15 @@
|
|||
Package: extra-repo-book
|
||||
Version: {{version}}
|
||||
Section: repo-book
|
||||
Architecture: all
|
||||
Priority: optional
|
||||
Maintainer: Yutent <yutent.io@gmail.com>
|
||||
Installed-Size: {{size}}
|
||||
Homepage: https://git.wkit.fun/yutent/extra-repo-book
|
||||
Author: yutent
|
||||
Description: 一些额外的开源/闭源应用的软件源管理.
|
||||
常用的chrome, edge, mysql等等, 官方已维护了一个源, 这里就没有必要自己再维护一份了,
|
||||
故, 做了个简单的脚本, 做一下整合和管理, 这些源.
|
||||
`
|
||||
声明: 这里只做这些官方源的添加和删除, 并不会对软件本身做任何的修改, 你所安装的软件的来源, 均为官方地址,
|
||||
如出现应用损坏或被篡改过, 请自行检查自己本地DNS是否被劫持, 或联系软件开发者.
|
|
@ -161,7 +161,7 @@ case "$1" in
|
|||
;;
|
||||
|
||||
-v)
|
||||
echo '1.0.0'
|
||||
echo '1.0.3'
|
||||
;;
|
||||
|
||||
add)
|
||||
|
|
Loading…
Reference in New Issue