Skip to content

Commit

Permalink
fix: package build and publish paths in local-build script
Browse files Browse the repository at this point in the history
  • Loading branch information
khos2ow committed Dec 20, 2024
1 parent 691746c commit 6b83419
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/scripts/local-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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: <GIT_REPO_PATH>/pkgbuild
PKG_PUBLISH_PATH="" # it will be: <GIT_REPO_PATH>/pkgpublish

PACKAGE_NAME=""
PACKAGE_URL=""
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6b83419

Please sign in to comment.