diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d00edf7..bd72f25 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -73,8 +73,8 @@ jobs: run: mv dist/qitv.app/Contents/MacOS/qitv dist/qitv.app/Contents/MacOS/qitv_cli - name: Create launcher script run: | - printf '#!/bin/bash\nopen -n /Applications/qitv.app/Contents/MacOS/qitv_cli\n' > dist/qitv.app/Contents/MacOS/qitv - chmod +x dist/qitv.app/Contents/MacOS/qitv + printf '#!/bin/bash\nopen -n "$(dirname "$0")/qitv_cli"\n' > dist/qitv.app/Contents/MacOS/qit + chmod +x dist/qitv.app/Contents/MacOS/qit - name: Ad-Hoc Sign the app run: codesign --force --deep --sign - dist/qitv.app - name: Zip macOS App @@ -108,8 +108,8 @@ jobs: run: mv dist/qitv.app/Contents/MacOS/qitv dist/qitv.app/Contents/MacOS/qitv_cli - name: Create launcher script run: | - printf '#!/bin/bash\nopen -n ./qitv_cli\n' > dist/qitv.app/Contents/MacOS/qitv - chmod +x dist/qitv.app/Contents/MacOS/qitv + printf '#!/bin/bash\nopen -n "$(dirname "$0")/qitv_cli"\n' > dist/qitv.app/Contents/MacOS/qit + chmod +x dist/qitv.app/Contents/MacOS/qit - name: Ad-Hoc Sign the app run: codesign --force --deep --sign - dist/qitv.app - name: Zip macOS App