Beispiel #1
0
def switch():
    print "\n---------------------------------"
    print u"1    移动"
    print u"2    小米"
    print u"3    阿里"
    print u"4    乐视"
    print u"5    葡萄"
    print u"6    爱游戏"
    print u"7    当贝"
    print "-1   Exit"

    print "\n---------------------------------"
    r_input = raw_input("Please make your decision: ")
    channelSwitch.switch(r_input)
def createApkSoFlash(channelIndex,channelSuffix):
    channelSwitch.switch(channelIndex)
    os.chdir(win_projectPath)
    changeAndroidFoldName(debug)
    if debug:
        os.system('lime build android -debug --no-traces')
    else:
        os.system('lime build android --no-traces')
    shutil.copyfile(win_apkPath,win_targetApkPath+"/PtSanguo-%s-%s.apk"%(channelSuffix,timestr))
    shutil.copyfile(win_soPath, win_targetSoPath+"/libApplicationMain-%s.so"%(channelSuffix))
    #葡萄版本,打一个flash
    if channelSuffix=='putaogame':
        os.system('lime build flash')
        shutil.copyfile(win_swfPath, win_targetApkPath+"/PtSanguo-%s-%s.swf"%(channelSuffix,timestr))
        print 'create flash'