alamminsalo / orion

Cross platform Twitch.tv client
GNU General Public License v3.0
314 stars 60 forks source link

Travis Mac build config #184

Closed rakslice closed 7 years ago

rakslice commented 7 years ago

Here's a Travis build config for Mac, and deploy_mac.sh/fixlibs.sh changes to go along with it. Since Travis doesn't have its own artifact archiving, I've included deploy sections in .travis.yml for Amazon S3 and GitHub Releases (tags only), which you supply with credentials using Travis environment var settings.

Inline comments in .travis.yml explain what is necessary to set up on the GitHub and AWS sides.

This takes whatever most recent Qt 5.9 build is in homebrew.

This does a build that uses Qt Multimedia.

Both of these deploy sections have all_branches set for testing, but you can remove that to default to master only, or set other specific branch with branch: (see https://docs.travis-ci.com/user/deployment/#Conditional-Releases-with-on%3A)

It seems like macdeployqt is adding unnecessary plugins, although this does not seem to cause any functional problems.

rakslice commented 7 years ago

I didn't notice @SCdF's PR https://github.com/alamminsalo/orion/pull/182 until now; I'll take a look at what it makes sense to combine

rakslice commented 7 years ago

Ah, https://github.com/alamminsalo/orion/pull/182 was just build instructions and a bump of the version in the mpv path for Mac. I didn't try to do an mpv build on Mac, I guess I could sort out how to include an mpv framework in the build so the user's system doesn't need its own mpv install via homebrew.

alamminsalo commented 7 years ago

I think the mpv lib path could be removed, and setup the library to be included in PATH instead