Skip to content

Commit

Permalink
Fix parsing app license
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSazonov committed May 27, 2024
1 parent fd52e31 commit 85a44b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ ci = [
'toml',
'pyinstaller',
'requests',
'licensename',
'dephell_licenses'
]
test = [
Expand Down
8 changes: 5 additions & 3 deletions tools/Scripts/MakeInstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import time
import requests
import xml.dom.minidom
import dephell_licenses
import licensename, dephell_licenses
import Functions, Config


Expand Down Expand Up @@ -155,8 +155,10 @@ def installerConfigXml():
def appPackageXml():
try:
message = f"create app package content"
license_id = CONFIG['project']['license'].replace('-only', '')
license_name = dephell_licenses.licenses.get_by_id(license_id).name.replace('"', "'")
license_file = CONFIG['project']['license']['file']
license_id = licensename.from_file(license_file)
license_name = dephell_licenses.licenses.get_by_id(license_id).name
license_name = license_name.replace('"', "'")
requires_root = 'false'
raw_xml = Functions.dict2xml({
'Package': {
Expand Down

0 comments on commit 85a44b6

Please sign in to comment.