Skip to content

Commit

Permalink
Change release name (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohto-ai authored Apr 20, 2023
1 parent 262f1e8 commit 4107ca2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:
if [[ $os_name == "Linux" ]]; then
package_path=$deb_path
asset_name="${{ matrix.os }}_$deb_file"
asset_name="${{ matrix.os }}_${deb_file}"
cmake --build build --config Release --target package -j8
else
package_path=$bin_path
asset_name="${{ matrix.os }}_${bin_name}__${{ github.ref_name }}"
asset_name="${{ matrix.os }}_${bin_name}-${bin_version}${bin_suffix}"
fi
echo "package_name=$bin_name" >> $GITHUB_OUTPUT
Expand Down
1 change: 1 addition & 0 deletions scripts/env.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ bin_name="@PROJECT_NAME@"
bin_version="@PROJECT_VERSION@"
bin_description="@DESCRIPTION@"
commit_hash="@GIT_COMMIT_HASH@"
bin_suffix=@BINARY_SUFFIX@
bin_file="@PROJECT_NAME@@BINARY_SUFFIX@"
bin_path="@CMAKE_CURRENT_BINARY_DIR@/@RELEASE_DIR@@PROJECT_NAME@@BINARY_SUFFIX@"
deb_file="@PROJECT_NAME@-@PROJECT_VERSION@-Linux.deb"
Expand Down
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ set(DESCRIPTION "A webhook server")
if(WIN32)
set(BINARY_SUFFIX ".exe")
set(RELEASE_DIR "Release/")
elseif(APPLE)
set(BINARY_SUFFIX ".img")
set(RELEASE_DIR "")
else()
set(BINARY_SUFFIX "")
set(RELEASE_DIR "")
Expand Down

0 comments on commit 4107ca2

Please sign in to comment.