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 - hut
- python3 - python3
tasks: tasks:
- generate: |
make -C src dist/homepage
- package: | - package: |
make -C src dist/homepage.tar.gz make -C src dist/homepage.tar.gz
- vocalize: | - vocalize: |
tar tzf dist/homepage.tar.gz tar tzf dist/homepage.tar.gz
ls -l homepage.tar.gz ls -l homepage.tar.gz
- upload: | - 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: all:
HOMEPAGE_FILES = homepage favicon.ico banners/* HOMEPAGE_FILES = homepage favicon.ico banners/*
dist/homepage.tar.gz: dist/homepage:
mkdir -p dist/homepage mkdir -p dist/homepage.tmp
cp $(HOMEPAGE_FILES) dist/homepage cp $(HOMEPAGE_FILES) dist/homepage.tmp
cd dist/homepage; sh homepage; cd ../.. 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 tar cz -C dist/homepage . >dist/homepage.tar.gz
# i made this script to fetch icons for my grandmother and put them in icons/ # i made this script to fetch icons for my grandmother and put them in icons/