Skip to content
Permalink
Browse files

py2exe: include resources/*.png in the app bundle

  • Loading branch information...
albertosottile committed May 6, 2019
1 parent 819e6b6 commit 3a4cf41d6b008e40c1ff03b3a5e55835be14430f
Showing with 2 additions and 28 deletions.
  1. +2 −28 buildPy2exe.py
@@ -15,6 +15,7 @@
# import warnings
# warnings.warn("You must build Syncplay with Python 2.7!")

from glob import glob
import os
import subprocess
from string import Template
@@ -666,37 +667,10 @@ def run(self):
script.compile()
print("*** DONE ***")

guiIcons = [
'resources/accept.png', 'resources/arrow_undo.png', 'resources/clock_go.png',
'resources/control_pause_blue.png', 'resources/cross.png', 'resources/door_in.png',
'resources/folder_explore.png', 'resources/help.png', 'resources/table_refresh.png',
'resources/timeline_marker.png', 'resources/control_play_blue.png',
'resources/mpc-hc.png', 'resources/mpc-hc64.png', 'resources/mplayer.png',
'resources/mpc-be.png',
'resources/mpv.png', 'resources/vlc.png', 'resources/house.png', 'resources/film_link.png',
'resources/eye.png', 'resources/comments.png', 'resources/cog_delete.png', 'resources/chevrons_right.png',
'resources/user_key.png', 'resources/lock.png', 'resources/key_go.png', 'resources/page_white_key.png',
'resources/lock_green.png', 'resources/lock_green_dialog.png',
'resources/tick.png', 'resources/lock_open.png', 'resources/empty_checkbox.png', 'resources/tick_checkbox.png',
'resources/world_explore.png', 'resources/application_get.png', 'resources/cog.png', 'resources/arrow_switch.png',
'resources/film_go.png', 'resources/world_go.png', 'resources/arrow_refresh.png', 'resources/bullet_right_grey.png',
'resources/user_comment.png',
'resources/error.png',
'resources/film_folder_edit.png',
'resources/film_edit.png',
'resources/folder_film.png',
'resources/shield_edit.png',
'resources/shield_add.png',
'resources/email_go.png',
'resources/world_add.png', 'resources/film_add.png', 'resources/delete.png', 'resources/spinner.mng',
'resources/syncplayAbout.png', 'resources/syncplayAbout@2x.png'
]

guiIcons = ['syncplay/' + s for s in guiIcons]
guiIcons = glob('syncplay/resources/*.png') + ['syncplay/resources/spinner.mng']

resources = [
"syncplay/resources/icon.ico",
"syncplay/resources/syncplay.png",
"syncplay/resources/syncplayintf.lua",
"syncplay/resources/license.rtf",
"syncplay/resources/third-party-notices.rtf"

0 comments on commit 3a4cf41

Please sign in to comment.
You can’t perform that action at this time.