create.py 551 B

123456789101112131415161718
  1. import subprocess
  2. import pathlib
  3. import log
  4. import files
  5. from compile.ios.assembler import compileiOSConfig
  6. def createPackage(formatData, filename, outputPath, fontPath, manifest):
  7. # iOS Configuration Profile compilation
  8. # (must come after everything else)
  9. log.out(f'Compiling iOS Configuration Profile...')
  10. configString = compileiOSConfig(manifest, fontPath, outputPath)
  11. configPath = outputPath / (f"{filename}.mobileconfig")
  12. files.writeFile(configPath, configString, 'Could not write iOS Configuration Profile to file')