mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-17 05:24:19 +01:00
simplify
This commit is contained in:
@@ -1,10 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# This file is intended to be sourced by other scripts, not executed
|
# This file is intended to be sourced by other scripts, not executed
|
||||||
|
#
|
||||||
process_args() {
|
process_args() {
|
||||||
if [[ $# != 3 ]]
|
if [[ $# != 3 ]]
|
||||||
then
|
then
|
||||||
# <host>: win32 or win64
|
# <host>: linux, macos, win32 or win64
|
||||||
# <build_type>: native or cross
|
# <build_type>: native or cross
|
||||||
# <link_type>: static or shared
|
# <link_type>: static or shared
|
||||||
echo "Syntax: $0 <host> <build_type> <link_type>" >&2
|
echo "Syntax: $0 <host> <build_type> <link_type>" >&2
|
||||||
@@ -12,8 +11,8 @@ process_args() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
HOST="$1"
|
HOST="$1"
|
||||||
BUILD_TYPE="$2" # native or cross
|
BUILD_TYPE="$2"
|
||||||
LINK_TYPE="$3" # static or shared
|
LINK_TYPE="$3"
|
||||||
DIRNAME="$HOST-$BUILD_TYPE-$LINK_TYPE"
|
DIRNAME="$HOST-$BUILD_TYPE-$LINK_TYPE"
|
||||||
|
|
||||||
if [[ "$BUILD_TYPE" != native && "$BUILD_TYPE" != cross ]]
|
if [[ "$BUILD_TYPE" != native && "$BUILD_TYPE" != cross ]]
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ex
|
set -ex
|
||||||
DEPS_DIR=$(dirname ${BASH_SOURCE[0]})
|
. $(dirname ${BASH_SOURCE[0]})/_init "$@"
|
||||||
cd "$DEPS_DIR"
|
|
||||||
. common
|
|
||||||
|
|
||||||
VERSION=36.0.0
|
VERSION=36.0.0
|
||||||
FILENAME=platform-tools_r$VERSION-linux.zip
|
FILENAME=platform-tools_r$VERSION-linux.zip
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ex
|
set -ex
|
||||||
DEPS_DIR=$(dirname ${BASH_SOURCE[0]})
|
. $(dirname ${BASH_SOURCE[0]})/_init "$@"
|
||||||
cd "$DEPS_DIR"
|
|
||||||
. common
|
|
||||||
|
|
||||||
VERSION=36.0.0
|
VERSION=36.0.0
|
||||||
FILENAME=platform-tools_r$VERSION-darwin.zip
|
FILENAME=platform-tools_r$VERSION-darwin.zip
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ex
|
set -ex
|
||||||
DEPS_DIR=$(dirname ${BASH_SOURCE[0]})
|
. $(dirname ${BASH_SOURCE[0]})/_init "$@"
|
||||||
cd "$DEPS_DIR"
|
|
||||||
. common
|
|
||||||
|
|
||||||
VERSION=36.0.0
|
VERSION=36.0.0
|
||||||
FILENAME=platform-tools_r$VERSION-win.zip
|
FILENAME=platform-tools_r$VERSION-win.zip
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ex
|
set -ex
|
||||||
DEPS_DIR=$(dirname ${BASH_SOURCE[0]})
|
. $(dirname ${BASH_SOURCE[0]})/_init
|
||||||
cd "$DEPS_DIR"
|
|
||||||
. common
|
|
||||||
process_args "$@"
|
process_args "$@"
|
||||||
|
|
||||||
VERSION=1.5.0
|
VERSION=1.5.0
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ex
|
set -ex
|
||||||
DEPS_DIR=$(dirname ${BASH_SOURCE[0]})
|
. $(dirname ${BASH_SOURCE[0]})/_init
|
||||||
cd "$DEPS_DIR"
|
|
||||||
. common
|
|
||||||
process_args "$@"
|
process_args "$@"
|
||||||
|
|
||||||
VERSION=7.1.1
|
VERSION=7.1.1
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ex
|
set -ex
|
||||||
DEPS_DIR=$(dirname ${BASH_SOURCE[0]})
|
. $(dirname ${BASH_SOURCE[0]})/_init
|
||||||
cd "$DEPS_DIR"
|
|
||||||
. common
|
|
||||||
process_args "$@"
|
process_args "$@"
|
||||||
|
|
||||||
VERSION=1.0.29
|
VERSION=1.0.29
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ex
|
set -ex
|
||||||
DEPS_DIR=$(dirname ${BASH_SOURCE[0]})
|
. $(dirname ${BASH_SOURCE[0]})/_init
|
||||||
cd "$DEPS_DIR"
|
|
||||||
. common
|
|
||||||
process_args "$@"
|
process_args "$@"
|
||||||
|
|
||||||
VERSION=2.32.8
|
VERSION=2.32.8
|
||||||
|
|||||||
Reference in New Issue
Block a user