[gimp-macos-build/wip/lukaso/tests] Attempt to fix bug with applescript



commit 38698b51a7aa3542958a0ea104d659b00c9e1a20
Author: Lukas Oberhuber <lukaso gmail com>
Date:   Sun Oct 17 22:05:18 2021 +0100

    Attempt to fix bug with applescript

 .circleci/config.yml          | 12 ++++++------
 package/create-dmg/create-dmg |  7 +++++++
 2 files changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/.circleci/config.yml b/.circleci/config.yml
index d3d7314..8263efa 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -148,12 +148,12 @@ jobs:
         #       security import gnome.pfx  -k signchain -P "$osx_crt_pw" -T /usr/bin/codesign
         #       security set-key-partition-list -S apple-tool:,apple: -k "" signchain
         #       rm -rf ${HOME}/codesign
-        - run:
-            name: pstree to figure out what app is running
-            command: |
-              /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-              brew install pstree
-              pstree
+        # - run:
+        #     name: pstree to figure out what app is running
+        #     command: |
+        #       /bin/bash -c "$(curl -fsSL 
https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
+        #       brew install pstree
+        #       pstree
         - run:
             name: Creating DMG package
             command: |
diff --git a/package/create-dmg/create-dmg b/package/create-dmg/create-dmg
index 299b01f..1b4706a 100755
--- a/package/create-dmg/create-dmg
+++ b/package/create-dmg/create-dmg
@@ -352,6 +352,13 @@ EOS
 if [ $SKIP_JENKINS -eq 0 ]; then
        applescript_source | sed -e "s/WINX/$WINX/g" -e "s/WINY/$WINY/g" -e "s/WINW/$WINW/g" -e 
"s/WINH/$WINH/g" -e "s/BACKGROUND_CLAUSE/$BACKGROUND_CLAUSE/g" -e 
"s/REPOSITION_HIDDEN_FILES_CLAUSE/$REPOSITION_HIDDEN_FILES_CLAUSE/g" -e "s/ICON_SIZE/$ICON_SIZE/g" -e 
"s/TEXT_SIZE/$TEXT_SIZE/g" | perl -pe  "s/POSITION_CLAUSE/$POSITION_CLAUSE/g" | perl -pe 
"s/QL_CLAUSE/$QL_CLAUSE/g" | perl -pe "s/APPLICATION_CLAUSE/$APPLICATION_CLAUSE/g" | perl -pe 
"s/HIDING_CLAUSE/$HIDING_CLAUSE/" >"$APPLESCRIPT"
        sleep 2 # pause to workaround occasional "Can’t get disk" (-1728) issues  
+       # https://community.oracle.com/tech/developers/discussion/2452845/jdk1-7-u7-not-packaging-on-osx/p2
+       echo "Killing finder to work around applescript but on build server"
+       defaults write com.apple.Finder AppleShowAllFiles TRUE && killall Finder
+       sleep 90
+       defaults write com.apple.Finder AppleShowAllFiles FALSE && killall Finder
+       echo "Completed killing finder"
+
        echo "Running Applescript: /usr/bin/osascript \"${APPLESCRIPT}\" \"${VOLUME_NAME}\""
        (/usr/bin/osascript "${APPLESCRIPT}" "${VOLUME_NAME}" || if [[ "$?" -ne 0 ]]; then echo "Failed 
running AppleScript"; hdiutil detach "${DEV_NAME}"; exit 64; fi)
        echo "Done running the applescript..."


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]