diff options
author | crupest <crupest@outlook.com> | 2023-12-11 15:02:08 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2024-03-25 22:15:58 +0800 |
commit | 1714394aa177f279bf7323f60de7d98a07514850 (patch) | |
tree | f596960fea46f3e11b5fe27a436b40bf0c3c1f16 /tools/build-secret.bash | |
parent | 652080cb089d9bdecad66e67715ea9e6cb344386 (diff) | |
download | crupest-1714394aa177f279bf7323f60de7d98a07514850.tar.gz crupest-1714394aa177f279bf7323f60de7d98a07514850.tar.bz2 crupest-1714394aa177f279bf7323f60de7d98a07514850.zip |
tools(secret): move build-secret.bash.
Diffstat (limited to 'tools/build-secret.bash')
-rwxr-xr-x | tools/build-secret.bash | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/tools/build-secret.bash b/tools/build-secret.bash deleted file mode 100755 index 7f3ac29..0000000 --- a/tools/build-secret.bash +++ /dev/null @@ -1,42 +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 - -tools_dir=$(realpath "$(dirname "$0")") -secret_dir="$tools_dir/Crupest.V2ray" - -echo "Tools dir: ${tools_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!" |