
- package: tis-tsip
- name: tSIP
- version: 0.3.7-2
- categories: Utilities,System and network
- maintainer: WAPT Team,Tranquil IT,Hubert TOUVET,Gaëtan SEGAT,Pierre COSSON
- editor: Tomasz Ostrowski
- licence: BSD license
- target_os: windows
- impacted_process: tSIP
- architecture: all
- signature_date:
- size: 3.61 Mo
- installed_size: 9.01 Mo
- homepage : https://github.com/tomek-o
package : tis-tsip
version : 0.3.7-2
architecture : all
section : base
priority : optional
name : tSIP
categories : Utilities,System and network
maintainer : WAPT Team,Tranquil IT,Hubert TOUVET,Gaëtan SEGAT,Pierre COSSON
description : Small, portable SIP softphone for Windows
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version : 2.1
sources : https://github.com/tomek-o/tSIP
installed_size : 9011200
impacted_process : tSIP
description_fr : Petit téléphone logiciel SIP portable pour Windows
description_pl : Mały, przenośny telefon programowy SIP dla Windows
description_de : Kleines, tragbares SIP-Softphone für Windows
description_es : Pequeño softphone SIP portátil para Windows
description_pt : Softphone SIP pequeno e portátil para Windows
description_it : Softphone SIP piccolo e portatile per Windows
description_nl : Kleine, draagbare SIP-softphone voor Windows
description_ru : Маленький, портативный SIP-софтфон для Windows
audit_schedule :
editor : Tomasz Ostrowski
keywords :
licence : BSD license
homepage : https://github.com/tomek-o
package_uuid : dec33d83-e66f-4bb0-8a27-0473a5eaa233
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : a361c9b4b98685af1111e479397274e7f81473d25985853ceb017fb7c9c2d025
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2024-11-29T16:00:49.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 : HERtQvIecaVXYJf166Aupwfiy+zkYdqmOJS/HL/RX20jEtjVMzmmvPWEb7LQtefxj2ycpVLumIq7Ga7CUIuMU+mNqAwODh6wgeeIzpsbUDpWMM0kukw0sBvdDi1HrhNCs0r+Sp5fMgkbI6M3NyoG8AvCjv8IfedYKhqNqpptzWkKX2+xPi5puE7YmnW87RWqbHp8DIrlLabAyrQBzH4v8piOqk6P9+S7HD0O0lA14OQHSIt5MaSRoUN5pY7YwiMsfdUIqkWahs5cvaTmFILMk/k1GZl5IJYsLrob6iwFiFt7pCcmGpIU3p5/QizhF7wItVDqB+cqGzstfuLmsjTihQ==
# -*- 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
bin_contains = "tSIP"
app_name = "tSIP"
app_dir = makepath(programfiles32, app_name)
app_path = makepath(app_dir, "tSIP.exe")
def install():
# Declaring local variables
package_version = control.get_software_version()
bin_name = glob.glob("*%s*.zip" % bin_contains)[0]
# Getting installed software version
if isfile(app_path):
if installed_softwares(name=app_name):
for installed_app in installed_softwares(name=app_name):
installed_version = installed_app["version"]
break
else:
installed_version = get_version_from_binary(app_path)
else:
installed_version = None
# Installing software
print("Installing: %s" % app_name)
if installed_version is None or Version(installed_version) < Version(package_version) or force:
killalltasks(control.get_impacted_process_list())
if isdir(app_dir):
remove_tree(app_dir)
mkdirs(app_dir)
print("Extracting: %s to: %s" % (bin_name, app_dir))
unzip(bin_name, ".")
temp_dir = bin_name.rsplit(".", 1)[0]
for file_to_move in glob.glob("%s/*" % temp_dir):
shutil.move(file_to_move, app_dir)
remove_tree(temp_dir)
# Creating shortcuts
icon_path = app_path
create_desktop_shortcut(app_name, app_path, icon=icon_path)
create_programs_menu_shortcut(app_name, app_path, icon=icon_path)
# Adding software to "list-registry"
print("Registering: %s to Windows Registry" % app_name)
register_windows_uninstall(control, win64app=iswin64())
register_uninstall(app_name, win64app=iswin64(), icon=icon_path)
else:
print("%s is already installed. Skipping" % app_name)
def uninstall():
# Uninstalling software
killalltasks(control.get_impacted_process_list())
if isdir(app_dir):
remove_tree(app_dir)
unregister_uninstall(app_name, win64app=iswin64())
# Removing shortcuts
remove_desktop_shortcut(app_name)
remove_programs_menu_shortcut(app_name)
def audit():
# Declaring local variables
package_version = control.get_software_version()
installed_version = None
# Getting installed software version
for installed_app in installed_softwares(name=app_name):
installed_version = installed_app["version"]
break
# Auditing software
print("Auditing: %s" % control.package)
if installed_version is None:
print("%s is not installed" % app_name)
return "ERROR"
elif Version(installed_version) != Version(package_version):
print("%s is installed in version (%s) instead of (%s)" % (app_name, installed_version, package_version))
return "WARNING"
else:
print("%s is installed in correct version (%s)" % (app_name, installed_version))
return "OK"
# -*- coding: utf-8 -*-
from setuphelpers import *
import json
def update_package():
# Declaring local variables
package_updated = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
app_name = control.name
api_url = "https://api.github.com/repos/tomek-o/tSIP/releases/latest"
# Getting latest version information from official sources
print("API used is: %s" % api_url)
json_load = json.loads(wgets(api_url, proxies=proxies))
for download in json_load["assets"]:
if "tSIP" in download["name"]:
download_url = download["browser_download_url"]
version = json_load["tag_name"].split("-")[-1].replace("v", "")
latest_bin = download["name"]
break
# Downloading latest binaries
print("Latest %s version is: %s" % (app_name, version))
print("Download URL is: %s" % download_url)
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(download_url, latest_bin, proxies=proxies)
else:
print("Binary is present: %s" % latest_bin)
# 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)))
package_updated = True
else:
print("Software version up-to-date (%s)" % Version(version))
control.set_software_version(version)
control.save_control_to_wapt()
# Deleting outdated binaries
remove_outdated_binaries(version)
# Validating update-package-sources
return package_updated
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
5ad4663640fea017252eeb5a75dd1d5d7158741abc91b6bf747bac8bcb8f6ff5 : WAPT/changelog.txt
230738b64cb7d57b99392906b47adb7d36a98dbb4522ba17ad2175a7181c00ab : WAPT/control
a361c9b4b98685af1111e479397274e7f81473d25985853ceb017fb7c9c2d025 : WAPT/icon.png
95bd8b9270b221dcb88805b2708623b3410c99a668d9891b9f00474d2e2e0324 : luti.json
2cd516a1527aeca833964890745dc128f14a40654e6b468b4f4d27c3a9699292 : setup.py
f80ee2b9037f457d04541c82cb503e2bf36eff9a05f49a69cc7b4e6e306c7968 : tSIP_0_3_07_bin.zip
4af7f65d1c033fc668e29fc0c16cdfb2e4f3707c0999a4bdcb20293c2595cb8d : update_package.py
0.2.9
===
split update package
update to git
improve code