- package: tis-smimesign
- name: smimesign
- version: 0.2.0-0
- categories: System and network
- maintainer: kguerineau
- licence: MIT
- locale: all
- target_os: windows
- architecture: all
- signature_date:
- size: 6.88 Mo
- homepage : https://github.com/github/smimesign
- depends:
package : tis-smimesign
version : 0.2.0-0
architecture : all
section : base
priority : optional
name : smimesign
categories : System and network
maintainer : kguerineau
description : Smimesign is an S/MIME signing utility for macOS and Windows that is compatible with Git.
depends : tis-git
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.0
sources :
installed_size :
impacted_process :
description_fr : Smimesign est un utilitaire de signature S/MIME pour macOS et Windows qui est compatible avec Git.
description_pl : Smimesign to narzędzie do podpisywania S/MIME dla macOS i Windows, które jest kompatybilne z Git.
description_de : Smimesign ist ein S/MIME-Signierungsprogramm für macOS und Windows, das mit Git kompatibel ist.
description_es : Smimesign es una utilidad de firma S/MIME para macOS y Windows que es compatible con Git.
description_pt : Smimesign é um utilitário de assinatura S/MIME para MacOS e Windows que é compatível com Git.
description_it : Smimesign è un'utilità di firma S/MIME per macOS e Windows compatibile con Git.
description_nl : Smimesign is een S/MIME ondertekeningsprogramma voor macOS en Windows dat compatibel is met Git.
description_ru : Smimesign - это утилита для подписания S/MIME для macOS и Windows, совместимая с Git.
audit_schedule :
editor :
keywords :
licence : MIT
homepage : https://github.com/github/smimesign
package_uuid : f99c5b0e-b8a5-46b5-918e-62a3f25bf46c
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : 4a6e5031edc6e22a06cb5f12e89dea8738b88839c2cb99e2e7e0d9df345e2252
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : solK+2zH0d0ymHWhO/KhvKHxTiF0PdQ/HEuwkQ6ngRC+ZfhGKoKKMw0n/7RgytGoo+FWLmiaC6Ak7cS5Mm7+eY4zZ2OwoLq4GnuFFsr5MAGCUvUWRzphZj1eVe3+gMdl2/RT/He84nKRsl/SGuVSytj4fsbDr2vFZMLjdUECWWKlvkqnHzgkjFGJhoFfP0RzKzTuWUzN7kXsgjrJY3Yf8mYMxFTkjk5uh6TnRqpomFaG7W73DH5LYX7q5Ob9p5C+clcngYKaJCgSYXPzfLZG6vST350I6k0wJTj7lLXwL9QRzG3LBPC4K44OQ+FB2ptsEIhAH4WeWxc0/MUBCIJS3w==
signature_date : 2022-09-26T20:05:26.202167
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
# -*- coding: utf-8 -*-
from setuphelpers import *
r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
def install():
# Declaring local variables
bin_name = glob.glob("smimesign-windows-*.exe")[0]
# Installing the software
print("Installing: %s" % control.asrequirement())
install_exe_if_needed(bin_name,
silentflags='/VERYSILENT',
key='{4F942266-232E-4F47-8D44-A6BEE366A2A0}_is1',
min_version=''
)
# -*- coding: utf-8 -*-
from setuphelpers import *
import json
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "npp"
def update_package():
# Declaring local variables
result = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
bin_search = ".exe"
bin_name_sub = " smimesign-windows-v%s.exe"
app_name = control.name
git_repo = "github/smimesign"
url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo
# Getting latest version information from official sources
print("API used is: %s" % url_api)
json_load = json.loads(wgets(url_api, proxies=proxies))
for download in json_load["assets"]:
if bin_search in download["name"]:
url_dl = download["browser_download_url"]
version = json_load["tag_name"].replace("v", "").split('-')[0]
latest_bin = download["name"]
break
print("Latest %s version is: %s" % (app_name, version))
print("Download URL is: %s" % url_dl)
# Downloading latest binaries
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(url_dl, latest_bin, proxies=proxies)
# Checking version from file
version_from_file = get_version_from_binary(latest_bin, "FileVersion")
if not version_from_file.startswith(version):
# remove additional .0 at the end of the version from file
".".join(get_version_from_binary(latest_bin, "FileVersion").split(".")[:3])
print("Changing version to the version number of the binary")
version = version_from_file
os.rename(latest_bin, bin_name_sub % version)
# Changing version of the package
if Version(version) > Version(control.get_software_version()):
print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
result = True
control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
# control.set_software_version(Version(version))
control.save_control_to_wapt()
# Deleting outdated binaries
remove_outdated_binaries(version)
# Validating update-package-sources
return result
7c7aa5f0957abedb180099d579cb052036cbe258948b3d33f2a019fbcc07a333 : setup.py
4e3d21ba2339096f522e7cb580c04c6e921d907f0c202dac736db8a45f58361c : smimesign-windows-v0.2.0-rc1.exe
07a58e4beb008dcd42de13c91bae00588369368da123422b4fc55af2521e48a5 : update_package.py
4a6e5031edc6e22a06cb5f12e89dea8738b88839c2cb99e2e7e0d9df345e2252 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
5dcb7338d92524f5c36108b44cb6c65b0d2a68f84d3bc2f0aba4e1854929d8ec : luti.json
913b6d9319053e9350f26d355893369205b9f7588f64b74ce72995e89d284646 : WAPT/control