From da4e13ae70ab508d0b8679d1b33f556a5a4d53b8 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 29 Jan 2023 14:10:23 -0600 Subject: [PATCH] redo InvokeAI package Signed-off-by: Jeff Carr --- InvokeAI/Makefile | 42 +++++++++++++++++++++ InvokeAI/compat | 1 + InvokeAI/control | 7 ++++ InvokeAI/{ => files/opt/invokeai}/README.md | 0 InvokeAI/postinst | 5 +++ 5 files changed, 55 insertions(+) create mode 100644 InvokeAI/Makefile create mode 100644 InvokeAI/compat create mode 100644 InvokeAI/control rename InvokeAI/{ => files/opt/invokeai}/README.md (100%) create mode 100755 InvokeAI/postinst diff --git a/InvokeAI/Makefile b/InvokeAI/Makefile new file mode 100644 index 0000000..b79e119 --- /dev/null +++ b/InvokeAI/Makefile @@ -0,0 +1,42 @@ +VERSION=2023-notsure +BASENAME=invokeai + +all: clean extract DEBIAN build + cd .. && wit mirrors + +help: + @echo + @echo "make all # to attempt to download, extract and build the .deb package using dpkg" + @echo + +update-keyring: + curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >bazel-archive-keyring.gpg + +clean: + rm -rf ../files + rm -f ../*.deb + rm -f ../*.tar.xz data.tar.xz + rm -rf DEBIAN + +extract: + cp -r files .. + +# makes the DEBIAN/ directory +DEBIAN: + mkdir -p DEBIAN + + # make the md5sum file + cd ../files/ && find -type f -exec md5sum '{}' \; |sort -k2 >../md5sums + mv ../md5sums DEBIAN/ + + # make the control there + mkdir -p DEBIAN + cp control DEBIAN/ + echo Version: ${VERSION} >>DEBIAN/control + + cp postinst DEBIAN + +build: + mv DEBIAN ../files/ + cd .. && dpkg-deb --build files ${BASENAME}_${VERSION}_amd64.deb + cd .. && dpkg-deb --info ${BASENAME}_${VERSION}_amd64.deb diff --git a/InvokeAI/compat b/InvokeAI/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/InvokeAI/compat @@ -0,0 +1 @@ +10 diff --git a/InvokeAI/control b/InvokeAI/control new file mode 100644 index 0000000..2755ab3 --- /dev/null +++ b/InvokeAI/control @@ -0,0 +1,7 @@ +Source: invokeai +Build-Depends: +Package: invokeai +Maintainer: Jeff Carr +Architecture: amd64 +Depends: +Description: install the invokeai installer diff --git a/InvokeAI/README.md b/InvokeAI/files/opt/invokeai/README.md similarity index 100% rename from InvokeAI/README.md rename to InvokeAI/files/opt/invokeai/README.md diff --git a/InvokeAI/postinst b/InvokeAI/postinst new file mode 100755 index 0000000..82107c9 --- /dev/null +++ b/InvokeAI/postinst @@ -0,0 +1,5 @@ +#!/bin/sh + +echo +echo "Run: apt update && apt install wit" +echo