Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DBraun committed Apr 5, 2024
1 parent 53a935c commit 8173016
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 188 deletions.
4 changes: 3 additions & 1 deletion build_tdfaust.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import platform
import subprocess
import shlex


def run_command(command, shell=False):
Expand Down Expand Up @@ -66,7 +67,8 @@ def build_macos(pythonver: str, touchdesigner_app: str, arch: str=None):
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:
os.system(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')
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
5 changes: 3 additions & 2 deletions faust2td.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def add_toggle(item) -> str:
assert isdir(libfaust_dir), "Have you run `sh download_libfaust.sh`?"

# execute CMake and build
build_dir = 'build_faust2touchdesigner'
build_dir = f'build_{op_type}'
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'))
Expand All @@ -308,7 +308,8 @@ def add_toggle(item) -> str:
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:
os.system(f'codesign --force --verify --verbose=2 --timestamp --options=runtime --deep --sign "Developer ID Application: David Braun ($CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM)" {file_dest}')
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!')
55 changes: 0 additions & 55 deletions install_script/install_certifi.py

This file was deleted.

130 changes: 0 additions & 130 deletions install_script/macos_install_python.py

This file was deleted.

0 comments on commit 8173016

Please sign in to comment.