Insomnie-Paket
Veröffentlicht: 27. September 2023 – 14:18 Uhr
Guten Morgen
Ich habe versucht, ein Paket zur Installation des Insomnia-Programms zu erstellen (https://insomnia.rest/downloadDies kann über eine portable Anwendung oder mit einer Anwendung, die sich in AppData installiert, installiert werden (ich konnte die Installation mit dieser Methode nicht abschließen)
Ich habe versucht, meine Arbeit auf dem tis-bitwarden-portable-Paket aufzubauen
Nachfolgend finden Sie die setup.py-Datei
Die in AppData gespeicherte Anwendung wird jedoch während der Deinstallation nicht gelöscht...
Ich habe den Eindruck, dass die Sitzungseinrichtung nach der Installation der Anwendung nicht automatisch startet; ich muss sie mit `wapt-get session-setup -f ALL` erzwingen
Können Sie mir helfen, mein Angebot zu verbessern?
Vielen Dank an alle
Ich habe versucht, ein Paket zur Installation des Insomnia-Programms zu erstellen (https://insomnia.rest/downloadDies kann über eine portable Anwendung oder mit einer Anwendung, die sich in AppData installiert, installiert werden (ich konnte die Installation mit dieser Methode nicht abschließen)
Ich habe versucht, meine Arbeit auf dem tis-bitwarden-portable-Paket aufzubauen
Nachfolgend finden Sie die setup.py-Datei
Code: Alle auswählen
# -*- coding: utf-8 -*-
from setuphelpers import *
app_bin = "Insomnia.Core-2023.5.8-portable.exe"
app_dir = makepath(programfiles32, "Insomnia")
app_bin_path = makepath(app_dir, app_bin)
processes_to_kill = ["Insomnia"]
def install():
# Initializing variables
package_version = control.version.split("-", 1)[0]
bin_name = bin_name = glob.glob("Insomnia.Core-*.exe")[0]
# Installing the package
print("Installing: %s" % bin_name)
if get_version_from_binary(app_bin_path) != package_version:
killalltasks(processes_to_kill)
if isdir(app_dir):
remove_tree(app_dir)
mkdirs(app_dir)
print("Copying %s to %s " % (bin_name, app_bin_path))
filecopyto(bin_name, app_bin_path)
# remove_programs_menu_shortcut("Insomnia")
# Adding this package to the "list-registry"
register_windows_uninstall(control) # control is a PackageEntry object corresponding to this package
else:
print("%s portable version is already installed in the correct version" % "Insomnia")
def session_setup():
# Initializing variables
user_app_dir = makepath(application_data, "Insomnia")
user_app_bin_path = makepath(user_app_dir, app_bin)
# Installing the package in user env
print("Installing: %s in user env" % "Insomnia")
if get_version_from_binary(user_app_bin_path) != installed_softwares("Insomnia")[0]["version"]:
killalltasks(processes_to_kill)
if isdir(user_app_dir):
remove_tree(user_app_dir)
mkdirs(user_app_dir)
print("Copying %s to %s " % (app_bin_path, user_app_bin_path))
filecopyto(app_bin_path, user_app_bin_path)
create_user_programs_menu_shortcut("Insomnia", user_app_bin_path)
else:
print("%s portable version in user env is already installed in the correct version" % "Insomnia")
def uninstall():
# Uninstalling the package
killalltasks(processes_to_kill)
if isdir(app_dir):
remove_tree(app_dir)
unregister_uninstall("Insomnia")Ich habe den Eindruck, dass die Sitzungseinrichtung nach der Installation der Anwendung nicht automatisch startet; ich muss sie mit `wapt-get session-setup -f ALL` erzwingen
Können Sie mir helfen, mein Angebot zu verbessern?
Vielen Dank an alle