diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 9d592ee4b..d02b874ea 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -92,6 +92,20 @@ jobs: plutil -replace CFBundleVersion -string "${{ inputs.info_version }}" ErsatzTV-macOS/ErsatzTV-macOS/Info.plist scripts/macOS/bundle.sh + - name: Bundle ersatztv-channel from next + shell: bash + env: + GH_TOKEN: ${{ github.token }} + run: | + next_target="${{ matrix.target }}" + next_target="${next_target/osx/macos}" + gh release download develop --repo ErsatzTV/next --pattern "ersatztv-next-*-${next_target}.tar.gz" --dir next-download + mkdir next-extracted + tar xzvf next-download/*.tar.gz -C next-extracted --strip-components 1 + mv next-extracted/ersatztv-channel ErsatzTV-Legacy.app/Contents/MacOS/ + chmod +x ErsatzTV-Legacy.app/Contents/MacOS/ersatztv-channel + rm -rf next-download next-extracted + - name: Sign shell: bash run: scripts/macOS/sign.sh