mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
small fugbix
This commit is contained in:
parent
c45e05cffe
commit
3603ccee19
@ -141,7 +141,7 @@ DEPLOY_MODES = ["standalone", "installer", "html"]
|
|||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import getopt
|
import getopt
|
||||||
from direct.p3d.DeploymentTools import Standalone, Installer
|
from direct.p3d.DeploymentTools import Standalone, Installer, Icon
|
||||||
from pandac.PandaModules import Filename, PandaSystem
|
from pandac.PandaModules import Filename, PandaSystem
|
||||||
|
|
||||||
def usage(code, msg = ''):
|
def usage(code, msg = ''):
|
||||||
@ -280,13 +280,15 @@ elif deploy_mode == 'installer':
|
|||||||
(i.authorname, i.authoremail, i.authorid)
|
(i.authorname, i.authoremail, i.authorid)
|
||||||
|
|
||||||
# Add the supplied icon images
|
# Add the supplied icon images
|
||||||
failed = False
|
if len(iconFiles) > 0:
|
||||||
for iconFile in iconFiles:
|
failed = False
|
||||||
if not i.icon.addImage(iconFile):
|
i.icon = Icon()
|
||||||
print '\nFailed to add icon image "%s"!\n' % iconFile
|
for iconFile in iconFiles:
|
||||||
failed = True
|
if not i.icon.addImage(iconFile):
|
||||||
if failed:
|
print '\nFailed to add icon image "%s"!\n' % iconFile
|
||||||
sys.exit(1)
|
failed = True
|
||||||
|
if failed:
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
# Now build for the requested platforms.
|
# Now build for the requested platforms.
|
||||||
if currentPlatform:
|
if currentPlatform:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user