1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 00:50:12 +00:00

build: include latest banner automatically

now copied from images/ into static/ on build.
This commit is contained in:
Harvey Tindall 2024-08-04 21:03:36 +01:00
parent 8f3c723b07
commit 62e27c394d
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
4 changed files with 3 additions and 283 deletions

1
.gitignore vendored
View File

@ -25,3 +25,4 @@ scripts/langmover/lang
scripts/langmover/lang2 scripts/langmover/lang2
scripts/langmover/out scripts/langmover/out
tinyproxy.conf tinyproxy.conf
static/banner.svg

View File

@ -11,6 +11,7 @@ before:
- go mod download - go mod download
- rm -rf data/web - rm -rf data/web
- mkdir -p data/web/css - mkdir -p data/web/css
- cp images/banner.svg static/banner.svg
- bash -c 'cp -r static/* data/web/' - bash -c 'cp -r static/* data/web/'
- npm install - npm install
- npm install esbuild - npm install esbuild

View File

@ -167,6 +167,7 @@ copy:
mv $(DATA)/crash.html $(DATA)/html/ mv $(DATA)/crash.html $(DATA)/html/
$(info copying static data) $(info copying static data)
mkdir -p $(DATA)/web mkdir -p $(DATA)/web
cp images/banner.svg static/banner.svg
cp -r static/* $(DATA)/web/ cp -r static/* $(DATA)/web/
$(info copying systemd service) $(info copying systemd service)
cp jfa-go.service $(DATA)/ cp jfa-go.service $(DATA)/

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 58 KiB