Skip to content

Commit

Permalink
Updated mod version to 0.6.11.
Browse files Browse the repository at this point in the history
- Changes res_mods version folder to 0.9.17.0.3.
- Disabled plugin building, instead packaging phase downloads and adds plugin installer file from https://github.com/jhakonen/wot-teamspeak-mod/releases/download/ts-3.1-beta/tessumod.ts3_plugin.
  • Loading branch information
jhakonen committed Feb 5, 2017
1 parent 37843ce commit d2759ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions package.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
import subprocess
import re
import shutil
import urllib2

# configuration
MOD_VERSION = "0.6.10"
MOD_VERSION = "0.6.11"
ROOT_DIR = os.path.dirname(os.path.realpath(__file__))
BUILD_DIR = os.path.join(os.getcwd(), "build")
MOD_PACKAGE_PATH = os.path.join(os.getcwd(), "tessumod-{0}-bin.zip".format(MOD_VERSION))
Expand Down Expand Up @@ -81,11 +82,14 @@ def package_tessumod(build_dir):
remove_file(DEBUG_ARCHIVE_PATH)
remove_dir(BUILD_DIR)

plugin_installer_path, plugin_debug_path = package_ts_plugin(os.path.join(BUILD_DIR, "tsplugin"))
# NOTE: Disabled plugin building for now. Using prebuild binary from ts-3.1-beta release.
#plugin_installer_path, plugin_debug_path = package_ts_plugin(os.path.join(BUILD_DIR, "tsplugin"))
package_path, package_root_path = package_tessumod(os.path.join(BUILD_DIR, "tessumod"))

shutil.copy(plugin_debug_path, DEBUG_ARCHIVE_PATH)
#shutil.copy(plugin_debug_path, DEBUG_ARCHIVE_PATH)
shutil.copy(package_path, MOD_PACKAGE_PATH)

with zipfile.ZipFile(MOD_PACKAGE_PATH, "a") as package_file:
package_file.write(plugin_installer_path, os.path.join(package_root_path, os.path.basename(plugin_installer_path)))
r = urllib2.urlopen("https://github.com/jhakonen/wot-teamspeak-mod/releases/download/ts-3.1-beta/tessumod.ts3_plugin")
package_file.writestr(os.path.join(package_root_path, "tessumod.ts3_plugin"), r.read())
#package_file.write(plugin_installer_path, os.path.join(package_root_path, os.path.basename(plugin_installer_path)))
2 changes: 1 addition & 1 deletion tessumod/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import argparse
import re

WOT_VERSION = "0.9.17.0.1"
WOT_VERSION = "0.9.17.0.3"
SUPPORT_URL = "http://forum.worldoftanks.eu/index.php?/topic/433614-/"
ROOT_DIR = os.path.dirname(os.path.realpath(__file__))
SRC_DIR = os.path.join(ROOT_DIR, "src")
Expand Down

0 comments on commit d2759ae

Please sign in to comment.