Debian Codegraph @

src/Resources/mac/MakeAppDmgQt6.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 set -ev
3
4 echoscip-shell system . . echo. "About to create dmg file and fix up"
5 mkdirscip-shell system . . mkdir. GoldenCheetah.app/Contents/Frameworks
6
7 # This is a hack to include libicudata.*.dylib, not handled by macdployqt[fix]
8 cpscip-shell system . . cp. /usr/local/opt/icu4c/lib/libicudata.*.dylib GoldenCheetah.app/Contents/Frameworks
9
10 # Copy python framework and change permissions to fix paths
11 cpscip-shell system . . cp. -R /Library/Frameworks/Python.frameworkscip-shell filesystem . . `/Library/Frameworks/Python.framework`. GoldenCheetah.app/Contents/Frameworks
12 chmodscip-shell system . . chmod. -R +w GoldenCheetah.app/Contents/Frameworks
13 # Update deployed Python framework path
14 install_name_tool -id @executable_path/../Frameworks/Python.framework/Versions/3.7/Python ./GoldenCheetah.app/Contents/Frameworks/Python.framework/Versions/3.7/Python
15 # Update GoldenCheetah binary to reference deployed lib
16 install_name_tool -change /Library/Frameworks/Python.framework/Versions/3.7/Pythonscip-shell filesystem . . `/Library/Frameworks/Python.framework/Versions/3.7/Python`. @executable_path/../Frameworks/Python.framework/Versions/3.7/Python ./GoldenCheetah.app/Contents/MacOS/GoldenCheetah
17 # Update Python binary to reference deployed lib instead of the Cellar one
18 OLD_PATH=`otool -L GoldenCheetah.app/Contents/Frameworks/Python.framework/Versions/3.7/bin/python3.7 | grepscip-shell system . . grep. "Library" | cutscip-shell system . . cut. -f 1 -d ' '`
19 echoscip-shell system . . echo. $OLD_PATH
20 install_name_tool -change $OLD_PATH "@executable_path/../Python" GoldenCheetah.app/Contents/Frameworks/Python.framework/Versions/3.7/bin/python3.7
21 install_name_tool -change $OLD_PATH "@executable_path/../../../../Python" GoldenCheetah.app/Contents/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python
22 # Add mandatory Python dependencies
23 rmscip-shell system . . rm. -r GoldenCheetah.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
24 cpscip-shell system . . cp. -R ../../site-packages GoldenCheetah.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7
25
26 # Initial deployment using macdeployqt
27 macdeployqt GoldenCheetah.app -verbose=2 -executable=GoldenCheetah.app/Contents/MacOS/GoldenCheetah
28
29 # Final deployment to generate dmg
30 macdeployqt GoldenCheetah.app -verbose=2 -fs=hfs+ -dmg
31
32 echoscip-shell system . . echo. "Renaming dmg file to branch and build number ready for deploy"
33 export FINAL_NAME=GoldenCheetah_v3.7_x64Qt6.dmg
34 mvscip-shell system . . mv. GoldenCheetah.dmg $FINAL_NAME
35 lsscip-shell system . . ls. -l $FINAL_NAME
36
37 # Add version information, last commit message and SHA256 to txt file
38 echoscip-shell system . . echo. "Generating companion txt file"
39 GoldenCheetah.app/Contents/MacOS/GoldenCheetah --version 2>GCversionMacOSQt6.txt
40 gitscip-shell system . . git. log -1 >> GCversionMacOSQt6.txt
41 echoscip-shell system . . echo. "SHA256 hash of $FINAL_NAME:" >> GCversionMacOSQt6.txt
42 shasumscip-shell system . . shasum. -a 256 $FINAL_NAME | cutscip-shell system . . cut. -f 1 -d ' ' >> GCversionMacOSQt6.txt
43 catscip-shell system . . cat. GCversionMacOSQt6.txt