Commit: a4996081e01af9b131207f8571628c22c82684c9 Parent: 0baeb30f9259673628657ee0b3a10aedf5a46bcb Author: Ren Tatsumoto Date: Tue, 6 Apr 2021 13:29:53 +0300 install the folder instead of one file Diffstat:
M | .github/RELEASE/Makefile | | | 35 | ++++++++++++++++++++--------------- |
M | README.md | | | 7 | +++++-- |
2 files changed, 25 insertions(+), 17 deletions(-)
diff --git a/.github/RELEASE/Makefile b/.github/RELEASE/Makefile @@ -1,22 +1,27 @@ -PROJECT = mpvacious -VERSION = v0.14 -MD2HTML = md2html --github --full-html -ZIP = $(PROJECT)_$(VERSION).zip -SCRIPT = $(PROJECT)_$(VERSION).lua -BRANCH = remotes/origin/master +PROJECT = mpvacious +VERSION = v0.14 +MD2HTML = md2html --github --full-html +ZIP = $(PROJECT)_$(VERSION).zip +BRANCH = remotes/origin/master +DOCS = README_$(VERSION).html +RELEASE_DIR = .github/RELEASE -.PHONY: all clean +.PHONY: all clean docs all: $(ZIP) +docs: $(DOCS) -$(ZIP): $(PROJECT) - zip -r $@ -- $^ +$(ZIP): $(DOCS) + cd -- "$$(git rev-parse --show-toplevel)" && \ + git archive \ + --prefix=$(PROJECT)_$(VERSION)/ \ + --format=zip \ + -o $(RELEASE_DIR)/$@ \ + --add-file=$(RELEASE_DIR)/$(DOCS) \ + $(BRANCH) \ -$(PROJECT): - mkdir -p -- ./$@ - git show "$(BRANCH):subs2srs.lua" > ./$@/$(SCRIPT) - git show "$(BRANCH):README.md" | $(MD2HTML) -o ./$@/README_$(VERSION).html - git show "$(BRANCH):LICENSE" > ./$@/LICENSE +$(DOCS): + git show "$(BRANCH):README.md" | $(MD2HTML) -o $@ clean: - rm -rf -- ./$(PROJECT)* + rm -- $(ZIP) $(DOCS) diff --git a/README.md b/README.md @@ -99,8 +99,11 @@ To test that, this shell command can be used: ### Manually -Save [subs2srs.lua](https://raw.githubusercontent.com/Ajatt-Tools/mpvacious/master/subs2srs.lua) -in the [mpv scripts](https://github.com/mpv-player/mpv/wiki/User-Scripts) folder: +Download the repository or +[the latest release](https://github.com/Ajatt-Tools/mpvacious/releases) +and extract the folder containing +[subs2srs.lua](https://raw.githubusercontent.com/Ajatt-Tools/mpvacious/master/subs2srs.lua) +to your [mpv scripts](https://github.com/mpv-player/mpv/wiki/User-Scripts) directory: | OS | Location | | --- | --- |