
arduino
Silent install package for arduino
0.70.4-1
- package: tis-arduinoaugmente-portable
- name: arduino
- version: 0.70.4-1
- maintainer: Amel FRADJ
- target_os: windows
- architecture: all
- signature_date:
- size: 274.03 Mo
- homepage : https://www.duinoedu.com/arduinoaugmente-default.html
package : tis-arduinoaugmente-portable
version : 0.70.4-1
architecture : all
section : base
priority : optional
name : arduino
categories :
maintainer : Amel FRADJ
description : Arduino is an excellent tool for developing interactive objects
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version :
sources :
installed_size :
impacted_process :
description_fr : Arduino est un excellent outil pour développer des objets interactifs
description_pl : Arduino to doskonałe narzędzie do tworzenia interaktywnych obiektów
description_de : Arduino ist ein hervorragendes Werkzeug zur Entwicklung interaktiver Objekte
description_es : Arduino es una herramienta excelente para desarrollar objetos interactivos
description_pt : O Arduino é uma excelente ferramenta para desenvolver objectos interactivos
description_it : Arduino è un ottimo strumento per sviluppare oggetti interattivi
description_nl : Arduino is een uitstekend hulpmiddel voor het ontwikkelen van interactieve objecten
description_ru : Arduino - отличный инструмент для разработки интерактивных объектов
audit_schedule :
editor :
keywords :
licence :
homepage : https://www.duinoedu.com/arduinoaugmente-default.html
package_uuid : 40a354f1-1c86-46d5-971d-08bde7e5f691
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version : 6.3
max_os_version :
icon_sha256sum : f47f02f8a7a9aebc04d32ae13b927b2b821f33117493a77e5c1c51658f084ccf
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : SNgsLH4bSZU2cNGwNny2JWibBLEkh+u2TOgdZ0Kpk/gWGeJQL90idj1O5SxO4tvpAqmkmBCgRXYtXyoxoMhOgb8Lgsr28GtCgrlH3UTzQvYcnasSSW4GjKwjB6kW3YcUBIXRi1ikpnECT9Tak9lbQLUJim06ssyy2jFD7QuSuEICpuwstFxCeFDGBiuBooSOQZMAgc/JM3yuWWfOEhjECBv+LKBN0eviDWIciTSoO4UiCN0uwnaJENzuqQSxY/xRp2wQ44uGdEjr+jnYWz8ClDYx6Ic+F+hZEuUvOrW26fgGd1WJDAXa/TC2iAiVDqYt/c9ts9bk69SeDecpWWTFwA==
signature_date : 2024-07-10T09:01:20.761208
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 glob
import os
app_name = "arduino"
editor_dir = makepath(programfiles, "arduino")
app_dir = makepath(editor_dir, "arduino")
app_path = "" # Initialisation vide, sera mise à jour dynamiquement
audit_version = False
def get_installed_version(app_path):
return get_file_properties(app_path).get("FileVersion", "")
def install():
# Declaring local variables
zip_files = glob.glob("ArduinoAug_*.zip")
if not zip_files:
print("No arduino ZIP file found.")
return
zip_name = zip_files[0]
unzipped_dir = "arduino"
# Installing software
killalltasks(ensure_list(control.impacted_process))
if isdir(app_dir) and force:
remove_tree(app_dir)
mkdirs(app_dir)
print(f"Extracting: {zip_name} to: {unzipped_dir}")
unzip(zip_name, unzipped_dir)
# Finding the extracted directory with version
extracted_version_dirs = glob.glob(os.path.join(unzipped_dir, "ArduinoAug_*"))
if not extracted_version_dirs:
print("No versioned arduino directory found after extraction.")
return
extracted_version_dir = extracted_version_dirs[0] # Assuming one version directory is present
print(f'Copy arduino from {extracted_version_dir} to {app_dir}')
copytree2(extracted_version_dir, app_dir, onreplace=default_overwrite)
global app_path
app_path = makepath(app_dir, "arduino.exe")
# Creating custom shortcuts
create_desktop_shortcut(app_name, target=app_path)
create_programs_menu_shortcut(app_name, target=app_path)
def audit():
# Auditing software
audit_status = "OK"
installed_version = get_installed_version(app_path)
if Version(installed_version) < Version(control.get_software_version()) and audit_version:
print(f"{app_name} is installed in version ({installed_version}) instead of ({control.get_software_version()})")
audit_status = "WARNING"
elif isdir(app_dir) and not dir_is_empty(app_dir):
print(f"{app_name} ({installed_version}) is installed")
audit_status = "OK"
else:
print(f"{app_name} is not installed")
audit_status = "ERROR"
return audit_status
def uninstall():
# Uninstalling software
killalltasks(ensure_list(control.impacted_process))
if isdir(app_dir):
remove_tree(app_dir)
if dir_is_empty(editor_dir):
remove_tree(editor_dir)
# Removing shortcuts
remove_desktop_shortcut(app_name)
remove_programs_menu_shortcut(app_name)
from setuphelpers import *
import json
import re
import requests
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
# Getting latest version from official sources
re_versions = re.compile(r'ArduinoAug_([\d\.]+)_STA.zip')
index = wgets("https://duinoedu.com/dl/logiciels/arduino/arduino_augmente/version_duinoedu/DERNIERE_VERSION/1_STANDARD_VERSION/", proxies=proxies)
for versionarduino in sorted(re_versions.findall(index), key=lambda p: (Version(p)), reverse=True):
latest_bin = "ArduinoAug_%s_STA.zip" % versionarduino
download_url = "https://duinoedu.com/dl/logiciels/arduino/arduino_augmente/version_duinoedu/DERNIERE_VERSION/1_STANDARD_VERSION/"+ latest_bin
if not requests.head(download_url, proxies=proxies).status_code == 404:
version = versionarduino
break
# remove files
for f in glob.glob("*.zip"):
if f != latest_bin:
remove_file(f)
# Downloading latest binaries
wget(download_url, latest_bin, proxies=proxies)
control.set_software_version(version)
control.save_control_to_wapt()
8cab4e1c5df94a99c652781d660fc9906cb792545d4155e9bbc7408409f2e823 : setup.py
d84c547998fac55472ed13adc31581336e1f3d4f44e8424370ebeb1e96d53691 : update_package.py
f47f02f8a7a9aebc04d32ae13b927b2b821f33117493a77e5c1c51658f084ccf : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
2b300ea30ace91dadf514faeadf8bc7a30ad0fb549686b941249a6177e4ee0b2 : luti.json
1fb64fddb302b5358b431c06e3a0ffa52215d165ac56e4da7b775db733d42b0d : ArduinoAug_0.70.04_STA.zip
bdbc8154e4a1c39abe614dbcf976b28aadca7e47af4a8061b6620a4a4c225ec7 : WAPT/control