Merge pull request #71 from SunshineStream/improve-version-automation
Get version from CMakeLists
This commit is contained in:
@@ -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
|
||||||
@@ -135,7 +111,7 @@ jobs:
|
|||||||
|
|
||||||
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage && chmod +x linuxdeploy-x86_64.AppImage
|
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage && chmod +x linuxdeploy-x86_64.AppImage
|
||||||
|
|
||||||
./linuxdeploy-x86_64.AppImage --appdir ../AppDir -e ../appimage-build/sunshine -i "../$ICON_FILE" -d "../$DESKTOP_FILE" --output appimage
|
./linuxdeploy-x86_64.AppImage --appdir ../AppDir -e ../appimage-build/sunshine -i "../$ICON_FILE" -d "../appimage-build/$DESKTOP_FILE" --output appimage
|
||||||
|
|
||||||
mv sunshine*.AppImage sunshine.AppImage
|
mv sunshine*.AppImage sunshine.AppImage
|
||||||
mkdir sunshine && mv sunshine.AppImage sunshine/
|
mkdir sunshine && mv sunshine.AppImage sunshine/
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -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
|
||||||
Reference in New Issue
Block a user