修复打包

master
yutent 2024-01-09 17:47:49 +08:00
parent fe2847ac3e
commit 4ae21df251
1 changed files with 5 additions and 2 deletions

View File

@ -3,17 +3,19 @@
origin_app_name="charles-proxy" origin_app_name="charles-proxy"
app_name="charles" app_name="charles"
tmp_dir="/tmp/${app_name}_tmp" tmp_dir="/tmp/${app_name}_tmp"
version="4.6.5" version="4.6.5-2"
release="v${version}" release="v${version}"
replace_name="charles-nj" replace_name="charles-nj"
patch="Architecture: amd64" patch="Architecture: amd64"
_type="amd64" _type="amd64"
_desc=', 内置java-11 runtime'
if [ "$1" == "nj" ]; then if [ "$1" == "nj" ]; then
_type="all" _type="all"
app_name+="-nj" app_name+="-nj"
replace_name="charles" replace_name="charles"
_desc=""
patch="""Architecture: all patch="""Architecture: all
Depends: java11-runtime""" Depends: java11-runtime"""
fi fi
@ -48,6 +50,7 @@ source_dir="${tmp_dir}/${app_name}"
echo "下载官方原包..." echo "下载官方原包..."
wget $deb_url -O "${tmp_dir}/${app_name}.deb" wget $deb_url -O "${tmp_dir}/${app_name}.deb"
# cp ~/Downloads/${origin_app_name}_4.6.5_${_type}.deb "${tmp_dir}/${app_name}.deb"
echo "下载完成, 解包中..." echo "下载完成, 解包中..."
dpkg-deb -R "${tmp_dir}/${app_name}.deb" "${tmp_dir}/${app_name}" dpkg-deb -R "${tmp_dir}/${app_name}.deb" "${tmp_dir}/${app_name}"
@ -144,7 +147,7 @@ Replaces: ${replace_name}
Priority: optional Priority: optional
Installed-Size: ${size[0]} Installed-Size: ${size[0]}
Homepage: https://www.charlesproxy.com/ Homepage: https://www.charlesproxy.com/
Description: 一个网络抓包调试工具, 内置java-11 runtime Description: 一个网络抓包调试工具${_desc}
Charles is an HTTP proxy / HTTP monitor / Reverse Proxy that enables a Charles is an HTTP proxy / HTTP monitor / Reverse Proxy that enables a
developer to view all of the HTTP and SSL / HTTPS traffic between their developer to view all of the HTTP and SSL / HTTPS traffic between their
machine and the Internet. This includes requests, responses and the HTTP machine and the Internet. This includes requests, responses and the HTTP