chore: fix github actions for release (macOS and AppImage)

This commit is contained in:
Stéphane Lesimple
2023-09-17 20:18:16 +02:00
parent 1577a7c18d
commit 1338598abb
2 changed files with 28 additions and 18 deletions

View File

@@ -3,12 +3,18 @@ set -e
set -x
github_ref="$1"
archive="dvdisaster-$(echo "$github_ref" | grep -Eo '[^/]+$').dmg"
if ./dvdisaster --version | grep -q NOGUI; then
suffix="-cli-only"
else
suffix=""
fi
archive="dvdisaster-$(echo "$github_ref" | grep -Eo '[^/]+$')$suffix.dmg"
echo "Archive name is $archive"
echo "::set-output name=archive::$archive"
mkdir dist
mkdir -p dist
# Create directory structure for the macOS application bundle
mkdir -p dvdisaster.app/Contents/{MacOS,Resources}
@@ -42,4 +48,4 @@ mv dvdisaster.app dist
create-dmg "$archive" dist
echo "dist done ($archive)"
echo "dist done ($archive)"