tar -xvf "${tmp_dir}/zellij-x86_64.tar.gz" -C $tmp_dir
echo"解包完成, 复制到待打包目录..."
mv ${tmp_dir}/zellij "./unpack/usr/bin/"
rm -rf $tmp_dir
echo"复制完成, 计算文件md5..."
cd ./unpack
echo"""
[Desktop Entry]
Version=1.0
Name=Zellij
Type=Application
Comment=Manage Your Terminal Applications
Terminal=true
Exec=zellij
Icon=zellij
Categories=ConsoleOnly;System;
GenericName=Terminal Multiplexer
""" > usr/share/applications/zellij.desktop
find usr/ -type f | xargs md5sum > DEBIAN/md5sums
IFS=$'\t'read -ra size <<<"$(du -d 0)"
echo"""
Package: ${app_name}
Version: ${version}
Section: devlop
Installed-Size: ${size[0]}
Architecture: amd64
Maintainer: Yutent <yutent.io@gmail.com>
Priority: optional
Homepage: https://zellij.dev/
Description: A terminal workspace with batteries included.
Zellij is a workspace aimed at developers, ops-oriented people and anyone who loves the terminal. Similar programs are sometimes called "Terminal Multiplexers".