- package: tis-speccy
- name: Speccy
- version: 1.32.803-7
- categories: System and network
- maintainer: WAPT Team,Tranquil IT,Kenan KILICARSLAN
- licence: GPL
- locale: all
- target_os: windows
- impacted_process: speccy.exe
- architecture: all
- signature_date:
- size: 8.96 Mo
- installed_size: 4.52 Mo
- homepage : https://www.ccleaner.com/speccy
package : tis-speccy
version : 1.32.803-7
architecture : all
section : base
priority : optional
name : Speccy
categories : System and network
maintainer : WAPT Team,Tranquil IT,Kenan KILICARSLAN
description : Speccy is a free system information display software, developed by Piriform Ltd, and running on a computer running the Windows operating system
depends :
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 1.7
sources : https://www.ccleaner.com/speccy/download/
installed_size : 4517888
impacted_process : speccy.exe
description_fr : Speccy est un gratuiciel d'affichage d'informations système, développé par Piriform Ltd, et fonctionnant sur un ordinateur muni du système d'exploitation Windows
description_pl : Speccy to darmowe oprogramowanie do wyświetlania informacji systemowych, opracowane przez firmę Piriform Ltd, działające na komputerze z systemem operacyjnym Windows
description_de : Speccy ist eine kostenlose Software zur Anzeige von Systeminformationen, die von Piriform Ltd
description_es : Speccy es un software gratuito de visualización de información del sistema, desarrollado por Piriform Ltd, que se ejecuta en un ordenador con sistema operativo Windows
description_pt : Speccy é um software gratuito de exibição de informação do sistema, desenvolvido pela Piriform Ltd, e executado num computador com o sistema operativo Windows
description_it : Speccy è un software gratuito per la visualizzazione delle informazioni di sistema, sviluppato da Piriform Ltd, che funziona su un computer con sistema operativo Windows
description_nl : Speccy is een gratis systeeminformatiedisplay-software, ontwikkeld door Piriform Ltd, en draait op een computer met het Windows-besturingssysteem
description_ru : Speccy - это бесплатное программное обеспечение для отображения системной информации, разработанное компанией Piriform Ltd. и работающее на компьютере под управлением операционной системы Windows
audit_schedule :
editor :
keywords : speccy,windows
licence : GPL
homepage : https://www.ccleaner.com/speccy
package_uuid : 46cb30b9-9e5d-480a-8363-925abf4ed85d
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version : 6.1
max_os_version :
icon_sha256sum : 58fa6574e3d6d6e2d2bc03f6dfd0bf8283dab0f95c8579ceb8df0244a2642412
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : eAlmrkCJw8ED+uV3QSknGjmu99ZmUMwseHKIAnFsz8EiUFnZnUyW1yOLJQIEUMobW982RtihULnOJ0yG8ci/0/JWO4bpoXGt6qQTWfSnu6BhD/Kus4nmJoJ7M5mIbSKhnoKt3pfBy7JHM85waqv7ob3Y4Ja9hGhPN7YV5+mNrCMlMQUSRdFh2kwUZvAEZvomHQOuyMotv5JsMY6RVIIfhehiXTpwAZHhbhM27PSj5gLi6+GO8YO201+qbUnbW2BxEGw6K+v5bJFTh8ma1Ggm53QFxnEUsqxRaD7AT+uTkjqxThIx1fGNcNMe9krIQxnu+kDjMJtcFwdhcruLr1bo/A==
signature_date : 2022-07-27T03:20:33.921903
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 *
import platform
uninstallkey = []
bin_name_string = "spsetup-%s.exe"
silent_inst_arg = "/S /SUPPRESSMSGBOXES /NORESTART"
def install():
version = control.version.split("-")[0]
bin_name = bin_name_string % version
print("installing tis-speccy")
install_exe_if_needed(bin_name, silent_inst_arg, key="Speccy", min_version=version.rsplit(".", 1)[0])
# Kill at end of installation
killalltasks("spsetup.exe")
def update_package():
print("Downloading/Updating package content from upstream binary sources")
# Initializing variables
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
app_name = control.name
bin_name_temp = "spsetup.exe"
url_dl = bs_find(
"https://www.ccleaner.com/speccy/download/standard",
"a",
"class",
"text-semibold",
headers={"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0"},
proxies=proxies,
)["href"]
latest_bin = bin_name_temp
version = "0"
# 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: " + latest_bin)
wget(url_dl, latest_bin, proxies=proxies)
# Checking version from file
download_html = wgets("https://www.ccleaner.com/speccy/version-history", proxies=proxies).splitlines()
for line in download_html:
if "latest-version" in line:
version_from_file = line.split("v")[-1].split("<")[0]
if version != version_from_file:
os.rename(latest_bin, bin_name_string % version_from_file)
version = version_from_file
# 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
remove_outdated_binaries(version)
def get_proxies():
if platform.python_version_tuple()[0] == "3":
from urllib.request import getproxies
else:
from urllib import getproxies
return getproxies()
def get_proxies_from_wapt_console():
proxies = {}
if platform.system() == "Windows":
waptconsole_ini_path = makepath(user_local_appdata(), "waptconsole", "waptconsole.ini")
else:
waptconsole_ini_path = makepath(user_home_directory(), ".config", "waptconsole", "waptconsole.ini")
if isfile(waptconsole_ini_path):
proxy_wapt = inifile_readstring(waptconsole_ini_path, "global", "http_proxy")
if proxy_wapt:
proxies = {"http": proxy_wapt, "https": proxy_wapt}
return proxies
def bs_find(url, element, attribute=None, value=None, headers=None, proxies=None, features="html.parser", **kwargs):
""" "You may need to use a header for some websites. For example: headers={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0'}"""
import requests
page = requests.get(url, proxies=proxies, headers=headers, **kwargs).text
try:
import bs4 as BeautifulSoup
soup = BeautifulSoup.BeautifulSoup(page, features=features)
except:
import BeautifulSoup
soup = BeautifulSoup.BeautifulSoup(page)
if value:
return soup.find(element, {attribute: value})
else:
return soup.find(element)
def remove_outdated_binaries(version, list_extensions=["exe", "msi", "deb", "rpm", "dmg", "pkg"], list_filename_contain=None):
if type(list_extensions) != list:
list_extensions = [list_extensions]
if list_filename_contain:
if type(list_filename_contain) != list:
list_filename_contain = [list_filename_contain]
list_extensions = ["." + ext for ext in list_extensions if ext[0] != "."]
for file_ext in list_extensions:
for bin_in_dir in glob.glob("*%s" % file_ext):
if not version in bin_in_dir:
remove_file(bin_in_dir)
if list_filename_contain:
for filename_contain in list_filename_contain:
if not filename_contain in bin_in_dir:
remove_file(bin_in_dir)
def get_version_from_binary(filename):
if filename.endswith(".msi"):
return get_msi_properties(filename)["ProductVersion"]
else:
return get_file_properties(filename)["ProductVersion"]
be7b0a14908bef6eecbaff6f54f0072cdae60e895768a762dd2035bb22843064 : setup.py
0a9e739910578192e2ad3f8f805a863d5cbcacbc38cde6488d7bbef5395dba87 : spsetup-1.32.803.exe
58fa6574e3d6d6e2d2bc03f6dfd0bf8283dab0f95c8579ceb8df0244a2642412 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
6d12073951ebf92590a879992df30f3bf61a356193c287f7d933e7d3da635bfb : luti.json
0b020224b76f8c91abb809baeefc849c18e101abe080e49c33e2363d7bacc220 : WAPT/control