Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The icon path should be prefixed with the destination path. #8

Merged
merged 1 commit into from
Nov 29, 2021

Conversation

neoh4x0r
Copy link
Contributor

@neoh4x0r neoh4x0r commented Nov 23, 2021

If a custom icon is used, the script (html2dash.py) is unable to copy the icon into the given destination path.

This is fixed by prefixing the icon path with the destination (it also makes it conform to the existing code-style, where other paths have been prefixed with the destination).

The open issue regarding this: #9

PATCH applied to fix this:

diff --git a/html2dash.py b/html2dash.py
index b8d341d..ed0259a 100755
--- a/html2dash.py
+++ b/html2dash.py
@@ -116,7 +116,7 @@ if __name__ == "__main__":
     # create docset directory and copy files
     doc_path = docset_name + "/Contents/Resources/Documents"
     dsidx_path = docset_name + "/Contents/Resources/docSet.dsidx"
-    icon_path = docset_name + "/icon.png"
+    icon = docset_name + "/icon.png"
     info = docset_name + "/Contents/info.plist"

     destpath = results.path
@@ -125,6 +125,7 @@ if __name__ == "__main__":
     docset_path = destpath + doc_path
     sqlite_path = destpath + dsidx_path
     info_path = destpath + info
+    icon_path = destpath + icon

     # print docset_path, sqlite_path
@neoh4x0r neoh4x0r marked this pull request as ready for review November 23, 2021 18:34
@selfboot selfboot merged commit f22cc27 into selfboot:master Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants