|
|
@ -73,8 +73,9 @@ jobs: |
|
|
|
shell: bash |
|
|
|
shell: bash |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
sed -i '' '/Scanner/d' ErsatzTV/ErsatzTV.csproj |
|
|
|
sed -i '' '/Scanner/d' ErsatzTV/ErsatzTV.csproj |
|
|
|
dotnet publish ErsatzTV.Scanner/ErsatzTV.Scanner.csproj --framework net9.0 --runtime "${{ matrix.target }}" -c Release -o publish -p:RestoreEnablePackagePruning=true -p:InformationalVersion="${{ inputs.release_version }}-${{ matrix.target }}" -p:EnableCompressionInSingleFile=false -p:DebugType=Embedded -p:PublishSingleFile=true --self-contained true |
|
|
|
dotnet publish ErsatzTV.Scanner/ErsatzTV.Scanner.csproj --framework net9.0 --runtime "${{ matrix.target }}" -c Release -o publish -p:RestoreEnablePackagePruning=true -p:InformationalVersion="${{ inputs.release_version }}-${{ matrix.target }}" -p:EnableCompressionInSingleFile=false -p:DebugType=Embedded -p:PublishSingleFile=true --self-contained true & |
|
|
|
dotnet publish ErsatzTV/ErsatzTV.csproj --framework net9.0 --runtime "${{ matrix.target }}" -c Release -o publish -p:RestoreEnablePackagePruning=true -p:InformationalVersion="${{ inputs.release_version }}-${{ matrix.target }}" -p:EnableCompressionInSingleFile=false -p:DebugType=Embedded -p:PublishSingleFile=true --self-contained true |
|
|
|
dotnet publish ErsatzTV/ErsatzTV.csproj --framework net9.0 --runtime "${{ matrix.target }}" -c Release -o publish -p:RestoreEnablePackagePruning=true -p:InformationalVersion="${{ inputs.release_version }}-${{ matrix.target }}" -p:EnableCompressionInSingleFile=false -p:DebugType=Embedded -p:PublishSingleFile=true --self-contained true & |
|
|
|
|
|
|
|
wait |
|
|
|
|
|
|
|
|
|
|
|
- name: Bundle |
|
|
|
- name: Bundle |
|
|
|
shell: bash |
|
|
|
shell: bash |
|
|
@ -194,21 +195,25 @@ jobs: |
|
|
|
|
|
|
|
|
|
|
|
# Build everything |
|
|
|
# Build everything |
|
|
|
sed -i '/Scanner/d' ErsatzTV/ErsatzTV.csproj |
|
|
|
sed -i '/Scanner/d' ErsatzTV/ErsatzTV.csproj |
|
|
|
dotnet publish ErsatzTV.Scanner/ErsatzTV.Scanner.csproj --framework net9.0 --runtime "${{ matrix.target }}" -c Release -o "scanner" -p:RestoreEnablePackagePruning=true -p:InformationalVersion="${{ inputs.release_version }}-${{ matrix.target }}" -p:EnableCompressionInSingleFile=true -p:DebugType=Embedded -p:PublishSingleFile=true --self-contained true |
|
|
|
dotnet publish ErsatzTV.Scanner/ErsatzTV.Scanner.csproj --framework net9.0 --runtime "${{ matrix.target }}" -c Release -o "scanner" -p:RestoreEnablePackagePruning=true -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 net9.0 --runtime "${{ matrix.target }}" -c Release -o "main" -p:RestoreEnablePackagePruning=true -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 net9.0 --runtime "${{ matrix.target }}" -c Release -o "main" -p:RestoreEnablePackagePruning=true -p:InformationalVersion="${{ inputs.release_version }}-${{ matrix.target }}" -p:EnableCompressionInSingleFile=true -p:DebugType=Embedded -p:PublishSingleFile=true --self-contained true & |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Build Windows launcher |
|
|
|
|
|
|
|
if [ "${{ matrix.kind }}" == "windows" ]; then |
|
|
|
|
|
|
|
cargo build --manifest-path=ErsatzTV-Windows/Cargo.toml --release --all-features & |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wait |
|
|
|
|
|
|
|
|
|
|
|
mkdir "$release_name" |
|
|
|
mkdir "$release_name" |
|
|
|
mv scanner/* "$release_name/" |
|
|
|
mv scanner/* "$release_name/" |
|
|
|
mv main/* "$release_name/" |
|
|
|
mv main/* "$release_name/" |
|
|
|
|
|
|
|
|
|
|
|
# Build Windows launcher |
|
|
|
|
|
|
|
if [ "${{ matrix.kind }}" == "windows" ]; then |
|
|
|
if [ "${{ matrix.kind }}" == "windows" ]; then |
|
|
|
cargo build --manifest-path=ErsatzTV-Windows/Cargo.toml --release --all-features |
|
|
|
|
|
|
|
ls -l ErsatzTV-Windows/target/release |
|
|
|
ls -l ErsatzTV-Windows/target/release |
|
|
|
mv ErsatzTV-Windows/target/release/ersatztv_windows.exe "$release_name/ErsatzTV-Windows.exe" |
|
|
|
mv ErsatzTV-Windows/target/release/ersatztv_windows.exe "$release_name/ErsatzTV-Windows.exe" |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Download ffmpeg |
|
|
|
# Download ffmpeg |
|
|
|
if [ "${{ matrix.kind }}" == "windows" ]; then |
|
|
|
|
|
|
|
7z e "ffmpeg/${{ steps.downloadffmpeg.outputs.filename }}" -o"$release_name" '*.exe' -r |
|
|
|
7z e "ffmpeg/${{ steps.downloadffmpeg.outputs.filename }}" -o"$release_name" '*.exe' -r |
|
|
|
rm -f "$release_name/ffplay.exe" |
|
|
|
rm -f "$release_name/ffplay.exe" |
|
|
|
fi |
|
|
|
fi |
|
|
|