You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -314,6 +314,14 @@ If FlagDownloadHash is set and the user does not use the **--skip-checksum** par
314
314
315
315
The default implementation of AppsHash is to call `sha256sum "$1"` directly.
316
316
317
+
### AppsRequestHash
318
+
319
+
AppsRequestHash is optional and supported since v1.4.0.
320
+
321
+
If FlagDownloadHash is non-null, AppsRequestHash should request the hash value from the FlagDownloadHash address and write the value into the RequestHashValue variable.
322
+
323
+
The default AppsRequestHash will use the first string value of the response as a hash, you can refer to [v2fly.sh](https://github.com/powerpuffpenguin/github-apps/blob/main/bin/github-apps.configure /v2fly.sh) to implement the AppsRequestHash function.
324
+
317
325
### AppsUnpack
318
326
319
327
The first incoming parameter of AppsUnpack is the path of the downloaded installation package. You need to unpack the compressed package in this function to install the application to the path specified by **FlagInstallDir**.
AppsBody="Project V is a set of network tools that helps you to build your own computer network. It secures your network connections and thus protects your privacy."
4
7
5
8
lib_Platform
9
+
10
+
# check os
11
+
local os
12
+
case$lib_OSin
13
+
windows)
14
+
selfExt=".exe"
15
+
os=$lib_OS
16
+
;;
17
+
darwin|linux)
18
+
selfExt=""
19
+
os=$lib_OS
20
+
;;
21
+
*)
22
+
FlagPlatformError="Not Supported: coredns on $lib_OS$lib_ARCH"
23
+
return
24
+
;;
25
+
esac
26
+
# check arch
27
+
local arch
28
+
case$lib_ARCHin
29
+
amd64)
30
+
arch=64
31
+
;;
32
+
*)
33
+
FlagPlatformError="Not Supported: coredns on $lib_OS$lib_ARCH"
0 commit comments