Skip to content

Commit

Permalink
try to fix codesign
Browse files Browse the repository at this point in the history
  • Loading branch information
DBraun committed Apr 5, 2024
1 parent 8b5615a commit eb8712e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,13 @@ jobs:
run: |
export PATH=$pythonLocation:$PATH
python build_tdfaust.py --pythonver=3.11 --arch=${{matrix.arch}}
codesign --force --verify --verbose=2 --timestamp --options=runtime --deep --sign "Developer ID Application: David Braun (${{secrets.CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM}})" build/Release/TD-Faust.plugin
- name: Build Reverb operator
run: |
export PATH=$PWD/thirdparty/libfaust/darwin-x64/Release/bin:$PATH
python faust2td.py --dsp reverb.dsp --type "Reverb" --label "Reverb" --icon "Rev" --author "David Braun" --email "github.com/DBraun" --drop-prefix --arch=${{matrix.arch}}
codesign --force --verify --verbose=2 --timestamp --options=runtime --deep --sign "Developer ID Application: David Braun (${{secrets.CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM}})" {file_dest}'
- name: Make distribution
run: |
Expand Down
3 changes: 0 additions & 3 deletions build_tdfaust.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ def build_macos(pythonver: str, touchdesigner_app: str, arch: str=None):
run_command(cmake_command)
run_command(["cmake", "--build", "build", "--config", "Release"])
os.system('mv build/Release/TD-Faust.plugin Plugins')
if 'CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM' in os.environ:
CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM = os.environ['CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM']
subprocess.call(shlex.split(f'codesign --force --verify --verbose=2 --timestamp --options=runtime --deep --sign "Developer ID Application: David Braun ({CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM})" build/Release/TD-Faust.plugin'))

if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Build TD-Faust plugin for Windows or macOS.")
Expand Down
4 changes: 0 additions & 4 deletions faust2td.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,5 @@ def add_toggle(item) -> str:
if platform.system() == 'Darwin':
file_dest = f'"{build_dir}/Release/{op_type}.plugin"'
subprocess.call(shlex.split(f'cp -r {file_dest} Plugins'))
if 'CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM' in os.environ:
CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM = os.environ['CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM']
subprocess.call(shlex.split(f'codesign --force --verify --verbose=2 --timestamp --options=runtime --deep --sign "Developer ID Application: David Braun ({CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM})" {file_dest}'))


print('All done!')

0 comments on commit eb8712e

Please sign in to comment.