Update build scripts

This commit is contained in:
Michael Bucari-Tovo 2023-01-11 20:34:35 -07:00
parent 67b6aaed99
commit 18ff799fb1
5 changed files with 10 additions and 6 deletions

View File

@ -28,8 +28,8 @@ jobs:
- name: Build .deb - name: Build .deb
id: deb id: deb
run: | run: |
chmod +x ./Source/targz2deb.sh chmod +x ./.github/workflows/scripts/targz2deb.sh
./Source/targz2deb.sh "${{ env.FILE_NAME }}.tar.gz" ${{ inputs.version }} ./.github/workflows/scripts/targz2deb.sh "${{ env.FILE_NAME }}.tar.gz" ${{ inputs.version }}
- name: Publish .deb - name: Publish .deb
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3

View File

@ -72,6 +72,8 @@ jobs:
id: zip id: zip
working-directory: ./Source/bin/Publish/${{ matrix.os }}-${{ matrix.release_name }} working-directory: ./Source/bin/Publish/${{ matrix.os }}-${{ matrix.release_name }}
run: | run: |
delfiles=("libmp3lame.x86.dll" "libmp3lame.x64.dll" "ffmpegaac.x86.dll" "ffmpegaac.x64.dll" "ZipExtractor.exe")
for n in "${delfiles[@]}"; do rm "$n"; done
osbuild="$(echo '${{ matrix.os }}' | tr '[:upper:]' '[:lower:]')" osbuild="$(echo '${{ matrix.os }}' | tr '[:upper:]' '[:lower:]')"
artifact="Libation.${{ steps.get_version.outputs.version }}-${osbuild}-${{ matrix.release_name }}" artifact="Libation.${{ steps.get_version.outputs.version }}-${osbuild}-${{ matrix.release_name }}"
echo "artifact=${artifact}" >> "${GITHUB_OUTPUT}" echo "artifact=${artifact}" >> "${GITHUB_OUTPUT}"

View File

@ -75,9 +75,12 @@ jobs:
id: zip id: zip
working-directory: ./Source/bin/Publish working-directory: ./Source/bin/Publish
run: | run: |
$dir = "${{ matrix.os }}-${{ matrix.release_name }}\"
$delfiles = @("libmp3lame.so", "ffmpegaac.so", "glass-with-glow_256.svg", "Libation.desktop")
foreach ($file in $delfiles){ if (test-path $dir$file){ Remove-Item $dir$file } }
$artifact="${{ matrix.prefix }}Libation.${{ steps.get_version.outputs.version }}-" + "${{ matrix.os }}".ToLower() + "-${{ matrix.release_name }}" $artifact="${{ matrix.prefix }}Libation.${{ steps.get_version.outputs.version }}-" + "${{ matrix.os }}".ToLower() + "-${{ matrix.release_name }}"
"artifact=$artifact" >> $env:GITHUB_OUTPUT "artifact=$artifact" >> $env:GITHUB_OUTPUT
Compress-Archive -Path "${{ matrix.os }}-${{ matrix.release_name }}\*" -DestinationPath "$artifact.zip" Compress-Archive -Path "${dir}*" -DestinationPath "$artifact.zip"
- name: Publish artifact - name: Publish artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3

View File

@ -116,7 +116,6 @@ Version: $VERSION
Architecture: all Architecture: all
Essential: no Essential: no
Priority: optional Priority: optional
Depends: ffmpeg
Maintainer: github.com/rmcrackan Maintainer: github.com/rmcrackan
Description: liberate your audiobooks Description: liberate your audiobooks
" >> "$FOLDER_DEBIAN/control" " >> "$FOLDER_DEBIAN/control"

View File

@ -13,7 +13,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="AAXClean.Codecs" Version="0.3.0" /> <PackageReference Include="AAXClean.Codecs" Version="0.3.1" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>