Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
DBraun committed Apr 4, 2024
1 parent 5001ee9 commit 72d3fe4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
env:
CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM: ${{ secrets.CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM }}
MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
MACOS_CERTIFICATE_PASSWORD: ${{ secrets.MACOS_CERTIFICATE_PASSWORD }}
name: Compile
on:
pull_request: {}
Expand Down Expand Up @@ -83,6 +85,15 @@ jobs:
with:
submodules: true

- name: Install Certificate
run: |
echo "$MACOS_CERTIFICATE" | base64 --decode > certificate.p12
security create-keychain -p "" build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p "" build.keychain
security import certificate.p12 -k build.keychain -P "$MACOS_CERTIFICATE_PASSWORD" -T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "" build.keychain
- name: Setup Python
uses: actions/setup-python@v5
with:
Expand Down
5 changes: 3 additions & 2 deletions faust2td.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,11 @@ def add_toggle(item) -> str:

# execute CMake and build
build_dir = 'build_faust2touchdesigner'
subprocess.call(shlex.split(f'cmake faust2touchdesigner -{build_dir} -DOP_TYPE={op_type} -DAUTHOR_NAME="{author_name}" -DLIBFAUST_DIR="{libfaust_dir}" {cmake_osx_deployment_target} {cmake_build_arch}'))
generator = " -G Xcode " if platform.system() == 'Darwin' else ''
subprocess.call(shlex.split(f'cmake faust2touchdesigner -B{build_dir} {generator} -DOP_TYPE={op_type} -DAUTHOR_NAME="{author_name}" -DLIBFAUST_DIR="{libfaust_dir}" {cmake_osx_deployment_target} {cmake_build_arch}'))
subprocess.call(shlex.split(f'cmake --build {build_dir} --config Release'))

if platform.system() == 'Darwin':
subprocess.call(shlex.split(f'cp -r {build_dir}/{op_type}.plugin Plugins'))
subprocess.call(shlex.split(f'cp -r {build_dir}/Release/{op_type}.plugin Plugins'))

print('All done!')

0 comments on commit 72d3fe4

Please sign in to comment.