Skip to content

Commit

Permalink
Clean up assembleRelease.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbo00000 committed Jan 2, 2016
1 parent b83d0ab commit ee7520a
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions tools/assembleRelease.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,12 @@

# binaries
binSrcDir = os.path.join(srcDir, os.path.join("build", "Release"))
bins = ["RiftRay2.exe"]
bins = ["RiftRay3.exe"]
bins.extend(glob.glob(os.path.join(binSrcDir, "*.dll")))
bins = [os.path.basename(b) for b in bins]

bin = "bin"
binDstDir = os.path.join(dstDir, bin)
binDstDir = os.path.join(dstDir)
if not os.path.exists(binDstDir):
os.mkdir(binDstDir)
for b in bins:
shutil.copy(os.path.join(binSrcDir,b), os.path.join(binDstDir, b))

# simple run script
script = """
@echo off
cd /d bin
start "" RiftRay2.exe
"""
with open(os.path.join(dstDir,"RunRiftRay.bat"), "w") as outfile:
print(script, file=outfile)

0 comments on commit ee7520a

Please sign in to comment.