OpenSC
Silent install package for OpenSC
0.26.1-6
Drivers
Drivers
- package: tis-opensc
- name: OpenSC
- version: 0.26.1-6
- categories: Drivers
- maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
- licence: LGPL
- locale: all
- target_os: windows
- impacted_process: pkcs11-tool,opensc-notify,opensc-tool
- architecture: all
- signature_date:
- size: 40.10 Mo
- homepage : https://github.com/OpenSC/OpenSC/wiki
package : tis-opensc
version : 0.26.1-6
architecture : all
section : base
priority : optional
name : OpenSC
categories : Drivers
maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
description : OpenSC smartcard framework
depends :
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.0
sources : https://github.com/OpenSC/OpenSC/releases
installed_size :
impacted_process : pkcs11-tool,opensc-notify,opensc-tool
description_fr : Cadre de carte à puce OpenSC
description_pl : OpenSC smartcard framework
description_de : OpenSC Smartcard-Framework
description_es : Marco de la tarjeta inteligente OpenSC
description_pt : Estrutura do OpenSC smartcard
description_it : Quadro di riferimento per smartcard OpenSC
description_nl : OpenSC smartcard-kader
description_ru : Система смарт-карт OpenSC
audit_schedule :
editor :
keywords :
licence : LGPL
homepage : https://github.com/OpenSC/OpenSC/wiki
package_uuid : 9c228f4b-38f4-49e7-aa4b-67816a894ce0
valid_from :
valid_until :
forced_install_on :
changelog : https://github.com/OpenSC/OpenSC/releases
min_os_version :
max_os_version :
icon_sha256sum : b80b143a5ab7954131c83e41e21b34607c7ed9a02d307f064c3099ec6a342f62
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2025-11-22T09:00:23.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature : IqTl4fBb/RMt0ZkZGJ/So/9v3MyJL8oBQ3VEKW8eOZajcuGvWkzRP3rFmdcx9FMGYs0dolC2ERbK910s83T/pJ8zsONuTHsJGxqa2vO4lB8Tg/NEsW3PGrV8EICHwOaDkZYadIGY0urnlotr9Oiq0Iv9Toi0Iysr2AYsngIOBy0NZ0M03Px7jhOkW12kzeiYBZiDmgc8g69mgsbtPdH05PxQV7I7lQgMdItsno98L404j3/5M7z/c0jCDotIkWM9I8I8Ad8Lzswr3sFSvtOh2PAZG2NDCnurHEBejAR+XLlRt60iwcJsRVQ+n4vboGPawLbjPg71oO5PfFGo64GRTg==
# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
def install():
# Initializing variables
package_version = control.get_software_version()
# removing previous version
for uninstall in installed_softwares("OpenSC smartcard framework"):
print("Uninstall %s" % uninstall["name"])
cmd = uninstall_cmd(uninstall["key"])
run(cmd)
# Installing the package
install_msi_if_needed(
"OpenSC-%s_win32.msi" % package_version,
min_version=package_version,
)
if iswin64() or iswinarm():
install_msi_if_needed(
"OpenSC-%s_win64.msi" % package_version,
min_version=package_version,
)
if not 'opensc' in registry_readstring(HKEY_LOCAL_MACHINE,r"SYSTEM\CurrentControlSet\Control\Session Manager\Environment","Path").lower():
add_to_system_path(makepath(programfiles,'OpenSC Project','OpenSC','tools'))
def iswinarm():
return platform.machine() == 'ARM64'
# -*- coding: utf-8 -*-
from setuphelpers import *
import json
def update_package():
print("Download/Update package content from upstream binary sources")
# Initializing variables
app_name = control.name
url_api = "https://api.github.com/repos/OpenSC/OpenSC/releases/latest"
proxy = get_proxies()
bin_name_string_x64 = "OpenSC-%s_win64.msi"
bin_name_string_x86 = "OpenSC-%s_win32.msi"
# Getting latest informations from Github API
json_load = json.loads(wgets(url_api, proxies=proxy))
for download in json_load:
version = json_load["tag_name"]
break
latest_bin_x64 = bin_name_string_x64 % version
latest_bin_x86 = bin_name_string_x86 % version
url_dl_x64 = "https://github.com/OpenSC/OpenSC/releases/download/" + version + "/" + latest_bin_x64
url_dl_x86 = "https://github.com/OpenSC/OpenSC/releases/download/" + version + "/" + latest_bin_x86
print("Latest " + app_name + " version is: " + version)
# Downloading latest binaries
if not isfile(latest_bin_x64):
print("Downloading: " + latest_bin_x64)
wget(url_dl_x64, latest_bin_x64, proxies=proxy)
if not isfile(latest_bin_x86):
print("Downloading: " + latest_bin_x86)
wget(url_dl_x86, latest_bin_x86, proxies=proxy)
# Changing version of the package
control.version = "%s-%s" % (version, int(control.version.split("-")[-1]) + 1)
control.save_control_to_wapt()
print("Changing version to: %s in WAPT\\control" % control.version)
# Deleting outdated binaries
for bin_in_dir in glob.glob("*.msi"):
if bin_in_dir != latest_bin_x64 and bin_in_dir != latest_bin_x86:
print("Outdated binary: " + bin_in_dir + " Deleted")
remove_file(bin_in_dir)
fde5dbd86fd21424eb048484d7b151c0a9b2953decab44576ad54ac98366cfc7 : OpenSC-0.26.1_win32.msi
bb2a47bd7a87617f38828c17eb7129a40fe27fe6656781882f2924fc2c9cf96e : OpenSC-0.26.1_win64.msi
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
a75460e295506a8d06789d123454adc45debfeadb8ae7dc4385bd539088ee5b6 : WAPT/control
b80b143a5ab7954131c83e41e21b34607c7ed9a02d307f064c3099ec6a342f62 : WAPT/icon.png
d3cbfffd7e7d7e8bb73c20541f190ed49e7d0bdedf851cd843fc3701742917f8 : luti.json
260b42764d328e901754189bc775aff18c26197d218597ba9a7cfc4c490654f5 : setup.py
5c15b87136b034a34aed63960d1b2c2caa20d9a25cccf840590b0084c1b6babc : update_package.py