Skip to content

Commit 884b0ef

Browse files
committed
Updated macOS DMG workflow
1 parent 0d2bdaf commit 884b0ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/macos-dmg.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
set -euxo pipefail
6262
APP_NAME="SSH Studio"
6363
APP_ID="io.github.BuddySirJava.SSH-Studio"
64-
VER=$(sed -n "s/.*version: '\([^']*\)'.*/\1/p" meson.build)
64+
VER=$(sed -n "s/.*version: '\([^']*\)'.*/\1/p" meson.build | head -n1)
6565
ARCH=$(uname -m)
6666
APP_ROOT="$PWD/dist/${APP_NAME}.app/Contents"
6767
mkdir -p "$APP_ROOT/MacOS" "$APP_ROOT/Resources/python"
@@ -141,7 +141,7 @@ jobs:
141141
- name: Create DMG
142142
run: |
143143
set -euxo pipefail
144-
VER=$(sed -n "s/.*version: '\([^']*\)'.*/\1/p" meson.build)
144+
VER=$(sed -n "s/.*version: '\([^']*\)'.*/\1/p" meson.build | head -n1)
145145
ARCH=$(uname -m)
146146
mkdir -p dmgroot
147147
cp -R "dist/SSH Studio.app" dmgroot/

0 commit comments

Comments
 (0)