[Packaging] bbfreeze updates
* No need for data_files to be installed on windows
This commit is contained in:
parent
50f6f2d3ec
commit
8345237dcc
|
@ -54,9 +54,8 @@ build_version = deluge.common.get_version()
|
|||
python_path = os.path.dirname(sys.executable)
|
||||
if python_path.endswith("Scripts"):
|
||||
python_path = python_path[:-8]
|
||||
python_path += os.path.sep
|
||||
gtk_root = os.path.join(gtk.__path__[0], "..", "runtime") + os.path.sep
|
||||
build_dir = "..\\build-win32\\deluge-bbfreeze-" + build_version + "\\"
|
||||
gtk_root = os.path.join(gtk.__path__[0], "..", "runtime")
|
||||
build_dir = os.path.join("build-win32", "deluge-bbfreeze-" + build_version)
|
||||
|
||||
if DEBUG:
|
||||
print("Python Path: %s" % python_path)
|
||||
|
@ -89,7 +88,7 @@ fzr.setIcon(os.path.join(os.path.dirname(deluge.common.__file__), "ui", "data",
|
|||
# Hide cmd console popup for these console entries force gui_script True.
|
||||
force_gui = ["deluge-web", "deluged", "deluge-console"]
|
||||
script_list = []
|
||||
for script in glob.glob(python_path + "Scripts\\deluge*-script.py*"):
|
||||
for script in glob.glob(os.path.join(python_path, "Scripts\\deluge*-script.py*")):
|
||||
# Copy the scripts to remove the '-script' suffix before adding to freezer.
|
||||
new_script = script.replace("-script", "")
|
||||
shutil.copy(script, new_script)
|
||||
|
|
|
@ -25,7 +25,7 @@ SetCompressorDictSize 64
|
|||
!define PROGRAM_WEB_SITE "http://deluge-torrent.org"
|
||||
|
||||
# Python files generated with bbfreeze
|
||||
!define BUILD_DIR "..\build-win32"
|
||||
!define BUILD_DIR "build-win32"
|
||||
!define BBFREEZE_DIR "${BUILD_DIR}\deluge-bbfreeze-${PROGRAM_VERSION}"
|
||||
|
||||
# --- Interface settings ---
|
||||
|
|
6
setup.py
6
setup.py
|
@ -266,7 +266,9 @@ cmdclass = {
|
|||
'test': PyTest,
|
||||
}
|
||||
|
||||
# Data files to be installed to the system
|
||||
# Data files to be installed to the system.
|
||||
_data_files = []
|
||||
if not windows_check():
|
||||
_data_files = [
|
||||
('share/icons/hicolor/scalable/apps', ['deluge/ui/data/icons/hicolor/scalable/apps/deluge.svg']),
|
||||
('share/icons/hicolor/128x128/apps', ['deluge/ui/data/icons/hicolor/128x128/apps/deluge.png']),
|
||||
|
@ -290,7 +292,7 @@ _data_files = [
|
|||
'docs/man/deluge-console.1'])
|
||||
]
|
||||
|
||||
if not windows_check() and os.path.exists(desktop_data):
|
||||
if os.path.exists(desktop_data):
|
||||
_data_files.append(('share/applications', [desktop_data]))
|
||||
|
||||
entry_points = {
|
||||
|
|
Loading…
Reference in New Issue