tis-prey icon

Prey

Paquet d’installation silencieuse pour Prey

1.13.12-3

  • package: tis-prey
  • name: Prey
  • version: 1.13.12-3
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: opensource_free,wapt_public
  • target_os: windows
  • impacted_process: Prey Anti-Theft
  • architecture: x64
  • signature_date:
  • size: 85.64 Mo
  • homepage : https://preyproject.com/

package           : tis-prey
version           : 1.13.12-3
architecture      : x64
section           : base
priority          : optional
name              : Prey
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : Prey lets you keep track of your laptop, phone and tablet whenever stolen or missing - easily and all in one place. It's lightweight, open source software that gives you full and remote control, 24/7
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : Prey Anti-Theft
description_fr    : Prey vous permet de suivre votre ordinateur portable, votre téléphone et votre tablette en cas de vol ou de disparition, facilement et en un seul endroit. Il s'agit d'un logiciel léger et open source qui vous donne un contrôle total et à distance, 24 heures sur 24 et 7 jours sur 7
description_pl    : Prey umożliwia śledzenie laptopa, telefonu i tabletu w przypadku kradzieży lub zaginięcia - łatwo i w jednym miejscu. Jest to lekkie oprogramowanie typu open source, które zapewnia pełną i zdalną kontrolę 24/7
description_de    : Mit Prey können Sie Ihren Laptop, Ihr Telefon und Ihr Tablet im Auge behalten, wenn sie gestohlen werden oder fehlen - ganz einfach und an einem Ort. Es ist eine leichtgewichtige Open-Source-Software, die Ihnen rund um die Uhr die volle Kontrolle und Fernsteuerung gibt
description_es    : Prey te permite hacer un seguimiento de tu portátil, teléfono y tableta en caso de robo o desaparición, de forma sencilla y todo en un mismo lugar. Es un software ligero y de código abierto que te ofrece un control total y remoto, 24/7
description_pt    : O Prey permite-lhe controlar o seu computador portátil, telemóvel e tablet sempre que for roubado ou desaparecer - facilmente e num único local. É um software leve e de código aberto que lhe dá controlo total e remoto, 24 horas por dia, 7 dias por semana
description_it    : Prey consente di tenere traccia di laptop, telefoni e tablet rubati o smarriti, in modo semplice e in un unico luogo. È un software leggero e open source che vi offre un controllo completo e remoto, 24 ore su 24, 7 giorni su 7
description_nl    : Met Prey kun je je laptop, telefoon en tablet in de gaten houden als deze gestolen of vermist worden - eenvoudig en allemaal op één plek. Het is lichtgewicht, open source software waarmee je 24/7 volledige controle op afstand hebt
description_ru    : Prey позволяет следить за ноутбуком, телефоном и планшетом в случае кражи или пропажи - легко и в одном месте. Это легкое программное обеспечение с открытым исходным кодом, которое обеспечивает полный и удаленный контроль, 24/7
audit_schedule    : 
editor            : 
keywords          : 
licence           : opensource_free,wapt_public
homepage          : https://preyproject.com/
package_uuid      : 19085949-6363-4632-b57a-a56360885277
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : 7a15bca1c6ee905e68b635ae2d2611c6891318f90d09743863f7d3e1ee12eceb
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-03-04T03:00:17.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         : oPNpbLl1vy2A5g7sR2TwNy2MZ1drd3y6pBkdYXvqMWrFFf2GmyiZfXILjKqTJ/IxPgOEM1GD6KeHZtIlMRhyD4JnGqhGMPBr/UQH27Zr8aTqDyTTiCofyWbtXInTPL+htM1yspFEwMMFBgBXxXUnkpXt34tBOSj7dF4FKS3N81XRjOfeFyzAtJoGeGI8hd6FeRuwRo+MNEh9BzNPj79vXRGky5XZOdWxTFyQBn10Md/aIBuOM9XnMifIPPsj0dm53fYZKpcpuF9A/9o7RrQFtb83hAUbHiZOl40v5NMb9mQsI42x5L12VZrZdbayhswSSkq+bXSYDKRhvqqhjlO2jw==

# -*- 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('prey-windows-*.msi')[0]
    # Installing the software

    install_msi_if_needed(
        bin_name,
        properties='AGREETOLICENSE="yes"',
        name="Prey Anti-Theft",
        min_version=control.get_software_version()
    )




# -*- coding: utf-8 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2024
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()
    app_name = control.name

    api_url = "https://api.github.com/repos/prey/prey-node-client/releases/latest"
    dict_arch = {
        "x64" :"-x64.msi",
        "x86" : '-x86.msi'
    }


    releases_dict = wgets(api_url, proxies=proxies, as_json=True)
    for asset in releases_dict["assets"]:
        if asset["browser_download_url"].endswith('.msi') and dict_arch[control.architecture] in asset["browser_download_url"]:
            download_url = asset["browser_download_url"]
            latest_bin = asset["name"]
            latest_bin_extension = latest_bin.rsplit('.', 1)[-1]
            version = releases_dict["tag_name"].replace('v','')
            break

    # Downloading latest binaries
    print(f"Latest {app_name} version is: {version}")
    print(f"Download URL is: {download_url}")
    if not isfile(latest_bin):
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print(f"Binary is present: {latest_bin}")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")

    for f in glob.glob(f'*.{latest_bin_extension}'):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
bcf32bc96269d4b573ab7a17585fead80916751462086001fda2b9cfec642b24 : WAPT/control
7a15bca1c6ee905e68b635ae2d2611c6891318f90d09743863f7d3e1ee12eceb : WAPT/icon.png
4b2316cb278eadd88d5c7870829098bb23d70abec73499e98c2019e6c6c91607 : luti.json
ece5fa874ac4d5a390480162ffebea463d3c500afa439e4ec318bbe6e1c25f3a : prey-windows-1.13.12-x64.msi
c33838f324cf0f5469806d3fc2ca7016bf4f7acc159331cdd91b0f986e295d3e : setup.py
b0488a53295104b8df57d34fb7003dfefb037479532167af6ac334fccb9a9168 : update_package.py