mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-01-01 03:18:32 +00:00
Get version from CMakeLists
This commit is contained in:
parent
68f35f6ab1
commit
c5e6b84e3d
24
.github/workflows/CI.yml
vendored
24
.github/workflows/CI.yml
vendored
@ -51,30 +51,6 @@ jobs:
|
|||||||
echo Within 'CMakeLists.txt' change "project(Sunshine VERSION $cmakelists_version)" to "project(Sunshine VERSION ${{ needs.check_changelog.outputs.next_version_bare }})"
|
echo Within 'CMakeLists.txt' change "project(Sunshine VERSION $cmakelists_version)" to "project(Sunshine VERSION ${{ needs.check_changelog.outputs.next_version_bare }})"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
- name: Check gen-deb.in Version
|
|
||||||
run: |
|
|
||||||
version=$(grep -o -E '^Version: [0-9]+\.[0-9]+\.[0-9]+' gen-deb.in | grep -o -E '[0-9]+\.[0-9]+\.[0-9]+')
|
|
||||||
echo "gendeb_version=${version}" >> $GITHUB_ENV
|
|
||||||
- name: Compare gen-deb.in Version
|
|
||||||
if: ${{ env.gendeb_version != needs.check_changelog.outputs.next_version_bare }}
|
|
||||||
run: |
|
|
||||||
echo gen-deb.in version: "$gendeb_version"
|
|
||||||
echo Changelog version: "${{ needs.check_changelog.outputs.next_version_bare }}"
|
|
||||||
echo Within 'gen-deb.in' change "Version: $gendeb_version" to "Version: ${{ needs.check_changelog.outputs.next_version_bare }}"
|
|
||||||
exit 1
|
|
||||||
|
|
||||||
- name: Check sunshine.desktop Versions
|
|
||||||
run: |
|
|
||||||
version=$(grep -o -E '^X-AppImage-Version=[0-9]+\.[0-9]+\.[0-9]+' sunshine.desktop | grep -o -E '[0-9]+\.[0-9]+\.[0-9]+')
|
|
||||||
echo "appimage_version=${version}" >> $GITHUB_ENV
|
|
||||||
- name: Compare sunshine.desktop Versions
|
|
||||||
if: ${{ env.appimage_version != needs.check_changelog.outputs.next_version_bare }}
|
|
||||||
run: |
|
|
||||||
echo sunshine.desktop Version: "$appimage_version"
|
|
||||||
echo Changelog version: "${{ needs.check_changelog.outputs.next_version_bare }}"
|
|
||||||
echo Within 'sunshine.desktop' change "X-AppImage-Version=$appimage_version" to "X-AppImage-Version=${{ needs.check_changelog.outputs.next_version_bare }}"
|
|
||||||
exit 1
|
|
||||||
|
|
||||||
build_appimage:
|
build_appimage:
|
||||||
name: AppImage
|
name: AppImage
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
@ -313,6 +313,7 @@ else()
|
|||||||
set(SUNSHINE_EXECUTABLE_PATH "sunshine")
|
set(SUNSHINE_EXECUTABLE_PATH "sunshine")
|
||||||
endif()
|
endif()
|
||||||
configure_file(gen-deb.in gen-deb @ONLY)
|
configure_file(gen-deb.in gen-deb @ONLY)
|
||||||
|
configure_file(sunshine.desktop.in sunshine.desktop @ONLY)
|
||||||
configure_file(sunshine.service.in sunshine.service @ONLY)
|
configure_file(sunshine.service.in sunshine.service @ONLY)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ Package: sunshine
|
|||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
Maintainer: @loki
|
Maintainer: @loki
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Version: 0.12.0
|
Version: @PROJECT_VERSION@
|
||||||
Depends: libssl1.1, libavdevice58, libboost-thread1.67.0 | libboost-thread1.71.0 | libboost-thread1.74.0, libboost-filesystem1.67.0 | libboost-filesystem1.71.0 | libboost-filesystem1.74.0, libboost-log1.67.0 | libboost-log1.71.0 | libboost-log1.74.0, libpulse0, libopus0, libxcb-shm0, libxcb-xfixes0, libxtst6, libevdev2, libdrm2, libcap2
|
Depends: libssl1.1, libavdevice58, libboost-thread1.67.0 | libboost-thread1.71.0 | libboost-thread1.74.0, libboost-filesystem1.67.0 | libboost-filesystem1.71.0 | libboost-filesystem1.74.0, libboost-log1.67.0 | libboost-log1.71.0 | libboost-log1.74.0, libpulse0, libopus0, libxcb-shm0, libxcb-xfixes0, libxtst6, libevdev2, libdrm2, libcap2
|
||||||
Description: Gamestream host for Moonlight
|
Description: Gamestream host for Moonlight
|
||||||
EOF
|
EOF
|
||||||
|
@ -8,5 +8,5 @@ Icon=sunshine
|
|||||||
Categories=Utility;
|
Categories=Utility;
|
||||||
Terminal=true
|
Terminal=true
|
||||||
X-AppImage-Name=sunshine
|
X-AppImage-Name=sunshine
|
||||||
X-AppImage-Version=0.12.0
|
X-AppImage-Version=@PROJECT_VERSION@
|
||||||
X-AppImage-Arch=x86_64
|
X-AppImage-Arch=x86_64
|
Loading…
Reference in New Issue
Block a user