- package: tis-minishift-portable
- name: minishift
- version: 1.34.3-1
- categories: Development
- maintainer: WAPT Team,Tranquil IT,
- licence: opensource_free,wapt_public
- target_os: windows
- architecture: x64
- signature_date:
- size: 9.75 Mo
- homepage : https://okd.io/
package : tis-minishift-portable
version : 1.34.3-1
architecture : x64
section : base
priority : optional
name : minishift
categories : Development
maintainer : WAPT Team,Tranquil IT,
description : Minishift is a tool that lets you run OpenShift locally by running a single-node OpenShift cluster in a virtual machine. You can test OpenShift or develop with it, day-to-day, on your local host
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version : 2.3
sources :
installed_size :
impacted_process :
description_fr : Minishift est un outil qui vous permet d'exécuter OpenShift localement en exécutant un cluster OpenShift à nœud unique dans une machine virtuelle. Vous pouvez tester OpenShift ou développer avec lui, au quotidien, sur votre hôte local
description_pl : Minishift to narzędzie, które umożliwia lokalne uruchamianie OpenShift poprzez uruchomienie jednowęzłowego klastra OpenShift na maszynie wirtualnej. Możesz testować OpenShift lub rozwijać go z dnia na dzień na swoim lokalnym hoście
description_de : Minishift ist ein Werkzeug, mit dem Sie OpenShift lokal ausführen können, indem Sie einen Single-Node-OpenShift-Cluster in einer virtuellen Maschine betreiben. Sie können OpenShift täglich auf Ihrem lokalen Host testen oder damit entwickeln
description_es : Minishift es una herramienta que le permite ejecutar OpenShift localmente ejecutando un clúster OpenShift de un solo nodo en una máquina virtual. Puede probar OpenShift o desarrollar con él, día a día, en su host local
description_pt : O Minishift é uma ferramenta que permite executar o OpenShift localmente, executando um cluster OpenShift de nó único em uma máquina virtual. Você pode testar o OpenShift ou desenvolver com ele, diariamente, no seu host local
description_it : Minishift è uno strumento che consente di eseguire OpenShift localmente, eseguendo un cluster OpenShift a singolo nodo in una macchina virtuale. È possibile testare OpenShift o sviluppare con esso, giorno per giorno, sul proprio host locale
description_nl : Minishift is een tool waarmee je OpenShift lokaal kunt draaien door een single-node OpenShift cluster in een virtuele machine te draaien. Je kunt OpenShift testen of er dagelijks mee ontwikkelen op je lokale host
description_ru : Minishift - это инструмент, позволяющий запустить OpenShift локально, запустив одноузловой кластер OpenShift на виртуальной машине. Вы можете тестировать OpenShift или разрабатывать с его помощью повседневные проекты на своем локальном хосте
audit_schedule :
editor :
keywords :
licence : opensource_free,wapt_public
homepage : https://okd.io/
package_uuid : 31ea943c-dde9-42dc-856f-e1627256adca
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : 6ba7ef6ea7b8dc5214da6519140fc3bbc92c48c29e259f71101d30836fe99e49
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2024-09-21T15:03:09.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 : q6Pmw8wJznkqgqjK2fyr9fLyb4TqTppJQurX3JOHnecssfbNv089gnH2dyuerTt5WfkbWHocvRNbtS2jI3zoG3ZPx/L1NReKK1BPbEK2Pve90DsM7aWy8A4z8Ra9YXYQH286yn7Nmq+K8KMbopT/zBKGvrY1bMOicSUszlC9E9GSZCLaml1ATiGKC5XJJl58ykouIswnfXSMHrM+1tKkZvvldBXd1I5lleHCu9NFtdmsAn3p9YqVVSlCP2iKWCrDTY7AC1qsGEW170pu6MEZ8Cqr+96zdoZamFrsZDjiZnZdLYjMR5W/GA8tioP9RH22cw9SpTW0FiE571AABBDnBQ==
# -*- coding: utf-8 -*-
from setuphelpers import *
import glob
import os
app_name = "minishift"
app_dir = makepath(programfiles, app_name)
app_path = makepath(app_dir, "minishift.exe")
audit_version = False
def get_installed_version(app_path):
return get_file_properties(app_path).get("FileVersion", "")
def install():
# Find the zip file
zip_name = glob.glob(f"{app_name}*.zip")[0]
unzip_dest = makepath(".", "temp_dezip")
# Remove the temporary directory if it already exists
if isdir(unzip_dest):
remove_tree(unzip_dest)
# Extract the zip file
print(f"Extracting: {zip_name} to: {unzip_dest}")
unzip(zip_name, unzip_dest)
# List the contents of the temporary directory
extracted_files = os.listdir(unzip_dest)
print(f"Contents of the temporary directory after extraction: {extracted_files}")
# Find the name of the extracted directory or the extracted files
if not extracted_files:
raise Exception("No extracted files or directories found")
# If the first extracted item is a directory, use that directory, otherwise use unzip_dest
first_extracted_item = makepath(unzip_dest, extracted_files[0])
if isdir(first_extracted_item):
unzipped_dir = first_extracted_item
else:
unzipped_dir = unzip_dest
# Verify that the extracted directory exists
if not isdir(unzipped_dir):
raise Exception(f"Invalid source directory for copytree2: {unzipped_dir}")
# Remove the old application directory if it exists
if isdir(app_dir):
remove_tree(app_dir)
# Move the new extracted directory or files to the final installation directory
copytree2(unzipped_dir, app_dir, onreplace=default_overwrite)
# Remove the temporary directory
remove_tree(unzip_dest)
# Create custom shortcuts
create_programs_menu_shortcut(app_name, target=app_path)
# Get the desktop path
desktop_path = os.path.expanduser("~\\Desktop")
desktop_shortcut_path = makepath(desktop_path, f"{app_name}.lnk")
# Create the desktop shortcut
print(f"Creating desktop shortcut: {desktop_shortcut_path}")
create_shortcut(desktop_shortcut_path, target=app_path)
print(f"Desktop shortcut created successfully: {desktop_shortcut_path}")
def create_shortcut(shortcut_path, target):
try:
create_desktop_shortcut(shortcut_path, target=target)
return True
except Exception as e:
print(f"Error creating shortcut: {e}")
return False
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("%s is installed in version (%s) instead of (%s)" % (app_name, installed_version, control.get_software_version()))
audit_status = "WARNING"
elif isdir(app_dir) and not dir_is_empty(app_dir):
print("%s (%s) is installed" % (app_name, installed_version))
audit_status = "OK"
else:
print("%s is not installed" % app_name)
audit_status = "ERROR"
return audit_status
def uninstall():
# Uninstalling software
killalltasks(ensure_list(control.impacted_process))
if isdir(app_dir):
remove_tree(app_dir)
# Removing shortcuts
desktop_path = os.path.expanduser("~\\Desktop")
desktop_shortcut_path = makepath(desktop_path, f"{app_name}.lnk")
if os.path.exists(desktop_shortcut_path):
print(f"Removing desktop shortcut: {desktop_shortcut_path}")
os.remove(desktop_shortcut_path)
remove_programs_menu_shortcut(app_name)
# Additional check
if os.path.exists(desktop_shortcut_path):
print(f"Failed to remove desktop shortcut: {desktop_shortcut_path}")
else:
print(f"Desktop shortcut removed successfully: {desktop_shortcut_path}")
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import json
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
def update_package():
result = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
git_repo = "minishift/minishift"
url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo
# Getting latest version information from official sources
print("API used is: %s" % url_api)
json_load = json.loads(wgets(url_api, proxies=proxies))
for download in json_load["assets"]:
if download["browser_download_url"].endswith('.zip') :
url_dl = download["browser_download_url"]
version = json_load["tag_name"].replace("v","")
filename = download["name"]
break
if not isfile(filename):
package_updated = True
wget(url_dl,filename,proxies=proxies)
#nettoyer les fichiers temporaires
for f in glob.glob('*.zip'):
if f != filename:
remove_file(f)
control.set_software_version(version)
control.save_control_to_wapt()
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
9b9eec008f6492a4eecb8c5ad868300d7699b63cbfa5a6224ebec85d7c29dc3b : WAPT/control
6ba7ef6ea7b8dc5214da6519140fc3bbc92c48c29e259f71101d30836fe99e49 : WAPT/icon.png
337d85b278cda81bf6d49e6bf4e3bec5ab62e6b31e941b2255d454ee50e6d32e : luti.json
c86ff71252aa40f06ee3ee95964b3525a4e8922d7ec9c639e2c0624317507619 : minishift-1.34.3-windows-amd64.zip
0a593134f7e077935d719ae93a338abd4a6f9a54d94ad887a364c9e6880572dc : setup.py
becdee213099d03450183e6bee44366ca6f27c201bdbe66c8e6e48e00447002d : update_package.py