diff options
author | crupest <crupest@outlook.com> | 2024-10-03 14:29:09 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2024-10-03 14:29:09 +0800 |
commit | ddb23b83bd3beda11389455ba6926ac9ce3d481e (patch) | |
tree | 300745f607c2e40aa7525408c9025c6a1e768110 /tools/Crupest.V2ray/build-secret.bash | |
parent | a178b04f3c2168203e90fa9cd7f92513f8a12bcb (diff) | |
download | crupest-ddb23b83bd3beda11389455ba6926ac9ce3d481e.tar.gz crupest-ddb23b83bd3beda11389455ba6926ac9ce3d481e.tar.bz2 crupest-ddb23b83bd3beda11389455ba6926ac9ce3d481e.zip |
Rename secret tool.
Diffstat (limited to 'tools/Crupest.V2ray/build-secret.bash')
-rwxr-xr-x | tools/Crupest.V2ray/build-secret.bash | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/tools/Crupest.V2ray/build-secret.bash b/tools/Crupest.V2ray/build-secret.bash deleted file mode 100755 index bc5c7ee..0000000 --- a/tools/Crupest.V2ray/build-secret.bash +++ /dev/null @@ -1,41 +0,0 @@ -#! /usr/bin/env bash - -set -e - -function print_argument_error_message_and_exit() { - argument_error_message="You must specify exactly one argument, the build target (win-x64 | linux-x64 | osx-x64)." - echo "$argument_error_message" - exit 1 -} - - - -if [[ $# != 1 ]]; then - print_argument_error_message_and_exit -fi - -case "$1" in - win-x64 | linux-x64 | osx-x64) - echo "Build target: $1" - ;; - *) - print_argument_error_message_and_exit - ;; -esac - -secret_dir=$(realpath "$(dirname "$0")") - -echo "Secret dir: ${secret_dir}" - -echo "Check dotnet..." -dotnet --version - -echo "Enter \"secret\" dir..." -pushd "$secret_dir" - -echo "Begin to build..." -dotnet publish Crupest.V2ray -c Release -o "$secret_dir/publish" --sc -r "$1" - -popd - -echo "Finish!" |