zkmkarlsruhe / mac-dist-helper Goto Github PK
View Code? Open in Web Editor NEWHelper makefile for exporting & packaging macOS binaries for distribution
License: Other
Helper makefile for exporting & packaging macOS binaries for distribution
License: Other
Hi there,
Thanks a lot for this project. I'm new to the world of Apple signing and notarisation and is a very helpful resource.
I've created an OpenFrameworks app which utilises ffmpeg. I include a pre-built ffmpeg binary in the app's data folder.
I have mac.dist.include = bin/data
included in my Makefile. Initially the notarisation failed as ffmpeg hadn't been signed. So I tried to include it using mac.dist.progs
/mac.dist.libs
in the Makefile, but couldn't figure out the correct way to get it copied across from my bin/data folder.
In my Makefile I added mac.dist.libs = bin/data/ffmpeg
but at the codesign stage of make app dist-dmg
I get the error:
===== codesign
codesign --sign "Developer ID Application: <My Developer ID>" --force --options runtime --timestamp build/dist/MyOFApp-1.0.0/bin/data/ffmpeg
build/dist/MyOFApp-1.0.0/bin/data/ffmpeg: No such file or directory
If I instead try to include mac.dist.libs = data/ffmpeg
then I get:
===== distdir
mkdir -p build/dist/MyOFApp-1.0.0
rsync -a --exclude ".*" \
MyOFApp.app data/ffmpeg bin/data build/dist/MyOFApp-1.0.0
rsync: link_stat "<path to app>/MyOFApp/data/ffmpeg" failed: No such file or directory (2)
If I create a folder at the root of my project called data
containing ffmpeg then it gets copied over correctly and the signing and notarization works.
I can see that the issue is just where the file gets copied to and from but from reading through the makefile I can't figure it out. Do I need to override mac.dist.dir
or mac.dist.subdir
?
Is there a suggested pattern for including files from bin/data to be signed?
Any pointers appreciated
Many thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.