예제 #1
0
def bop_main(bop_dir, mcp_dir):
    sys.path.append(mcp_dir)
    from runtime.reobfuscate import reobfuscate
    from bop import copytree, reset_logger, recompile, copyreobfuscatedfiles, unzipandcopybtw, cleanup
    from update_binary_patches import updatepatches
    
    print '=============================== Build Biomes O Plenty Start ====================================='

    print '-=Copying BOP Files=-'
    copytree(os.path.join(bop_dir, 'src'), os.path.join(mcp_dir, 'src')) 
    os.chdir(mcp_dir)
    reset_logger()
    print '-=Recompiling=-'
    recompile(None, False, False)
    reset_logger()
    print '-=Reobfuscating=-'
    reobfuscate(None, False, False, False, False, False, False)
    reset_logger()
    print '-=Copying Reobfuscated Files=-'
    copyreobfuscatedfiles(bop_dir, mcp_dir)
    #print 'Unzipping BTW & Copying Files'
    #unzipandcopybtw(bop_dir)
    #print 'Creating Binary Patches'
    #updatepatches()
    print '-=Cleaning Up=-'
    cleanup(bop_dir, mcp_dir)

    print '=============================== Build Biomes O Plenty Finished ================================='
예제 #2
0
def bop_main(bop_dir, mcp_dir):
    sys.path.append(mcp_dir)
    from runtime.updatemd5 import updatemd5
    from bop import decompile, apply_initial_patches, apply_bop_patches, reset_logger, copytree

    print '=============================== Biomes O Plenty Setup Start ====================================='

    print '-=Decompiling=-'
    decompile(mcp_dir, bop_dir)
    print ' '
    print '-=Applying patches=-'
    apply_initial_patches(mcp_dir, bop_dir, os.path.join(mcp_dir, 'src'), True)
    os.chdir(mcp_dir)
    reset_logger()
    print ''
    print '-=Update MD5=-'
    updatemd5(None, True, False, False)
    reset_logger()
    print ''
    print '-=Copy Src=-'
    copytree(os.path.join(mcp_dir, 'src'), os.path.join(mcp_dir, 'src_base'))
    os.chdir(bop_dir)
    print ''
    print '-=Apply BoP Patches=-'
    apply_bop_patches(mcp_dir, bop_dir, os.path.join(mcp_dir, 'src'), True)
    shutil.rmtree(os.path.join(mcp_dir, 'eclipse'))
    copytree(os.path.join(bop_dir, 'tmpworkspace'),
             os.path.join(mcp_dir, 'eclipse'))
    print '=============================== Biomes O Plenty Setup Finished ================================='
예제 #3
0
def bop_main(bop_dir, mcp_dir):
    sys.path.append(mcp_dir)
    from runtime.updatemd5 import updatemd5
    from bop import decompile, apply_initial_patches, apply_bop_patches, reset_logger, copytree
    
    print '=============================== Biomes O Plenty Setup Start ====================================='

    print '-=Decompiling=-'
    decompile(mcp_dir, bop_dir)
    print ' '
    print '-=Applying patches=-'
    apply_initial_patches(mcp_dir, bop_dir, os.path.join(mcp_dir, 'src'), True)
    os.chdir(mcp_dir)
    reset_logger()
    print ''
    print '-=Update MD5=-'
    updatemd5(None, True, False, False)
    reset_logger()
    print ''
    print '-=Copy Src=-'
    copytree(os.path.join(mcp_dir, 'src'), os.path.join(mcp_dir, 'src_base')) 
    os.chdir(bop_dir)
    print ''
    print '-=Apply BoP Patches=-'
    apply_bop_patches(mcp_dir, bop_dir, os.path.join(mcp_dir, 'src'), True)  
    shutil.rmtree(os.path.join(mcp_dir, 'eclipse'))
    copytree(os.path.join(bop_dir, 'tmpworkspace'), os.path.join(mcp_dir, 'eclipse')) 
    print '=============================== Biomes O Plenty Setup Finished ================================='
예제 #4
0
def bop_main(bop_dir, mcp_dir):
    sys.path.append(mcp_dir)
    from runtime.reobfuscate import reobfuscate
    from bop import copytree, reset_logger, recompile, copyreobfuscatedfiles, unzipandcopybtw, cleanup
    from update_binary_patches import updatepatches

    print '=============================== Build Biomes O Plenty Start ====================================='

    print '-=Copying BOP Files=-'
    copytree(os.path.join(bop_dir, 'src'), os.path.join(mcp_dir, 'src'))
    os.chdir(mcp_dir)
    reset_logger()
    print '-=Recompiling=-'
    recompile(None, False, False)
    reset_logger()
    print '-=Reobfuscating=-'
    reobfuscate(None, False, False, False, False, False, False)
    reset_logger()
    print '-=Copying Reobfuscated Files=-'
    copyreobfuscatedfiles(bop_dir, mcp_dir)
    #print 'Unzipping BTW & Copying Files'
    #unzipandcopybtw(bop_dir)
    #print 'Creating Binary Patches'
    #updatepatches()
    print '-=Cleaning Up=-'
    cleanup(bop_dir, mcp_dir)

    print '=============================== Build Biomes O Plenty Finished ================================='
예제 #5
0
def bop_main(bop_dir, mcp_dir):
    sys.path.append(mcp_dir)
    from runtime.reobfuscate import reobfuscate
    from bop import copytree, reset_logger, recompile, copyreobfuscatedfiles, unzipandcopybtw, movetodist, packagedist, cleanup
    from update_binary_patches import updatepatches

    print '=============================== Build Biomes O Plenty Start ====================================='

    print 'Copying BOP Files'
    copytree(os.path.join(bop_dir, 'src', 'minecraft'),
             os.path.join(mcp_dir, 'src', 'minecraft'))
    copytree(os.path.join(bop_dir, 'src', 'common'),
             os.path.join(mcp_dir, 'src', 'minecraft'))
    copytree(os.path.join(bop_dir, 'src', 'minecraft_server'),
             os.path.join(mcp_dir, 'src', 'minecraft_server'))
    copytree(os.path.join(bop_dir, 'src', 'common'),
             os.path.join(mcp_dir, 'src', 'minecraft_server'))

    print 'Copying BO Files'
    copytree(os.path.join(bop_dir, 'src_ores', 'minecraft'),
             os.path.join(mcp_dir, 'src', 'minecraft'))
    copytree(os.path.join(bop_dir, 'src_ores', 'common'),
             os.path.join(mcp_dir, 'src', 'minecraft'))
    copytree(os.path.join(bop_dir, 'src_ores', 'minecraft_server'),
             os.path.join(mcp_dir, 'src', 'minecraft_server'))
    copytree(os.path.join(bop_dir, 'src_ores', 'common'),
             os.path.join(mcp_dir, 'src', 'minecraft_server'))

    os.chdir(mcp_dir)
    reset_logger()
    print 'Recompiling'
    recompile(None, False, False)
    reset_logger()
    print 'Reobfuscating'
    reobfuscate(None, False, False, False, False, False, False)
    reset_logger()
    print 'Copying Reobfuscated Files'
    copyreobfuscatedfiles(bop_dir, mcp_dir)
    print 'Unzipping BTW & Copying Files'
    unzipandcopybtw(bop_dir)
    print 'Creating Binary Patches'
    updatepatches()
    print 'Moving Files To Temporary Dist Folder'
    movetodist(bop_dir)
    print 'Packaging Files'
    packagedist(bop_dir)
    print 'Cleaning Up'
    cleanup(bop_dir, mcp_dir)

    print '=============================== Build Biomes O Plenty Finished ================================='
예제 #6
0
def bop_main(bop_dir, mcp_dir):
    sys.path.append(mcp_dir)
    from runtime.reobfuscate import reobfuscate
    from bop import copytree, reset_logger, recompile, copyreobfuscatedfiles, unzipandcopybtw, movetodist, packagedist, cleanup
    from update_binary_patches import updatepatches
    
    print '=============================== Build Biomes O Plenty Start ====================================='

    print 'Copying BOP Files'
    copytree(os.path.join(bop_dir, 'src', 'minecraft'), os.path.join(mcp_dir, 'src', 'minecraft'))
    copytree(os.path.join(bop_dir, 'src', 'common'), os.path.join(mcp_dir, 'src', 'minecraft')) 
    copytree(os.path.join(bop_dir, 'src', 'minecraft_server'), os.path.join(mcp_dir, 'src', 'minecraft_server')) 
    copytree(os.path.join(bop_dir, 'src', 'common'), os.path.join(mcp_dir, 'src', 'minecraft_server'))
    
    print 'Copying BO Files'
    copytree(os.path.join(bop_dir, 'src_ores', 'minecraft'), os.path.join(mcp_dir, 'src', 'minecraft'))
    copytree(os.path.join(bop_dir, 'src_ores', 'common'), os.path.join(mcp_dir, 'src', 'minecraft'))
    copytree(os.path.join(bop_dir, 'src_ores', 'minecraft_server'), os.path.join(mcp_dir, 'src', 'minecraft_server'))
    copytree(os.path.join(bop_dir, 'src_ores', 'common'), os.path.join(mcp_dir, 'src', 'minecraft_server'))

    os.chdir(mcp_dir)
    reset_logger()
    print 'Recompiling'
    recompile(None, False, False)
    reset_logger()
    print 'Reobfuscating'
    reobfuscate(None, False, False, False, False, False, False)
    reset_logger()
    print 'Copying Reobfuscated Files'
    copyreobfuscatedfiles(bop_dir, mcp_dir)
    print 'Unzipping BTW & Copying Files'
    unzipandcopybtw(bop_dir)
    print 'Creating Binary Patches'
    updatepatches()
    print 'Moving Files To Temporary Dist Folder'
    movetodist(bop_dir)
    print 'Packaging Files'
    packagedist(bop_dir)
    print 'Cleaning Up'
    cleanup(bop_dir, mcp_dir)

    print '=============================== Build Biomes O Plenty Finished ================================='