mirror of
https://github.com/daylinmorgan/yartsu.git
synced 2024-12-22 04:20:44 -06:00
build: remove shiv/nerd fonts stuff
This commit is contained in:
parent
87edc9032a
commit
2bcb6ad09b
1 changed files with 2 additions and 25 deletions
27
Makefile
27
Makefile
|
@ -1,6 +1,5 @@
|
|||
VERSION ?= $(shell git describe --tags --always --dirty=-dev | sed 's/^v//g')
|
||||
SRC_FILES := $(wildcard yartsu/*)
|
||||
# TODO: use git not pdm
|
||||
|
||||
.PHONY: lint typecheck build format
|
||||
|
||||
|
@ -11,7 +10,7 @@ typecheck: ## perform typechecking
|
|||
lint: ## format/lint with pre-commit(black,isort,flake8)
|
||||
pdm run pre-commit run --all
|
||||
|
||||
.PHONY: dist release release.assets dist build
|
||||
.PHONY: dist release release-assets dist build
|
||||
|
||||
release-assets: build/x86_64-unknown-linux-gnu/release/install/yartsu/yartsu check-version
|
||||
tar czf build/yartsu-$(VERSION)-x86_64-linux.tar.gz \
|
||||
|
@ -28,18 +27,8 @@ dist: ## build wheel/targz with pdm
|
|||
|
||||
build: build/x86_64-unknown-linux-gnu/release/install/yartsu/yartsu ## build with pyoxidizer
|
||||
|
||||
build/shiv/yartsu: $(SRC_FILES)
|
||||
@echo "==> Building yartsu w/ shiv <=="
|
||||
@mkdir -p build/shiv
|
||||
@shiv \
|
||||
-c yartsu \
|
||||
-o ./build/yartsu \
|
||||
--preamble scripts/preamble.py \
|
||||
--reproducible \
|
||||
.
|
||||
|
||||
build/x86_64-unknown-linux-gnu/release/install/yartsu/yartsu: $(SRC_FILES)
|
||||
@echo "==> Building yartsu w/ shiv <=="
|
||||
@echo "==> Building yartsu w/ pyxoxidizer <=="
|
||||
@pdm install
|
||||
@pyoxidizer build --release
|
||||
|
||||
|
@ -49,10 +38,6 @@ install-bin: build/x86_64-unknown-linux-gnu/release/install/yartsu/yartsu ## ins
|
|||
@echo "==> Installing yartsu to ~/bin <=="
|
||||
@cp ./build/x86_64-unknown-linux-gnu/release/install/yartsu/yartsu ~/bin
|
||||
|
||||
install-shiv: build/shiv/yartsu ## install shiv binary
|
||||
@echo "==> Installing yartsu to ~/bin <=="
|
||||
@cp ./build/shiv/yartsu ~/bin
|
||||
|
||||
DOCS_RECIPES := $(patsubst %,docs-%,theme diff svg demo)
|
||||
.PHONY: docs $(DOCS_RECIPES)
|
||||
docs: $(DOCS_RECIPES) ## generate docs/svg
|
||||
|
@ -67,14 +52,6 @@ docs-svg:
|
|||
@lolcat -F .5 -S 9 -f assets/logo.txt | yartsu -o assets/logo.svg
|
||||
@yartsu -o assets/help.svg -t "yartsu --help" -- yartsu -h
|
||||
|
||||
docs-demo:
|
||||
@python -c \
|
||||
"from rich.console import Console; \
|
||||
console = Console(force_terminal=True); \
|
||||
console.print('\n:snake: [b i]Emoji\'s!'); \
|
||||
console.print(' [cyan]Nerd Fonts!');" | \
|
||||
yartsu -w 25 -o assets/demo.svg
|
||||
|
||||
clean: ## cleanup build and loose files
|
||||
@rm -rf build dist capture.svg
|
||||
|
||||
|
|
Loading…
Reference in a new issue