Skip to content

Commit

Permalink
Script update
Browse files Browse the repository at this point in the history
  • Loading branch information
LukicMMikroe committed Jun 4, 2024
1 parent e48c9b4 commit 52e434c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,12 +477,12 @@ async def package_asset(source_dir, output_dir, arch, entry_name, token, repo, t
install_location = os.path.join("core", arch, entry_name)
version = get_version_based_on_hash(archiveName, tag_name.replace("v", ""), archiveHash, current_metadata)
# Add to packages list
packages.append({"name" : archiveName, "display_name": displayName, "version" : version, "hash" :archiveHash, "vendor" : "MIKROE", "type" : "mcu", "hidden" : False, 'install_location': install_location})
packages.append({"name" : os.path.basename(archiveName), "display_name": displayName, "version" : version, "hash" :archiveHash, "vendor" : "MIKROE", "type" : "mcu", "hidden" : False, 'install_location': install_location})
package_changed = (version == tag_name.replace("v", ""))

# Index to Elasticsearch
doc = {
'name': archiveName,
'name': os.path.basename(archiveName),
'display_name': displayName,
'author': 'MIKROE',
'hidden': False,
Expand Down

0 comments on commit 52e434c

Please sign in to comment.