tis-prey icon

Prey

Silent install package for Prey

1.13.11-3

  • package: tis-prey
  • name: Prey
  • version: 1.13.11-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.65 Mo
  • homepage : https://preyproject.com/

package           : tis-prey
version           : 1.13.11-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      : d4ca3145-8254-4756-9b3a-f16814260c7b
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-02T16:04:23.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         : OaAA8MxKXIyef8YesbrYs/5xs9endyPTAqI8M+jCN+VCJE30cfkJTL9smqIb9xa4G43fZPKC03lC2FX7k2HHTfD2pZqdYgL4I96TlL4t+ajqRKPw21zLoVKCW+7q2/0uNuDUwvNekFXkfk7V1B62MsTWS0i76Ma5GRweM26nl+XAD3RIGi17j9sOO1rxIzuEQRjHEVqDhMuYZordmDqGgG161wDz55nr+SRGS4kmMnzBomNK8Bq+8Ej5jccMcm/zK9TUqKqgKik6c81NPqEYiBtVq/BSZKqn2aKbtJpX5tilzDvqhT+kRaHCETExw4lOtMhGvE/y/ozkoBMLJwVIhQ==

# -*- 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
8c30f5c77aac42c61141fd73afbb2efaac18c75cdb435dc58f33af753adaef02 : WAPT/control
7a15bca1c6ee905e68b635ae2d2611c6891318f90d09743863f7d3e1ee12eceb : WAPT/icon.png
5a854c6435ea6a268689a3ea889191d2c726f6cb45d88300d7e21e730c108252 : luti.json
63e61005e093748773e173ddaac2fc6c1c8002fd73af0dbd9424bafd9eb1c766 : prey-windows-1.13.11-x64.msi
c33838f324cf0f5469806d3fc2ca7016bf4f7acc159331cdd91b0f986e295d3e : setup.py
b0488a53295104b8df57d34fb7003dfefb037479532167af6ac334fccb9a9168 : update_package.py