Add the shared TLS 1.2 client kit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
a4d756e6ba
129 files changed
+1119
No files matched your search
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
# Copies the bundled-TLS network package into an app: ./install.sh <app dir> <java package>
|
||||
# e.g. ./install.sh ../freshmini org.freshmini.net
|
||||
set -euo pipefail
|
||||
here=$(cd "$(dirname "$0")" && pwd)
|
||||
app=$1 pkg=$2
|
||||
dir=$app/src/$(echo "$pkg" | tr . /)
|
||||
mkdir -p "$dir" "$app/assets"
|
||||
for f in "$here"/net/*.java; do sed "s/^package com\.minamp\.net;/package $pkg;/" "$f" > "$dir/$(basename "$f")"; done
|
||||
rm -rf "$app/assets/roots" && cp -r "$here/roots" "$app/assets/roots"
|
||||
echo "installed $(ls "$dir" | wc -l | tr -d ' ') classes in $dir and $(ls "$app/assets/roots" | wc -l | tr -d ' ') roots"
|
||||
Reference in new issue
Block a user