Skip to content

Commit

Permalink
Fix package build script deleting build output.
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Aug 9, 2017
1 parent a55ab49 commit 23381d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -262,3 +262,6 @@ __pycache__/

# Visual Studio Code workspace settings.
.vscode/

# Release package files go here:
release/
8 changes: 4 additions & 4 deletions package_release_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ def build_windows():

# Package client.
print(Fore.GREEN + "Packaging Windows x86 client..." + Style.RESET_ALL)
package_zip(os.path.join("bin", "Client"), os.path.join("bin", "SS14.Client_windows_x86.zip"))
package_zip(os.path.join("bin", "Client"), os.path.join("release", "SS14.Client_windows_x86.zip"))

print(Fore.GREEN + "Packaging Windows x86 server..." + Style.RESET_ALL)
package_zip(os.path.join("bin", "Server"), os.path.join("bin", "SS14.Server_windows_x86.zip"))
package_zip(os.path.join("bin", "Server"), os.path.join("release", "SS14.Server_windows_x86.zip"))

def build_linux():
print(Fore.GREEN + "Building project for Linux x86..." + Style.RESET_ALL)
Expand All @@ -70,10 +70,10 @@ def build_linux():

# Package client.
print(Fore.GREEN + "Packaging Linux x86 client..." + Style.RESET_ALL)
package_zip(os.path.join("bin", "Client"), os.path.join("bin", "SS14.Client_linux_x86.zip"))
package_zip(os.path.join("bin", "Client"), os.path.join("release", "SS14.Client_linux_x86.zip"))

print(Fore.GREEN + "Packaging Linux x86 server..." + Style.RESET_ALL)
package_zip(os.path.join("bin", "Server"), os.path.join("bin", "SS14.Server_linux_x86.zip"))
package_zip(os.path.join("bin", "Server"), os.path.join("release", "SS14.Server_linux_x86.zip"))

def package_zip(directory, zipname):
with zipfile.ZipFile(zipname, "w") as f:
Expand Down

0 comments on commit 23381d9

Please sign in to comment.