|
|
|
@ -19,13 +19,19 @@ mkdir -p ./release/packages
|
|
|
|
|
|
|
|
|
|
os_all='linux windows darwin freebsd android'
|
|
|
|
|
arch_all='386 amd64 arm arm64 mips64 mips64le mips mipsle riscv64'
|
|
|
|
|
extra_all='_ 6'
|
|
|
|
|
|
|
|
|
|
cd ./release
|
|
|
|
|
|
|
|
|
|
for os in $os_all; do
|
|
|
|
|
for arch in $arch_all; do
|
|
|
|
|
frp_dir_name="frp_${frp_version}_${os}_${arch}"
|
|
|
|
|
frp_path="./packages/frp_${frp_version}_${os}_${arch}"
|
|
|
|
|
for extra in $extra_all; do
|
|
|
|
|
suffix="${os}_${arch}"
|
|
|
|
|
if [ "x${extra}" != x"_" ]; then
|
|
|
|
|
suffix="${os}_${arch}_${extra}"
|
|
|
|
|
fi
|
|
|
|
|
frp_dir_name="frp_${frp_version}_${suffix}"
|
|
|
|
|
frp_path="./packages/frp_${frp_version}_${suffix}"
|
|
|
|
|
|
|
|
|
|
if [ "x${os}" = x"windows" ]; then
|
|
|
|
|
if [ ! -f "./frpc_${os}_${arch}.exe" ]; then
|
|
|
|
@ -38,15 +44,15 @@ for os in $os_all; do
|
|
|
|
|
mv ./frpc_${os}_${arch}.exe ${frp_path}/frpc.exe
|
|
|
|
|
mv ./frps_${os}_${arch}.exe ${frp_path}/frps.exe
|
|
|
|
|
else
|
|
|
|
|
if [ ! -f "./frpc_${os}_${arch}" ]; then
|
|
|
|
|
if [ ! -f "./frpc_${suffix}" ]; then
|
|
|
|
|
continue
|
|
|
|
|
fi
|
|
|
|
|
if [ ! -f "./frps_${os}_${arch}" ]; then
|
|
|
|
|
if [ ! -f "./frps_${suffix}" ]; then
|
|
|
|
|
continue
|
|
|
|
|
fi
|
|
|
|
|
mkdir ${frp_path}
|
|
|
|
|
mv ./frpc_${os}_${arch} ${frp_path}/frpc
|
|
|
|
|
mv ./frps_${os}_${arch} ${frp_path}/frps
|
|
|
|
|
mv ./frpc_${suffix} ${frp_path}/frpc
|
|
|
|
|
mv ./frps_${suffix} ${frp_path}/frps
|
|
|
|
|
fi
|
|
|
|
|
cp ../LICENSE ${frp_path}
|
|
|
|
|
cp -f ../conf/frpc.toml ${frp_path}
|
|
|
|
@ -63,5 +69,6 @@ for os in $os_all; do
|
|
|
|
|
rm -rf ${frp_path}
|
|
|
|
|
done
|
|
|
|
|
done
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
cd -
|
|
|
|
|