Adapt build script for Mac
See original GitHub issueMacos’ foundation is some BSD and hence find
does not have -printf
flag
I had to install findutils
brew install findutils
and set
export FIND=gfind
and patch deployment/deploy.sh
diff --git a/deployment/deploy.sh b/deployment/deploy.sh
index e160f3c..7e01d5b 100755
--- a/deployment/deploy.sh
+++ b/deployment/deploy.sh
@@ -5,6 +5,7 @@ CONTAINER_NAME=deploytest
CQPARTS_ROOT=$(git rev-parse --show-toplevel)
+FIND=${FIND:-find}
function show_help() {
[ "$@" ] && echo "$@"
@@ -48,12 +49,12 @@ Arguments:
Libraries Available for Deployment: {lib}
EOF
-find ../src -maxdepth 1 -type d -name "cqparts*" -printf " %P\n" | sort | grep -vP '^(.*\.egg-info|\s*)$'
+$FIND ../src -maxdepth 1 -type d -name "cqparts*" -printf " %P\n" | sort | grep -vP '^(.*\.egg-info|\s*)$'
cat << EOF
Environments: {env}
EOF
-find env -maxdepth 1 -type d -printf " %P\n" | sort | grep -vP '^\s*$'
+$FIND env -maxdepth 1 -type d -printf " %P\n" | sort | grep -vP '^\s*$'
}
Not sure you’re interested in supporting Mac for builds (and I haven’t tested the whole docker stuff). However, maybe some macos user might find it helpful
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Porting Your macOS Apps to Apple Silicon
Overview. Port your existing macOS app to Apple silicon by creating a universal binary and modifying your code to handle architectural differences.
Read more >Guide for Apple IT: Introduction to Mac Shell Scripts
Instead of composing scripts from scratch, you can find a working script that does something close to what you want and then adapt...
Read more >Mac Adapt Build Issues (permissions part of it, I suspect)
Building into my user folder, after building none of the tools I'm using will let me write / save. Says I don't have...
Read more >Building macOS apps with Flutter
This page discusses considerations unique to building macOS apps with Flutter, including shell integration and distribution of macOS apps through the Apple ...
Read more >Formula Cookbook - Homebrew Documentation
Documentation for the missing package manager for macOS.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Would it be an option to just create and then keep the latest
setup.py
in the repo? Then one could change some python code in his own fork andpip install
it without bothering about thedeploy.sh
script@bernhard-42 : I think that’s a good option. I’ve added that to the list of tasks in #79