Skip to content

Commit

Permalink
Added build.py and PleaseReadMe.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Athlon007 committed Feb 7, 2020
1 parent 6222563 commit a4994cd
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -411,4 +411,6 @@ sysinfo.txt
# Crashlytics generated file
crashlytics-build.properties

/MopAsset/Temp
/MopAsset/Temp

ActualMop.zip
25 changes: 25 additions & 0 deletions PleaseReadMe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
=== Actual Mop ===

Visit GitHub repository for newest updates, previews and changelogs!
https://github.com/Athlon007/ActualMop

Download the newest update from GitHub relase page!

GitHub: https://github.com/Athlon007/ActualMop/releases


# INSTALLATION #
1.) Go to the folder where are your mods installed
2.) Paste the content of the zip into it
3.) You're done!

You can find your mop in the washing machine room (between kitchen and bathroom).


# KNOWN ISSUES #
- Player haas to have the pissing button binded to P, otherwise the mod will not work
- Player may need to drop and grab the mop again, in order to it work when moving between rooms


# CONTACT #
Discord: Athlon#5974
47 changes: 47 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# MOP Builder
# This script let's you quickly compress new release to .zip file.
# Script version: 1.0.0 (14.12.2019)
#
# This file is distributed under the same license as the MOP is.

import os
import sys
import zipfile
from zipfile import ZipFile
from array import array
import shutil
print("=== Building the release... ===\n")

BASE_DIR = os.getcwd()


def make_zip(files, zipName):
print('Creating new zip: {0}'.format(zipName))
NEW_ZIP = ZipFile(BASE_DIR + "\\" + zipName, 'w', zipfile.ZIP_DEFLATED)

for file in files:
NEW_ZIP.write(file)

NEW_ZIP.close()


os.chdir(BASE_DIR)
shutil.rmtree(BASE_DIR + "\\build", True)

os.mkdir("build")
shutil.copyfile("ActualMop\\bin\\Release\\ActualMop.dll",
"build\\ActualMop.dll")
shutil.copyfile("PleaseReadMe.txt", "build\\PleaseReadMe.txt")
os.makedirs("build\\Assets\\ActualMop")
shutil.copyfile("MopAsset\\AssetBundles\\mop.unity3d",
"build\\Assets\\ActualMop\\mop.unity3d")
os.chdir("build")

FILES = []
FILES.extend(["ActualMop.dll"])
FILES.extend(["PleaseReadme.txt"])
FILES.extend(["Assets\\ActualMop\\mop.unity3d"])
make_zip(FILES, "ActualMop.zip")

print("Done!\nQuitting...")
quit()

0 comments on commit a4994cd

Please sign in to comment.