- package: tis-speccy
- name: Speccy
- version: 1.32.774-6
- 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.20 Mo
- installed_size: 4.52 Mo
- homepage : https://www.ccleaner.com/speccy
package : tis-speccy
version : 1.32.774-6
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 :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor :
keywords : speccy,windows
licence : GPL
homepage : https://www.ccleaner.com/speccy
package_uuid : 537352f1-8a41-400b-b991-5e8606fe0287
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 : VCijV9K5JEKAadsPULTbushDC+r3FeSuxrSfBZy7iYqD05CEwnoUt/KuHnLW7oE40jzhRJDpZ+dmHujJ0/NreuXin7uAhHIShkdbOyLdjABV17behKLWpUsdMMc+kZ2orpfNUONAmbOvxtE31sScrIYteDFzTVyAoKcLaspmtOx1lUNy2cQb1CA8pNBfv+P1IW9WOFMzYfrM0AqlxvbR4Ulb+C8lzRphVnBNVdyVVBBq3trFl1XSqUccHMk0OqL32kWIYq0vS33DsBnerNUd5Z7sRzPvxFhRulF5d3WUQA/ESBMTJkIfK23HGqJU3H3ZyQdMqEYlr1mojyfPKzcrVg==
signature_date : 2022-05-24T19:00:48.013694
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']
1356cae1349d3a46692bcafeb9d275150d21ba024cc995d3d9368d906b41ac0a : spsetup-1.32.774.exe
fdf676c7ae7581ca0d2cc1387907e08428673c033fe99cec4c2a18cc3c102e2d : setup.py
58fa6574e3d6d6e2d2bc03f6dfd0bf8283dab0f95c8579ceb8df0244a2642412 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
21c0b1b8782c93dc8468582b351088c7d1699d8b2b6d93929b5c065325f63042 : luti.json
afe230224dfac47814ee1897c3fe02dff4c492e0228d3de13b0e9dae35c3ec9c : WAPT/control