src: extract service file into separate file

This commit is contained in:
Lukas Zapletal 2024-09-26 13:23:03 +02:00 committed by Ondřej Ezr
parent 8722d79fdf
commit 562a8c574e
3 changed files with 19 additions and 1 deletions

4
Makefile Normal file
View file

@ -0,0 +1,4 @@
FISTBOOT_SERVICE := $(shell base64 -w0 < aux/custom-first-boot.service)
src/constants.ts: aux/custom-first-boot.service
sed -i "s/.*FIRST_BOOT_SERVICE_DATA.*/export const FIRST_BOOT_SERVICE_DATA = '$(FISTBOOT_SERVICE)';/" $@