chore: fix github actions for release (macOS and AppImage)
This commit is contained in:
12
.github/workflows/make-mac-app.sh
vendored
12
.github/workflows/make-mac-app.sh
vendored
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user