2023-08-25 19:34:32 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ -d unpack ]; then
|
|
|
|
sudo rm -rf unpack
|
|
|
|
fi
|
|
|
|
|
2023-08-27 13:22:37 +08:00
|
|
|
version="1.0.3"
|
2023-08-26 22:34:17 +08:00
|
|
|
|
2023-08-25 19:34:32 +08:00
|
|
|
mkdir -p unpack/DEBIAN
|
|
|
|
|
|
|
|
cp debian/control unpack/DEBIAN/
|
|
|
|
cp -r usr unpack/
|
|
|
|
|
|
|
|
cd unpack
|
|
|
|
find . -type f | xargs md5sum > DEBIAN/md5sums
|
|
|
|
|
|
|
|
cd ..
|
2023-08-26 22:34:17 +08:00
|
|
|
dpkg-deb -b unpack/ "sonist-${version}.deb"
|
2023-08-25 19:34:32 +08:00
|
|
|
|
2023-08-26 22:34:17 +08:00
|
|
|
sudo rm -rf unpack
|