Skip UI folder, fix output path for tar.gz and macOS apps

This commit is contained in:
Mark McDowall 2024-01-07 13:31:43 -08:00
parent 2564c28bae
commit fd5b6a6eea
2 changed files with 7 additions and 2 deletions
.github
actions/package
workflows

View File

@ -11,6 +11,10 @@ do
folderName="$runtime/$framework"
sonarrFolder="$folderName/Sonarr"
archiveName="Sonarr.$BRANCH.$SONARR_VERSION.$name"
if [[ "name" == 'UI' ]]; then
continue
fi
echo "Creating package for $name"
@ -41,12 +45,12 @@ do
rm -r $packageFolder/Sonarr.app/Contents/MacOS/Sonarr.Update
echo "Packaging macOS app Artifact"
(cd $packageFolder; zip -rq "../../../$artifactsFolder/$archiveName-app.zip" ./Sonarr.app)
(cd $packageFolder; zip -rq "../../$artifactsFolder/$archiveName-app.zip" ./Sonarr.app)
fi
echo "Packaging Artifact"
if [[ "$name" == *"linux"* ]] || [[ "$name" == *"osx"* ]] || [[ "$name" == *"freebsd"* ]]; then
tar -zcf "$artifactsFolder/$archiveName.tar.gz" -C $folderName Sonarr
tar -zcf "./$artifactsFolder/$archiveName.tar.gz" -C $folderName Sonarr
fi
if [[ "$name" == *"win"* ]]; then

View File

@ -77,6 +77,7 @@ jobs:
generateReleaseNotes: true
name: ${{ inputs.version }}
prerelease: ${{ inputs.branch != 'main' }}
skipIfReleaseExists: true
tag: v${{ inputs.version }}
- name: Publish to Services