Travis-ci macOS builds - avoid hungup

[skip AppVeyor]
Running GoldenCheetah from the mounted dmg doesn't terminate
soon enough, lets avoid this for better diagnosis.
[publish binaries]
This commit is contained in:
Alejandro Martinez
2023-09-30 10:17:26 -03:00
parent 0d382dc3f2
commit a6bf25d062

View File

@@ -2,7 +2,8 @@
set -ev
cd src
echo "Checking GoldenCheetah.app can execute"
GoldenCheetah.app/Contents/MacOS/GoldenCheetah --version
GoldenCheetah.app/Contents/MacOS/GoldenCheetah --version 2>GCversionMacOS.txt
cat GCversionMacOS.txt
echo "About to create dmg file and fix up"
mkdir GoldenCheetah.app/Contents/Frameworks
@@ -57,9 +58,10 @@ export FINAL_NAME=GoldenCheetah_v3.6-DEV_x64.dmg
mv GoldenCheetah.dmg $FINAL_NAME
ls -l $FINAL_NAME
echo "Mounting dmg file and testing it can execute"
hdiutil mount $FINAL_NAME
/Volumes/GoldenCheetah/GoldenCheetah.app/Contents/MacOS/GoldenCheetah --version 2>GCversionMacOS.txt
#echo "Mounting dmg file and testing it can execute"
#hdiutil mount $FINAL_NAME
#/Volumes/GoldenCheetah/GoldenCheetah.app/Contents/MacOS/GoldenCheetah --version 2>GCversionMacOS.txt
# Add last commit message and SHA256 to txt file
git log -1 >> GCversionMacOS.txt
echo "SHA256 hash of $FINAL_NAME:" >> GCversionMacOS.txt
shasum -a 256 $FINAL_NAME | cut -f 1 -d ' ' >> GCversionMacOS.txt