Commit ff368b8
committed
the dmg generation below fails on headless builds because you have to click
a button in a dialog granting finder some permissions from the apple script.
This commit adds adds 'sudo' before that to see if it fixes the timeout
2020-06-21T21:33:04.0465250Z + ./create-osx-dmg.sh helloWorld.app
2020-06-21T21:33:04.1139800Z ++ basename helloWorld.app .app
2020-06-21T21:33:04.1237210Z + APP_NAME=helloWorld
2020-06-21T21:33:04.1237600Z + DMG_BACKGROUND_IMG=background.png
2020-06-21T21:33:04.1237870Z + SYMLINKS_SCRIPT=MakeSymlinks
2020-06-21T21:33:04.1238050Z + VOL_NAME=helloWorld
2020-06-21T21:33:04.1238990Z + DMG_TEMP=helloWorld-temp.dmg
2020-06-21T21:33:04.1239110Z + DMG=helloWorld.dmg
2020-06-21T21:33:04.1239200Z + STAGING_DIR=_install
2020-06-21T21:33:04.1239800Z + rm -rf _install helloWorld.dmg helloWorld-temp.dmg
2020-06-21T21:33:04.1261950Z + echo '-- Copy application into install dir'
2020-06-21T21:33:04.1262460Z -- Copy application into install dir
2020-06-21T21:33:04.1262630Z + mkdir _install
2020-06-21T21:33:04.1284840Z + cp -a helloWorld.app _install
2020-06-21T21:33:07.2064820Z + ln -s /Applications _install/Applications
2020-06-21T21:33:07.2089350Z + mkdir _install/.background
2020-06-21T21:33:07.2110750Z + cp data/background.png _install/.background/
2020-06-21T21:33:07.2135020Z + cp data/MakeSymlinks _install/MakeSymlinks
2020-06-21T21:33:07.2158930Z + echo '-- Create volume'
2020-06-21T21:33:07.2159590Z -- Create volume
2020-06-21T21:33:07.2164500Z + du -sm _install
2020-06-21T21:33:07.2167440Z + awk '{print $1}'
2020-06-21T21:33:07.2593940Z ++ cat _size
2020-06-21T21:33:07.2618350Z + expr 192 + 99
2020-06-21T21:33:07.2663180Z ++ cat _size
2020-06-21T21:33:07.2683930Z + hdiutil create -srcfolder _install -volname helloWorld -fs HFS+ -format UDRW -size 291M helloWorld-temp.dmg
2020-06-21T21:33:54.3762230Z created: /Users/runner/runners/2.263.0/work/cross-platform-python-gui/cross-platform-python-gui/buildozer/.buildozer/osx/platform/kivy-sdk-packager-master/osx/helloWorld-temp.dmg
2020-06-21T21:33:54.3769670Z + rm _size
2020-06-21T21:33:54.3807540Z + hdiutil unmount /Volumes/helloWorld
2020-06-21T21:33:54.3987740Z hdiutil: unmount: "/Volumes/helloWorld" failed to unmount due to error 2.
2020-06-21T21:33:54.4155530Z hdiutil: unmount failed - No such file or directory
2020-06-21T21:33:54.4162380Z + true
2020-06-21T21:33:54.4180670Z ++ hdiutil attach -readwrite -noverify helloWorld-temp.dmg
2020-06-21T21:33:54.4187630Z ++ sed 1q
2020-06-21T21:33:54.4190020Z ++ egrep '^/dev/'
2020-06-21T21:33:54.4190900Z ++ awk '{print $1}'
2020-06-21T21:33:54.6611490Z + DEVICE=/dev/disk2
2020-06-21T21:33:54.6630830Z + sleep 2
2020-06-21T21:33:56.6954680Z + echo '
2020-06-21T21:33:56.6954980Z tell application "Finder"
2020-06-21T21:33:56.6955090Z tell disk "helloWorld"
2020-06-21T21:33:56.6955210Z open
2020-06-21T21:33:56.6955310Z set current view of container window to icon view
2020-06-21T21:33:56.6955430Z set toolbar visible of container window to false
2020-06-21T21:33:56.6955530Z set statusbar visible of container window to false
2020-06-21T21:33:56.6955630Z delay 1
2020-06-21T21:33:56.6955740Z set the bounds of container window to {100, 100, 650, 501}
2020-06-21T21:33:56.6956460Z delay 1
2020-06-21T21:33:56.6956610Z set viewOptions to the icon view options of container window
2020-06-21T21:33:56.6956730Z set arrangement of viewOptions to not arranged
2020-06-21T21:33:56.6956830Z set icon size of viewOptions to 128
2020-06-21T21:33:56.6956940Z set background picture of viewOptions to file ".background:background.png"
2020-06-21T21:33:56.6957050Z set position of item "helloWorld.app" of container window to {160, 265}
2020-06-21T21:33:56.6957180Z set position of item "Applications" of container window to {384, 265}
2020-06-21T21:33:56.6957650Z close
2020-06-21T21:33:56.6957750Z open
2020-06-21T21:33:56.6957850Z update without registering applications
2020-06-21T21:33:56.6957950Z delay 2
2020-06-21T21:33:56.6958420Z end tell
2020-06-21T21:33:56.6958760Z end tell
2020-06-21T21:33:56.6959290Z '
2020-06-21T21:33:56.6959400Z + osascript
2020-06-21T21:35:58.1361770Z 85:134: execution error: Finder got an error: AppleEvent timed out. (-1712)
...And it also copies-in the .app so we can at least get *something* in the artifacts/releases to test1 parent 9906a40 commit ff368b8
1 file changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
245 | 252 | | |
246 | | - | |
| 253 | + | |
247 | 254 | | |
248 | 255 | | |
249 | | - | |
| 256 | + | |
250 | 257 | | |
251 | | - | |
252 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
253 | 261 | | |
254 | 262 | | |
255 | 263 | | |
| |||
0 commit comments