Fix install issues caused by LICENSE file

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2023-02-13 23:34:37 +01:00
parent ede1f74566
commit 85be425479
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B
3 changed files with 10 additions and 2 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
*.zip
readability/LICENSE

View File

@ -1,3 +1,6 @@
2.0.2
- Fix install issues caused by LICENSE file
2.0.1
- Fix version number
- Fix toolbar button title text

View File

@ -3,7 +3,7 @@ VERSION = 2.0.1
FILES = $(PROJECT)/main.qml
FILES += $(PROJECT)/metadata.desktop
FILES += LICENSE
FILES += $(PROJECT)/LICENSE
FILES += $(PROJECT)/data/Call.js
FILES += $(PROJECT)/data/Readability.js
FILES += $(PROJECT)/data/Toolbar.js
@ -22,14 +22,18 @@ IMAGES += $(PROJECT)/images/RM-Type-Controls-Arrow.svg
package: build
zip -X $(PROJECT)_v$(VERSION).zip $(FILES)
copy_license:
@cp "LICENSE" "$(PROJECT)/LICENSE"
copy_styles:
@cp "$(PROJECT)/data/style.orig.css" "$(PROJECT)/data/style.css"
build: copy_styles
build: copy_styles copy_license
$(foreach IMG,$(IMAGES), \
$(shell sed -i "s|{$(shell basename "$(IMG)")}|data:$(shell mimetype -b "$(IMG)");base64,$(shell basenc --base64 --wrap=0 "$(IMG)")|g" "$(PROJECT)/data/style.css") \
)
clean:
rm "$(PROJECT)/LICENSE"
rm "$(PROJECT)/data/style.css"
rm "./$(PROJECT)_v$(VERSION).zip"