1
0

fix build 2 i hope

This commit is contained in:
dtb 2023-11-24 08:00:51 -07:00
parent 14687a0d60
commit d61222176e
2 changed files with 9 additions and 5 deletions

View File

@ -4,10 +4,12 @@ packages:
- hut
- python3
tasks:
- generate: |
make -C src dist/homepage
- package: |
make -C src dist/homepage.tar.gz
- vocalize: |
tar tzf dist/homepage.tar.gz
ls -l homepage.tar.gz
- upload: |
hut pages publish -d trinity.moe dist/homepage.tar.gz
hut pages publish -d trinity.moe src/dist/homepage.tar.gz

View File

@ -8,10 +8,12 @@ RM = rm -f
all:
HOMEPAGE_FILES = homepage favicon.ico banners/*
dist/homepage.tar.gz:
mkdir -p dist/homepage
cp $(HOMEPAGE_FILES) dist/homepage
cd dist/homepage; sh homepage; cd ../..
dist/homepage:
mkdir -p dist/homepage.tmp
cp $(HOMEPAGE_FILES) dist/homepage.tmp
cd dist/homepage.tmp; sh homepage; cd ../..
mv dist/homepage.tmp dist/homepage
dist/homepage.tar.gz: dist/homepage
tar cz -C dist/homepage . >dist/homepage.tar.gz
# i made this script to fetch icons for my grandmother and put them in icons/