mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-03-28 19:20:26 +00:00
Add "v" to --version argument output
This commit is contained in:
parent
592cb002bd
commit
ed62a1f93d
4
.github/workflows/create_package.yml
vendored
4
.github/workflows/create_package.yml
vendored
@ -105,8 +105,8 @@ jobs:
|
|||||||
# base_ref for pull request check, ref for push
|
# base_ref for pull request check, ref for push
|
||||||
run: |
|
run: |
|
||||||
cd ./appimage_temp/sunshine
|
cd ./appimage_temp/sunshine
|
||||||
version=$(./sunshine.AppImage --version | grep -o -E '[0-9]+\.[0-9]+\.[0-9]+')
|
version=$(./sunshine.AppImage --version | grep -o -E 'v[0-9]+\.[0-9]+\.[0-9]+')
|
||||||
echo "sunshine_version=v${version}" >> $GITHUB_ENV
|
echo "sunshine_version=${version}" >> $GITHUB_ENV
|
||||||
- name: Compare Versions
|
- name: Compare Versions
|
||||||
if: ${{ ( github.ref == 'refs/heads/master' || github.base_ref == 'master') && ( env.sunshine_version != needs.check_changelog.outputs.next_version ) }}
|
if: ${{ ( github.ref == 'refs/heads/master' || github.base_ref == 'master') && ( env.sunshine_version != needs.check_changelog.outputs.next_version ) }}
|
||||||
run: |
|
run: |
|
||||||
|
@ -84,7 +84,7 @@ int entry(const char *name, int argc, char *argv[]) {
|
|||||||
|
|
||||||
namespace version {
|
namespace version {
|
||||||
int entry(const char *name, int argc, char *argv[]) {
|
int entry(const char *name, int argc, char *argv[]) {
|
||||||
std::cout << PROJECT_NAME << " version: " << PROJECT_VER << std::endl;
|
std::cout << PROJECT_NAME << " version: v" << PROJECT_VER << std::endl;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
} // namespace version
|
} // namespace version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user