Skip to content

Commit

Permalink
try fixing create-dmg resource busy
Browse files Browse the repository at this point in the history
  • Loading branch information
VitoVan committed Nov 24, 2023
1 parent 18a46cd commit 09b88a6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/calm.yml
Expand Up @@ -95,6 +95,9 @@ jobs:
- name: Build
run: |
# install it before executing the script
# to work around resource busy thing
brew install create-dmg
bash build/build.sh
ls -lah .
Expand Down
8 changes: 8 additions & 0 deletions s/dev/darwin/pack.sh
Expand Up @@ -18,6 +18,14 @@ export DIST_DIR=./calm-dist/

./calm make-bundle

if [ -n "${CI}" ]; then
echo working around for macos-13 on github ...
# A workaround mentioned here https://github.com/actions/runner-images/issues/7522
echo killing...; sudo pkill -9 XProtect >/dev/null || true;
echo waiting...; while pgrep XProtect; do sleep 3; done;
fi


export DMG_ICON=./build/calm-dmg.icns
./calm make-dmg

Expand Down
2 changes: 2 additions & 0 deletions s/usr/macos/dmg.lisp
Expand Up @@ -16,6 +16,8 @@

(u:exec
(str:concat
;; https://github.com/actions/runner-images/issues/7522#issuecomment-1566746364
(if (uiop:getenv "CI") "sudo " "")
"create-dmg "
" --hdiutil-verbose --volname \"" app-name " - CALM\""
" --volicon \"" dmg-icon "\""
Expand Down

0 comments on commit 09b88a6

Please sign in to comment.