NeuralAmpModelerPlugin

Plugin for Neural Amp Modeler
Log | Files | Refs | Submodules | README | LICENSE

prepare_resources-win.py (3140B)


      1 #!/usr/bin/env python3
      2 
      3 import plistlib, os, datetime, fileinput, glob, sys, string, shutil
      4 
      5 scriptpath = os.path.dirname(os.path.realpath(__file__))
      6 projectpath = os.path.abspath(os.path.join(scriptpath, os.pardir))
      7 
      8 IPLUG2_ROOT = "../../iPlug2"
      9 
     10 sys.path.insert(0, os.path.join(os.getcwd(), IPLUG2_ROOT + "/Scripts"))
     11 
     12 from parse_config import parse_config
     13 
     14 
     15 def main():
     16     print("not modifying rc file")
     17     # config = parse_config(projectpath)
     18 
     19     # rc = open(projectpath + "/resources/main.rc", "w")
     20 
     21     # rc.write("\n")
     22     # rc.write("/////////////////////////////////////////////////////////////////////////////\n")
     23     # rc.write("// Version\n")
     24     # rc.write("/////////////////////////////////////////////////////////////////////////////\n")
     25     # rc.write("VS_VERSION_INFO VERSIONINFO\n")
     26     # rc.write("FILEVERSION " + config['MAJOR_STR'] + "," + config['MINOR_STR'] + "," + config['BUGFIX_STR'] + ",0\n")
     27     # rc.write("PRODUCTVERSION " + config['MAJOR_STR'] + "," + config['MINOR_STR'] + "," + config['BUGFIX_STR'] + ",0\n")
     28     # rc.write(" FILEFLAGSMASK 0x3fL\n")
     29     # rc.write("#ifdef _DEBUG\n")
     30     # rc.write(" FILEFLAGS 0x1L\n")
     31     # rc.write("#else\n")
     32     # rc.write(" FILEFLAGS 0x0L\n")
     33     # rc.write("#endif\n")
     34     # rc.write(" FILEOS 0x40004L\n")
     35     # rc.write(" FILETYPE 0x1L\n")
     36     # rc.write(" FILESUBTYPE 0x0L\n")
     37     # rc.write("BEGIN\n")
     38     # rc.write('    BLOCK "StringFileInfo"\n')
     39     # rc.write("    BEGIN\n")
     40     # rc.write('        BLOCK "040004e4"\n')
     41     # rc.write("        BEGIN\n")
     42     # rc.write('            VALUE "FileVersion", "' + config['FULL_VER_STR'] + '"\0\n')
     43     # rc.write('            VALUE "ProductVersion", "' + config['FULL_VER_STR'] + '"0\n')
     44     # rc.write("#ifdef VST2_API\n")
     45     # rc.write('            VALUE "OriginalFilename", "' + config['BUNDLE_NAME'] + '.dll"\0\n')
     46     # rc.write("#elif defined VST3_API\n")
     47     # rc.write('            VALUE "OriginalFilename", "' + config['BUNDLE_NAME'] + '.vst3"\0\n')
     48     # rc.write("#elif defined AAX_API\n")
     49     # rc.write('            VALUE "OriginalFilename", "' + config['BUNDLE_NAME'] + '.aaxplugin"\0\n')
     50     # rc.write("#elif defined APP_API\n")
     51     # rc.write('            VALUE "OriginalFilename", "' + config['BUNDLE_NAME'] + '.exe"\0\n')
     52     # rc.write("#endif\n")
     53     # rc.write('            VALUE "FileDescription", "' + config['PLUG_NAME'] + '"\0\n')
     54     # rc.write('            VALUE "InternalName", "' + config['PLUG_NAME'] + '"\0\n')
     55     # rc.write('            VALUE "ProductName", "' + config['PLUG_NAME'] + '"\0\n')
     56     # rc.write('            VALUE "CompanyName", "' + config['PLUG_MFR'] + '"\0\n')
     57     # rc.write('            VALUE "LegalCopyright", "' + config['PLUG_COPYRIGHT_STR'] + '"\0\n')
     58     # rc.write('            VALUE "LegalTrademarks", "' + config['PLUG_TRADEMARKS'] + '"\0\n')
     59     # rc.write("        END\n")
     60     # rc.write("    END\n")
     61     # rc.write('    BLOCK "VarFileInfo"\n')
     62     # rc.write("    BEGIN\n")
     63     # rc.write('        VALUE "Translation", 0x400, 1252\n')
     64     # rc.write("    END\n")
     65     # rc.write("END\n")
     66     # rc.write("\n")
     67 
     68 
     69 if __name__ == "__main__":
     70     main()