From 9eb23aa93fb369d1c5f988b4633e6dbccbc8c2d7 Mon Sep 17 00:00:00 2001 From: shenmo <jifengshenmo@outlook.com> Date: Tue, 15 Apr 2025 14:09:28 +0000 Subject: [PATCH] =?UTF-8?q?=20=E5=9C=A8rules=E9=87=8C=E5=81=9Asrc->pkg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shenmo <jifengshenmo@outlook.com> --- README.zh.md | 7 ++++++- build-pkg.sh | 2 -- debian/rules | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.zh.md b/README.zh.md index c5f94b3..5a4bc54 100644 --- a/README.zh.md +++ b/README.zh.md @@ -37,7 +37,7 @@ https://share.spark-app.store/index.php?share/folder&user=1&sid=GnktisUQ ## 从源代码构建指南 -Single Build: ./build-pkg.sh pkg + ### Debian @@ -55,3 +55,8 @@ dpkg-buildpackage -us -uc -b `yay -S amber-ce-bookworm` --- + +Single Build: + +cp -r src/ pkg/ +./build-pkg.sh pkg/ \ No newline at end of file diff --git a/build-pkg.sh b/build-pkg.sh index 34044ac..de79528 100755 --- a/build-pkg.sh +++ b/build-pkg.sh @@ -36,8 +36,6 @@ exit fi target_dir="${1}" # 要处理的目标目录 - rm -rf ${target_dir}/ - cp -r src/ ${target_dir}/ bash replacer.sh ${target_dir}/ bash linker.sh ${target_dir}/ cd pkg/opt/apps/$PKG_NAME/files && bash build-container.sh $(uname -m) diff --git a/debian/rules b/debian/rules index 43f58ac..c112d01 100755 --- a/debian/rules +++ b/debian/rules @@ -6,6 +6,8 @@ dh $@ override_dh_auto_configure: + rm -vfr pkg/ + cp -r src/ pkg/ bash build-pkg.sh pkg/ override_dh_dwz: