| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -36,9 +36,9 @@ jobs: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          - os: macos-latest | 
					 | 
					 | 
					 | 
					          - os: macos-latest | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            kind: macOS | 
					 | 
					 | 
					 | 
					            kind: macOS | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            target: osx-x64 | 
					 | 
					 | 
					 | 
					            target: osx-x64 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          - os: macos-latest | 
					 | 
					 | 
					 | 
					#          - os: macos-latest | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            kind: macOS | 
					 | 
					 | 
					 | 
					#            kind: macOS | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            target: osx-arm64 | 
					 | 
					 | 
					 | 
					#            target: osx-arm64 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    steps: | 
					 | 
					 | 
					 | 
					    steps: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      - name: Get the sources | 
					 | 
					 | 
					 | 
					      - name: Get the sources | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        uses: actions/checkout@v2 | 
					 | 
					 | 
					 | 
					        uses: actions/checkout@v2 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -75,8 +75,8 @@ jobs: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      - name: Bundle | 
					 | 
					 | 
					 | 
					      - name: Bundle | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        shell: bash | 
					 | 
					 | 
					 | 
					        shell: bash | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        run: | | 
					 | 
					 | 
					 | 
					        run: | | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          plutil -replace CFBundleShortVersionString -string "${{ inputs.info_version }}" scripts/macOS/Info.plist | 
					 | 
					 | 
					 | 
					          plutil -replace CFBundleShortVersionString -string "${{ inputs.info_version }}" ErsatzTV-macOS/ErsatzTV-macOS/Info.plist | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          plutil -replace CFBundleVersion -string "${{ inputs.info_version }}" scripts/macOS/Info.plist | 
					 | 
					 | 
					 | 
					          plutil -replace CFBundleVersion -string "${{ inputs.info_version }}" ErsatzTV-macOS/ErsatzTV-macOS/Info.plist | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          scripts/macOS/bundle.sh | 
					 | 
					 | 
					 | 
					          scripts/macOS/bundle.sh | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      - name: Sign | 
					 | 
					 | 
					 | 
					      - name: Sign | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -134,78 +134,78 @@ jobs: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            ${{ env.RELEASE_NAME }}.dmg | 
					 | 
					 | 
					 | 
					            ${{ env.RELEASE_NAME }}.dmg | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        env: | 
					 | 
					 | 
					 | 
					        env: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          GITHUB_TOKEN: ${{ secrets.gh_token }} | 
					 | 
					 | 
					 | 
					          GITHUB_TOKEN: ${{ secrets.gh_token }} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  build_and_upload: | 
					 | 
					 | 
					 | 
					#  build_and_upload: | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    name: Build & Upload | 
					 | 
					 | 
					 | 
					#    name: Build & Upload | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    runs-on: ${{ matrix.os }} | 
					 | 
					 | 
					 | 
					#    runs-on: ${{ matrix.os }} | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    if: contains(github.event.head_commit.message, '[no build]') == false | 
					 | 
					 | 
					 | 
					#    if: contains(github.event.head_commit.message, '[no build]') == false | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    strategy: | 
					 | 
					 | 
					 | 
					#    strategy: | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      matrix: | 
					 | 
					 | 
					 | 
					#      matrix: | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        include: | 
					 | 
					 | 
					 | 
					#        include: | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          - os: ubuntu-latest | 
					 | 
					 | 
					 | 
					#          - os: ubuntu-latest | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            kind: linux | 
					 | 
					 | 
					 | 
					#            kind: linux | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            target: linux-x64 | 
					 | 
					 | 
					 | 
					#            target: linux-x64 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          - os: ubuntu-latest | 
					 | 
					 | 
					 | 
					#          - os: ubuntu-latest | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            kind: linux | 
					 | 
					 | 
					 | 
					#            kind: linux | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            target: linux-arm | 
					 | 
					 | 
					 | 
					#            target: linux-arm | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          - os: windows-latest | 
					 | 
					 | 
					 | 
					#          - os: windows-latest | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            kind: windows | 
					 | 
					 | 
					 | 
					#            kind: windows | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            target: win-x64 | 
					 | 
					 | 
					 | 
					#            target: win-x64 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    steps: | 
					 | 
					 | 
					 | 
					#    steps: | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      - name: Get the sources | 
					 | 
					 | 
					 | 
					#      - name: Get the sources | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        uses: actions/checkout@v2 | 
					 | 
					 | 
					 | 
					#        uses: actions/checkout@v2 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        with: | 
					 | 
					 | 
					 | 
					#        with: | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          fetch-depth: 0 | 
					 | 
					 | 
					 | 
					#          fetch-depth: 0 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					# | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      - name: Setup .NET Core | 
					 | 
					 | 
					 | 
					#      - name: Setup .NET Core | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        uses: actions/setup-dotnet@v1 | 
					 | 
					 | 
					 | 
					#        uses: actions/setup-dotnet@v1 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        with: | 
					 | 
					 | 
					 | 
					#        with: | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          dotnet-version: 6.0.x | 
					 | 
					 | 
					 | 
					#          dotnet-version: 6.0.x | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					# | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      - name: Clean | 
					 | 
					 | 
					 | 
					#      - name: Clean | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        run: dotnet clean --configuration Release && dotnet nuget locals all --clear | 
					 | 
					 | 
					 | 
					#        run: dotnet clean --configuration Release && dotnet nuget locals all --clear | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					# | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      - name: Install dependencies | 
					 | 
					 | 
					 | 
					#      - name: Install dependencies | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        run: dotnet restore -r "${{ matrix.target}}" | 
					 | 
					 | 
					 | 
					#        run: dotnet restore -r "${{ matrix.target}}" | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					# | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      - name: Build | 
					 | 
					 | 
					 | 
					#      - name: Build | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        shell: bash | 
					 | 
					 | 
					 | 
					#        shell: bash | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        run: | | 
					 | 
					 | 
					 | 
					#        run: | | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          # Define some variables for things we need | 
					 | 
					 | 
					 | 
					#          # Define some variables for things we need | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          release_name="ErsatzTV-${{ inputs.release_version }}-${{ matrix.target }}" | 
					 | 
					 | 
					 | 
					#          release_name="ErsatzTV-${{ inputs.release_version }}-${{ matrix.target }}" | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          echo "RELEASE_NAME=${release_name}" >> $GITHUB_ENV | 
					 | 
					 | 
					 | 
					#          echo "RELEASE_NAME=${release_name}" >> $GITHUB_ENV | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					           | 
					 | 
					 | 
					 | 
					#           | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          # Build everything | 
					 | 
					 | 
					 | 
					#          # Build everything | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          dotnet publish ErsatzTV/ErsatzTV.csproj --framework net6.0 --runtime "${{ matrix.target }}" -c Release -o "$release_name" -p:InformationalVersion="${{ inputs.release_version }}-${{ matrix.target }}" -p:EnableCompressionInSingleFile=true -p:DebugType=Embedded -p:PublishSingleFile=true --self-contained true | 
					 | 
					 | 
					 | 
					#          dotnet publish ErsatzTV/ErsatzTV.csproj --framework net6.0 --runtime "${{ matrix.target }}" -c Release -o "$release_name" -p:InformationalVersion="${{ inputs.release_version }}-${{ matrix.target }}" -p:EnableCompressionInSingleFile=true -p:DebugType=Embedded -p:PublishSingleFile=true --self-contained true | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					         | 
					 | 
					 | 
					 | 
					#         | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          # Pack files | 
					 | 
					 | 
					 | 
					#          # Pack files | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          if [ "${{ matrix.kind }}" == "windows" ]; then | 
					 | 
					 | 
					 | 
					#          if [ "${{ matrix.kind }}" == "windows" ]; then | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            7z a -tzip "${release_name}.zip" "./${release_name}/*" | 
					 | 
					 | 
					 | 
					#            7z a -tzip "${release_name}.zip" "./${release_name}/*" | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          else | 
					 | 
					 | 
					 | 
					#          else | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            tar czvf "${release_name}.tar.gz" "$release_name" | 
					 | 
					 | 
					 | 
					#            tar czvf "${release_name}.tar.gz" "$release_name" | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          fi | 
					 | 
					 | 
					 | 
					#          fi | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					# | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          # Delete output directory | 
					 | 
					 | 
					 | 
					#          # Delete output directory | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          rm -r "$release_name" | 
					 | 
					 | 
					 | 
					#          rm -r "$release_name" | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        env: | 
					 | 
					 | 
					 | 
					#        env: | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          AC_USERNAME: ${{ secrets.ac_username }} | 
					 | 
					 | 
					 | 
					#          AC_USERNAME: ${{ secrets.ac_username }} | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          AC_PASSWORD: ${{ secrets.ac_password }} | 
					 | 
					 | 
					 | 
					#          AC_PASSWORD: ${{ secrets.ac_password }} | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					# | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      - name: Delete old release assets | 
					 | 
					 | 
					 | 
					#      - name: Delete old release assets | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        uses: mknejp/delete-release-assets@v1 | 
					 | 
					 | 
					 | 
					#        uses: mknejp/delete-release-assets@v1 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        with: | 
					 | 
					 | 
					 | 
					#        with: | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          token: ${{ secrets.gh_token }} | 
					 | 
					 | 
					 | 
					#          token: ${{ secrets.gh_token }} | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          tag: ${{ inputs.release_tag }} | 
					 | 
					 | 
					 | 
					#          tag: ${{ inputs.release_tag }} | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          fail-if-no-assets: false | 
					 | 
					 | 
					 | 
					#          fail-if-no-assets: false | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          assets: | | 
					 | 
					 | 
					 | 
					#          assets: | | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            *${{ matrix.target }}.zip | 
					 | 
					 | 
					 | 
					#            *${{ matrix.target }}.zip | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            *${{ matrix.target }}.tar.gz | 
					 | 
					 | 
					 | 
					#            *${{ matrix.target }}.tar.gz | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      - name: Publish | 
					 | 
					 | 
					 | 
					#      - name: Publish | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        uses: softprops/action-gh-release@v1 | 
					 | 
					 | 
					 | 
					#        uses: softprops/action-gh-release@v1 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        with: | 
					 | 
					 | 
					 | 
					#        with: | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          prerelease: true | 
					 | 
					 | 
					 | 
					#          prerelease: true | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          tag_name: ${{ inputs.release_tag }} | 
					 | 
					 | 
					 | 
					#          tag_name: ${{ inputs.release_tag }} | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          files: | | 
					 | 
					 | 
					 | 
					#          files: | | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            ${{ env.RELEASE_NAME }}.zip | 
					 | 
					 | 
					 | 
					#            ${{ env.RELEASE_NAME }}.zip | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            ${{ env.RELEASE_NAME }}.tar.gz | 
					 | 
					 | 
					 | 
					#            ${{ env.RELEASE_NAME }}.tar.gz | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        env: | 
					 | 
					 | 
					 | 
					#        env: | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          GITHUB_TOKEN: ${{ secrets.gh_token }} | 
					 | 
					 | 
					 | 
					#          GITHUB_TOKEN: ${{ secrets.gh_token }} | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
	
		
		
			
				
					| 
						
						
						
					 | 
					 | 
					
  |