feat: add configurable user statistics
This commit is contained in:
+3
-2
@@ -6,6 +6,7 @@ version="${1:-0.1.0}"
|
||||
target="linux_amd64"
|
||||
name="billing_${version}_${target}"
|
||||
artifact="$root/bin/billing.so"
|
||||
cpa_revision="$(git -C "$root/.externals/CLIProxyAPI" rev-parse HEAD)"
|
||||
|
||||
if [[ ! "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+([.-][0-9A-Za-z.-]+)?$ ]]; then
|
||||
echo "Invalid version: $version" >&2
|
||||
@@ -30,12 +31,12 @@ printf '%s\n' \
|
||||
"target=linux/amd64" \
|
||||
"native_abi=1" \
|
||||
"rpc_schema=4" \
|
||||
"cliproxyapi_revision=85d2faddd17e6f4f8675a84ee28b131f702e8eaa+usage-context+usage-identity+request-lifecycle-cancel" \
|
||||
"cliproxyapi_revision=${cpa_revision}+usage-context+usage-identity+request-lifecycle-cancel" \
|
||||
>"$package_dir/VERSION.txt"
|
||||
|
||||
archive="$root/dist/$name.tar.gz"
|
||||
tar -czf "$archive" -C "$stage" "$name"
|
||||
sha256sum "$archive" >"$archive.sha256"
|
||||
(cd "$root/dist" && sha256sum "$name.tar.gz" >"$name.tar.gz.sha256")
|
||||
|
||||
echo "Packaged: $archive"
|
||||
echo "Checksum: $archive.sha256"
|
||||
|
||||
Reference in New Issue
Block a user