Skip to content

Commit

Permalink
Fix release package name (#110)
Browse files Browse the repository at this point in the history
* Fix release package name

* Add release dir
  • Loading branch information
ohto-ai authored Apr 19, 2023
1 parent fa32704 commit ee273a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
cmake --build build --config Release --target package -j8
else
package_path=$bin_path
asset_name="${{ steps.build.outputs.package_name }}_${{ matrix.os }}_${{ github.ref_name }}"
asset_name="$bin_name_${{ matrix.os }}_${{ github.ref_name }}"
fi
echo "package_name=$bin_name" >> $GITHUB_OUTPUT
Expand Down
4 changes: 2 additions & 2 deletions scripts/env.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ bin_version="@PROJECT_VERSION@"
bin_description="@DESCRIPTION@"
commit_hash="@GIT_COMMIT_HASH@"
bin_file="@PROJECT_NAME@@BINARY_SUFFIX@"
bin_path="@CMAKE_CURRENT_BINARY_DIR@/@PROJECT_NAME@@BINARY_SUFFIX@"
bin_path="@CMAKE_CURRENT_BINARY_DIR@/@RELEASE_DIR@@PROJECT_NAME@@BINARY_SUFFIX@"
deb_file="@PROJECT_NAME@-@PROJECT_VERSION@-Linux.deb"
deb_path="@CMAKE_CURRENT_BINARY_DIR@/@PROJECT_NAME@-@PROJECT_VERSION@-Linux.deb"
deb_path="@CMAKE_BINARY_DIR@/@PROJECT_NAME@-@PROJECT_VERSION@-Linux.deb"
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ set(EMAIL "zhu.thatboy@outlook.com")
set(DESCRIPTION "A webhook server")
if(WIN32)
set(BINARY_SUFFIX ".exe")
set(RELEASE_DIR "Release/")
else()
set(BINARY_SUFFIX "")
set(RELEASE_DIR "")
endif()

configure_file(
Expand Down

0 comments on commit ee273a2

Please sign in to comment.