From 8a8a6f992eba4021c2bfb8a6b8f4bda12f52a699 Mon Sep 17 00:00:00 2001 From: MatrixFurry Date: Tue, 17 Mar 2026 06:12:35 -0500 Subject: [PATCH] envision/pkg-install: install from staged path --- envision/pkg-install.nu | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/envision/pkg-install.nu b/envision/pkg-install.nu index b88c560..27d7d47 100644 --- a/envision/pkg-install.nu +++ b/envision/pkg-install.nu @@ -2,10 +2,20 @@ # SPDX-License-Identifier: AGPL-3.0-only # SPDX-FileCopyrightText: MatrixFurry +use std log + def main [ --uninstall (-u) + staged_path?: string ] { if not $uninstall { + if ($staged_path | is-empty) { + error make {msg: "please provide a path to the extracted archive"} + } + + cd $staged_path + log info $"Installing from (pwd)" + ./Envision-x86_64.AppImage --appimage-extract open squashfs-root/org.gabmus.envision.Devel.desktop -- 2.51.2