Skip to content

Commit

Permalink
Add pkgbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
ffAudio committed Jan 4, 2022
1 parent 045baee commit dc5a853
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,33 @@ jobs:
/usr/bin/codesign --force -s "Developer ID Application" frequalizer_artefacts/Release/AU/Frequalizer.component -v
/usr/bin/codesign --force -s "Developer ID Application" frequalizer_artefacts/Release/VST3/Frequalizer.vst3 -v
- name: Package (macos)
if: runner.os == 'MacOS'
working-directory: ${{runner.workspace}}/build
shell: bash
env:
BUNDLE: com.foleysfinest.frequalizer
VERSION: 1.1.0
DIST_DIR: ${{runner.workspace}}/build/frequalizer_artefacts/Release
INSTALL_DIR: /Library/Audio/Plug-Ins
run: |
pkgbuild --identifier ${BUNDLE}.au --version ${VERSION} --component ${DIST_DIR}/AU/Frequalizer.component \
--install-location "${INSTALL_DIR}/Components" ${DIST_DIR}/Frequalizer.au.pkg
pkgbuild --identifier ${BUNDLE}.vst3 --version ${VERSION} --component ${DIST_DIR}/VST3/Frequalizer.vst3 \
--install-location "${INSTALL_DIR}/VST3" ${DIST_DIR}/Frequalizer.vst3.pkg
productbuild --synthesize \
--package "${DIST_DIR}/Frequalizer.au.pkg" \
--package "${DIST_DIR}/Frequalizer.vst3.pkg" \
distribution.xml
productbuild --distribution distribution.xml --package-path ${DIST_DIR} ${DIST_DIR}/Frequalizer.pkg
- name: 'Upload Artifact (MacOS)'
if: runner.os == 'MacOS'
uses: actions/upload-artifact@v2
with:
name: Frequalizer (MacOS)
path: ${{runner.workspace}}/build/frequalizer_artefacts/Release/Frequalizer.pkg

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ It features:

![Frequalizer Screenshot](https://raw.githubusercontent.com/ffAudio/Frequalizer/master/Resources/Screenshot.png)

[![CMake](https://github.com/ffAudio/Frequalizer/actions/workflows/workflow.yml/badge.svg)](https://github.com/ffAudio/Frequalizer/actions/workflows/workflow.yml)

Download a ready built package for Mac OSX plugins running as AU, VST, VST3 and AAX:

https://www.foleysfinest.com/plugins/frequalizer/
21 changes: 21 additions & 0 deletions SETUP_CI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Setup Github actions
====================

For my own memory this is how the github actions can be configured
to codesign and create an installer. This is mostly learned from this blog post:
https://localazy.com/blog/how-to-automatically-sign-macos-apps-using-github-actions

The code can be seen in this repositories file .github/workflows/workflow.yml

Create certificate
------------------

Create a "Developer ID Application" certificate and import it in your "Keychain Access"
Open Keychain Access and select the certificate and the private key (expand the
certificate, select both and select "Export 2 items"). Save it as .p12.

Save the p12 as base64 and copy the result in a repository secret MACOS_CERTIFICATE.
Place the password you chose in a repository secret MACOS_CERTIFICATE_PWD.



0 comments on commit dc5a853

Please sign in to comment.