From dea0707f223e00b77e08f0997ba817cfaa8667cd Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 12 Dec 2024 19:44:06 -0500 Subject: [PATCH] update build-installer to work on non guix systems --- scripts/build-installer | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/scripts/build-installer b/scripts/build-installer index e8fd399..f989d01 100755 --- a/scripts/build-installer +++ b/scripts/build-installer @@ -1,6 +1,27 @@ #!/bin/sh retry="$(dirname $0)/guix-retry" repo="$(realpath "$(dirname $0)/..")" +extra_args="" + +if [ ! -d /gnu/store ]; then +# we are likely in a non guix system +# just for building the installer +# make sure to authorize the substitute +# servers for nonguix and sakura +guix archive --authorize < "$repo/files/keys/nonguix.pub" +guix archive --authorize < "$repo/files/keys/sakura.pub" +substitutes=$((cat <