Fixed make_release.py

This commit is contained in:
GreYFoXGTi 2010-12-05 19:25:04 +02:00 committed by Shereef Marzouk
parent e990c94dad
commit a9ce77c9da
3 changed files with 7 additions and 6 deletions

View file

@ -258,11 +258,11 @@ function build(settings)
end
-- build client, server, version server and master server
client_exe = Link(client_settings, "DDRace_Trunk-Client", game_shared, game_client,
client_exe = Link(client_settings, "DDRace", game_shared, game_client,
engine, client, game_editor, zlib, pnglite, wavpack,
client_link_other, client_osxlaunch)
server_exe = Link(server_settings, "DDRace_Trunk-Server", engine, server,
server_exe = Link(server_settings, "DDRace-Server", engine, server,
game_shared, game_server, zlib)
serverlaunch = {}
@ -419,4 +419,4 @@ else
build(release_settings)
build(release_nosql_settings)
DefaultTarget("game_debug")
end
end

View file

View file

@ -7,7 +7,7 @@ if len(sys.argv) != 3:
print sys.argv[0], "VERSION PLATFORM"
sys.exit(-1)
name = "teeworlds"
name = "DDRace"
version = sys.argv[1]
platform = sys.argv[2]
exe_ext = ""
@ -62,6 +62,7 @@ print "adding files"
shutil.copy("readme.txt", package_dir)
shutil.copy("license.txt", package_dir)
shutil.copy("storage.cfg", package_dir)
shutil.copy("announcement.txt", package_dir)
if include_data and not use_bundle:
os.mkdir(os.path.join(package_dir, "data"))
@ -72,7 +73,7 @@ if include_data and not use_bundle:
if include_exe and not use_bundle:
shutil.copy(name+exe_ext, package_dir)
shutil.copy(name+"_srv"+exe_ext, package_dir)
shutil.copy(name+"-Server"+exe_ext, package_dir)
if include_src:
for p in ["src", "scripts", "datasrc", "other", "objs"]:
@ -137,7 +138,7 @@ if use_bundle:
os.mkdir(os.path.join(serverbundle_resource_dir, "data/mapres"))
copydir("data/maps", serverbundle_resource_dir)
shutil.copy("other/icons/Teeworlds_srv.icns", serverbundle_resource_dir)
shutil.copy(name+"_srv"+exe_ext, serverbundle_bin_dir)
shutil.copy(name+"-Server"+exe_ext, serverbundle_bin_dir)
shutil.copy("serverlaunch"+exe_ext, serverbundle_bin_dir + "/teeworlds_server")
file(os.path.join(serverbundle_content_dir, "Info.plist"), "w").write("""
<?xml version="1.0" encoding="UTF-8"?>