Skip to content

Commit

Permalink
Improve pynsist build with icon, wrapper script and publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
joepal1976 committed Mar 5, 2018
1 parent b9a3897 commit 31c848f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion buildscripts/build_prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
EXCLUDES_RELEASE = ['testsuite']

# Include filter for additional asset files (not on hg) to copy (glob syntax)
ASSET_INCLUDES = ['*.npz', '*.mhpxy', '*.list', '*.thumb', '*.png', '*.json', '*.csv', '*.meta', '*.mhskel', '*.mhw', '*.mhmat', '*.mhclo', '*.proxy', 'glsl/*.txt', 'languages/*.ini', "*.bvh", "*.mhm", "*.qss", "*.mht", "*.svg", "*.mhpose", "icons/makehuman_bg.svg", "icons/makehuman.png", "logging.ini"]
ASSET_INCLUDES = ['*.npz', '*.mhpxy', '*.list', '*.thumb', '*.png', '*.json', '*.csv', '*.meta', '*.mhskel', '*.mhw', '*.mhmat', '*.mhclo', '*.proxy', 'glsl/*.txt', 'languages/*.ini', "*.bvh", "*.mhm", "*.qss", "*.mht", "*.svg", "*.mhpose", "icons/makehuman_bg.svg", "icons/makehuman.png", "icons/makehuman-large*", "logging.ini"]

# Even if empty, create these folders (relative to export path)
CREATE_FOLDERS = ['makehuman/data/backgrounds', 'makehuman/data/clothes', 'makehuman/data/teeth', 'makehuman/data/eyelashes', 'makehuman/data/tongue']
Expand Down
5 changes: 5 additions & 0 deletions buildscripts/win32/makePynsistBuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,8 @@
with open(pynsistOut,'w') as f:
f.write(pynsist)

wrapperSrc = os.path.join(build_scripts,'win32','mhstartwrapper.py')
wrapperDst = os.path.join(exportDir,'mhstartwrapper.py')

shutil.copy(wrapperSrc,wrapperDst)

11 changes: 11 additions & 0 deletions buildscripts/win32/mhstartwrapper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/python3

import os
import sys
import subprocess

scriptpath = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
mhpath = os.path.join(scriptpath, "makehuman")
os.chdir(mhpath)
subprocess.call([sys.executable,"makehuman.py"])

5 changes: 3 additions & 2 deletions buildscripts/win32/pynsist.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[Application]
name=TITLE
version=VERSION
script=makehuman/makehuman.py
#icon=myapp.ico
publisher=Makehuman Community
script=mhstartwrapper.py
icon=makehuman/icons/makehuman-large.ico

[Python]
version=3.6.4
Expand Down

0 comments on commit 31c848f

Please sign in to comment.