Skip to content

Commit

Permalink
Merge pull request #297 from qzhuyan/ci/william/update-release-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhuyan authored Sep 20, 2024
2 parents 63604ad + 5ca3c31 commit 706fe1c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ download() {
return $res
}

# rebar3 deref softlinks while packaging
# so we dref at here to keep one dynlib file to avoid dup files in EMQX package
# - priv/libquicer_nif.so
# - priv/libquicer_nif.so.1
# - priv/libquicer_nif.so.504
remove_dups() {
cp -L $TARGET_SO ${TARGET_SO}tmp
rm ${TARGET_SO}.*
mv ${TARGET_SO}tmp $TARGET_SO
}

release() {
if [ -z "$PKGNAME" ]; then
echo "unable_to_resolve_release_package_name"
Expand Down Expand Up @@ -97,6 +108,7 @@ else
build
else
echo "QUICER: NOTE! nif library is downloaded from prebuilt releases, not compiled from source!"
remove_dups
fi
else
build
Expand Down

0 comments on commit 706fe1c

Please sign in to comment.