Ejemplo n.º 1
0
srcIconFiles = ["/AppIcon57x57.png", "/[email protected]", "/AppIcon72x72.png", "/[email protected]"]
trgIconFiles = ["/SimpleSlots/artwork/icon.png", "/SimpleSlots/artwork/[email protected]", "/SimpleSlots/artwork/icon-ipad.png", "/SimpleSlots/artwork/[email protected]"]

for i in range(0, len(srcIconFiles)):
    reskinutils.copyFilesByName(srcDir + srcIconFiles[i], trgDir + trgIconFiles[i])
reskinutils.checkCopy(4)
print("Done.")

# END OF FILES REPLACEMENT

# CODE REPLACEMENT
# ----------------
# replace leaderboard
print("Replacing leaderboard ID...")
reskinutils.replaceInFile(configFile, "<enter_leaderboard_id_here>", leaderboard)
print("Done.")

# replace IAP
print("Replacing IAP ID...")
reskinutils.replaceInFile(configFile, "<enter_iap_id_here>", iap)
print("Done.")

# replace coins in name
print("Replacing coins in game to " + str(coins))
reskinutils.replaceInFile(configFile, "<enter_coins_here>", str(coins))
print("Done.")

# replace server ID
print("Replacing server ID...")
reskinutils.replaceInFile(configFile, "<enter_server_id_here>", serverID)
Ejemplo n.º 2
0
"mainscene/btn_p1_u.png", "mainscene/btn_p2_u.png", "mainscene/btn_p3_u.png", "mainscene/btn_p4_u.png", "mainscene/btn_p1_d.png", "mainscene/btn_p2_d.png",
"mainscene/btn_p3_d.png", "mainscene/btn_p4_d.png", "mainscene/mainback.png", "mainscene/menuback.png"]
# gamescene: gameback1.png, gameback2.png, people1-4.png
# mainscene: btn_p1-4_d,u.png, mainback.png, menuback.png
for i in range(0, len(filesToCopy)):
	reskinutils.copyFilesByName(srcDir + dirToCopy + filesToCopy[i], trgDir + dirToCopy + filesToCopy[i])
reskinutils.checkCopy(len(filesToCopy))
print("Done.")

# END OF FILES REPLACEMENT

# CODE REPLACEMENT
# ----------------
# replace IAP
print("Replacing IAP ID...")
reskinutils.replaceInFile(configFile, "<enter_iap_id_here>", iap)
print("Done.")

# replace server ID
print("Replacing server ID...")
reskinutils.replaceInFile(configFile, "<enter_server_id_here>", serverID)
print("Done.")

# replace bundleID
print("Replacing bundle ID...")
reskinutils.replaceInFile(infoPlistFile, "enter_bundle_id_here", bundle)
print("Done.")

# replace game name
print("Replacing game name...")
reskinutils.replaceInFile(infoPlistFile, "enter_game_name_here", name)
Ejemplo n.º 3
0
    "/SimpleSlots/artwork/[email protected]"
]

for i in range(0, len(srcIconFiles)):
    reskinutils.copyFilesByName(srcDir + srcIconFiles[i],
                                trgDir + trgIconFiles[i])
reskinutils.checkCopy(4)
print("Done.")

# END OF FILES REPLACEMENT

# CODE REPLACEMENT
# ----------------
# replace leaderboard
print("Replacing leaderboard ID...")
reskinutils.replaceInFile(configFile, "<enter_leaderboard_id_here>",
                          leaderboard)
print("Done.")

# replace IAP
print("Replacing IAP ID...")
reskinutils.replaceInFile(configFile, "<enter_iap_id_here>", iap)
print("Done.")

# replace coins in name
print("Replacing coins in game to " + str(coins))
reskinutils.replaceInFile(configFile, "<enter_coins_here>", str(coins))
print("Done.")

# replace server ID
print("Replacing server ID...")
reskinutils.replaceInFile(configFile, "<enter_server_id_here>", serverID)
Ejemplo n.º 4
0
]
# gamescene: gameback1.png, gameback2.png, people1-4.png
# mainscene: btn_p1-4_d,u.png, mainback.png, menuback.png
for i in range(0, len(filesToCopy)):
    reskinutils.copyFilesByName(srcDir + dirToCopy + filesToCopy[i],
                                trgDir + dirToCopy + filesToCopy[i])
reskinutils.checkCopy(len(filesToCopy))
print("Done.")

# END OF FILES REPLACEMENT

# CODE REPLACEMENT
# ----------------
# replace IAP
print("Replacing IAP ID...")
reskinutils.replaceInFile(configFile, "<enter_iap_id_here>", iap)
print("Done.")

# replace server ID
print("Replacing server ID...")
reskinutils.replaceInFile(configFile, "<enter_server_id_here>", serverID)
print("Done.")

# replace bundleID
print("Replacing bundle ID...")
reskinutils.replaceInFile(infoPlistFile, "enter_bundle_id_here", bundle)
print("Done.")

# replace game name
print("Replacing game name...")
reskinutils.replaceInFile(infoPlistFile, "enter_game_name_here", name)
Ejemplo n.º 5
0
    iconsDict = [
        "drawable-hdpi/icon.png", "drawable-mdpi/icon.png",
        "drawable-xhdpi/icon.png"
    ]
    for i in range(0, len(iconsDict)):
        reskinutils.copyFilesByGlob(
            srcDir + "/AppIcon" + sizesDict[i] + ".png",
            trgRes + "/" + iconsDict[i])
    reskinutils.checkCopy(len(iconsDict))
    print("Done.")

    # CODE REPLACEMENT
    # ----------------
    # replace game name
    print("Replacing game name...")
    reskinutils.replaceInFile(stringsFile, "enter_game_name_here", name)
    reskinutils.replaceInFile(receiverFile, "enter_game_name_here", name)
    print("Done.")

    # replace bundleID
    print("Replacing bundle ID...")
    reskinutils.replaceInFile(androidManifestFile, "enter_bundle_id_here",
                              bundle)
    reskinutils.replaceInFile(androidManifestBinFile, "enter_bundle_id_here",
                              bundle)
    reskinutils.replaceInFileByGlob(javaFiles, "enter_bundle_id_here", bundle)
    reskinutils.replaceInFileByGlob(javaFiles2, "enter_bundle_id_here", bundle)
    print("Done.")

    # replace server ID
    print("Replacing server ID...")
Ejemplo n.º 6
0
    reskinutils.checkCopy(len(reelsDict))
    print("Done.")

    # replace icons
    print("Replacing icons...")
    iconsDict = ["drawable-hdpi/icon.png", "drawable-mdpi/icon.png", "drawable-xhdpi/icon.png"]
    for i in range(0, len(iconsDict)):
        reskinutils.copyFilesByGlob(srcRes + "/" + iconsDict[i], trgRes + "/" + iconsDict[i])
    reskinutils.checkCopy(len(iconsDict))
    print("Done.")

    # CODE REPLACEMENT
    # ----------------
    # replace game name
    print("Replacing game name...")
    reskinutils.replaceInFile(stringsFile, "enter_game_name_here", name)
    reskinutils.replaceInFile(receiverFile, "enter_game_name_here", name)
    print("Done.")

    # replace bundleID
    print("Replacing bundle ID...")
    reskinutils.replaceInFile(androidManifestFile, "enter_bundle_id_here", bundle)
    reskinutils.replaceInFile(androidManifestBinFile, "enter_bundle_id_here", bundle)
    reskinutils.replaceInFileByGlob(javaFiles, "enter_bundle_id_here", bundle)
    reskinutils.replaceInFileByGlob(javaFiles2, "enter_bundle_id_here", bundle)
    print("Done.")

    # replace server ID
    print("Replacing server ID...")
    reskinutils.replaceInFile(serverManagerFile, "enter_server_id_here", serverID)
    print("Done.")