Skip to content

Commit 6f4125b

Browse files
committed
Revert "perf(shim): Update kiennq-shim to v3.1 (#5841)"
This reverts commit 5153d73. #1606 (comment)
1 parent 2f44f44 commit 6f4125b

File tree

7 files changed

+57
-4
lines changed

7 files changed

+57
-4
lines changed

CHANGELOG.md

-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151

5252
- **decompress:** Disable progress bar to improve `Expand-Archive` performance ([#5410](https://github.com/ScoopInstaller/Scoop/issues/5410))
5353
- **scoop-search:** Improve performance for local search ([#5324](https://github.com/ScoopInstaller/Scoop/issues/5324))
54-
- **shim:** Update kiennq-shim to v3.1 ([#5841](https://github.com/ScoopInstaller/Scoop/issues/5841))
5554

5655
### Code Refactoring
5756

supporting/shims/kiennq/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.zip
2+
*.bak

supporting/shims/kiennq/Makefile

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
2+
VER?=2.2.1
3+
ZIP=shimexe.zip
4+
URL?=https://github.com/kiennq/scoop-better-shimexe/releases/download/$(VER)/$(ZIP)
5+
LATEST_URL?=https://github.com/kiennq/scoop-better-shimexe/releases/latest
6+
NEWVER=$(shell cat version.txt)
7+
8+
all: verify ## make download unzip verify
9+
10+
version.txt:
11+
@curl --max-redirs 0 -s -D - -o /dev/null $(LATEST_URL) | grep -i ^location | sed -E -e "s|.*/([^/]+)$$|\1|" >version.txt
12+
@printf "%s " "Latest version is:"
13+
@cat version.txt
14+
15+
check: version.txt ## Check the version number in version.txt and update if needed
16+
17+
bump: check ## Bump version number in Makefile
18+
@rm -f Makefile.bak
19+
@sed -i.bak -e 's|=$(VER)|=$(NEWVER)|' Makefile
20+
@cmp --quiet Makefile{,.bak} || echo "Makefile bumped from $(VER) to $(NEWVER)"
21+
22+
$(ZIP): version.txt
23+
curl -L -s -o $(ZIP) $(URL)
24+
@touch $@
25+
26+
download: $(ZIP) ## Download shim from https://github.com/kiennq/scoop-better-shimexe
27+
28+
shim.exe: $(ZIP)
29+
unzip -z -j -o $(ZIP)
30+
@touch $@
31+
32+
unzip: shim.exe ## Unzip download
33+
34+
verify: shim.exe ## Verify SHA256 checksum for shim.exe
35+
sed -e "s|bin/||" checksum.sha256 | sha256sum -c
36+
37+
clean: ## Clean .zip files
38+
rm -f *.zip
39+
40+
help: ## Display help text
41+
@printf "%-8s %s\n" Target Description
42+
@printf "%-8s %s\n" '--------' '------------------------------------------'
43+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "%-8s %s\n", $$1, $$2}'
44+
45+
.PHONY: all
46+
.PHONY: bump
47+
.PHONY: check
48+
.PHONY: clean
49+
.PHONY: download
50+
.PHONY: help
51+
.PHONY: unzip
52+
.PHONY: verify
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
554aac610eae2cd61cae3dea0c66fd8283e95eb9c4af5dd9e591197c6a28e119 *shim.exe
1+
aa685053f4a5c0e7145f2a27514c8a56ceae25b0824062326f04037937caa558 bin/shim.exe
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
88bba1bbe84a1cc0c2492e7c87d761ea449ce80818d619b763f2c6391e114992864e1cf7cd3121350c0bae20bd48a834e56a304d35e8fabcf2dfee58b223e841 *shim.exe
1+
67c605c8163869d8ef8153c64eb09b82645cbae8228928c0fef944d0259a7b2d3791ecf4b4b01e23566916a878ee7977bfc1a59846bccf3c63bd6a1cf4f521b5 bin/shim.exe

supporting/shims/kiennq/shim.exe

-9.5 KB
Binary file not shown.

supporting/shims/kiennq/version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v3.1
1+
2.2.1

0 commit comments

Comments
 (0)