redo InvokeAI package

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2023-01-29 14:10:23 -06:00
parent bc653726e0
commit da4e13ae70
5 changed files with 55 additions and 0 deletions

42
InvokeAI/Makefile Normal file
View File

@ -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

1
InvokeAI/compat Normal file
View File

@ -0,0 +1 @@
10

7
InvokeAI/control Normal file
View File

@ -0,0 +1,7 @@
Source: invokeai
Build-Depends:
Package: invokeai
Maintainer: Jeff Carr <jcarr@wit.com>
Architecture: amd64
Depends:
Description: install the invokeai installer

5
InvokeAI/postinst Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
echo
echo "Run: apt update && apt install wit"
echo