mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-08 18:31:07 +03:00
add signer to index v1
This commit is contained in:
parent
7c4b8bcac4
commit
6a4a78429f
4 changed files with 6 additions and 2 deletions
|
@ -44,7 +44,7 @@ from . import metadata
|
|||
from .common import SdkToolsPopen
|
||||
from .exception import BuildException, FDroidException
|
||||
|
||||
METADATA_VERSION = 18
|
||||
METADATA_VERSION = 19
|
||||
|
||||
# less than the valid range of versionCode, i.e. Java's Integer.MIN_VALUE
|
||||
UNSET_VERSION_CODE = -0x100000000
|
||||
|
@ -976,6 +976,8 @@ def scan_apk(apk_file):
|
|||
apk['sig'] = getsig(apk_file)
|
||||
if not apk['sig']:
|
||||
raise BuildException("Failed to get apk signature")
|
||||
apk['signer'] = common.apk_signer_fingerprint(os.path.join(os.getcwd(),
|
||||
apk_file))
|
||||
|
||||
# Get size of the APK
|
||||
apk['size'] = os.path.getsize(apk_file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue