From 6b8341984ab0de828a14c71d655d013955c49a17 Mon Sep 17 00:00:00 2001 From: Khosrow Moossavi Date: Fri, 20 Dec 2024 11:07:03 -0500 Subject: [PATCH] fix: package build and publish paths in local-build script --- .github/scripts/local-build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/scripts/local-build.sh b/.github/scripts/local-build.sh index 83ec4ec8..da2628ed 100755 --- a/.github/scripts/local-build.sh +++ b/.github/scripts/local-build.sh @@ -54,8 +54,8 @@ parse_flag() { EXTENSION="" # e.g. /path/to/ext-debian.sh GIT_REPO_PATH="" # e.g. /path/to/git/repo/voulage -PKG_BUILD_PATH="$GIT_REPO_PATH/pkgbuild" -PKG_PUBLISH_PATH="$GIT_REPO_PATH/pkgpublish" +PKG_BUILD_PATH="" # it will be: /pkgbuild +PKG_PUBLISH_PATH="" # it will be: /pkgpublish PACKAGE_NAME="" PACKAGE_URL="" @@ -143,10 +143,14 @@ source $EXTENSION #### Setup files +PKG_BUILD_PATH="$GIT_REPO_PATH/pkgbuild" + if [ ! -d "$PKG_BUILD_PATH" ]; then mkdir -p "$PKG_BUILD_PATH" fi +PKG_PUBLISH_PATH="$GIT_REPO_PATH/pkgpublish" + if [ ! -d "$PKG_PUBLISH_PATH" ]; then mkdir -p $PKG_PUBLISH_PATH/$DISTRO/$CODENAME/$STAGE fi