mirror of
https://github.com/Genymobile/scrcpy
synced 2024-12-19 13:51:22 +00:00
26bf209617
Since commit 2687d20280
, the Makefile
named release.mk stopped handling dependencies between recipes, because
they have to be executed separately (from different Github Actions
jobs).
Using a Makefile no longer provides any real benefit. Replace it by
several individual release scripts for simplicity and readability.
Refs #5306 <https://github.com/Genymobile/scrcpy/pull/5306>
PR #5515 <https://github.com/Genymobile/scrcpy/pull/5515>
15 lines
378 B
Bash
Executable File
15 lines
378 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
cd "$(dirname ${BASH_SOURCE[0]})"
|
|
. build_common
|
|
cd .. # root project dir
|
|
|
|
GRADLE="${GRADLE:-./gradlew}"
|
|
SERVER_BUILD_DIR="$WORK_DIR/build-server"
|
|
|
|
rm -rf "$SERVER_BUILD_DIR"
|
|
"$GRADLE" -p server assembleRelease
|
|
mkdir -p "$SERVER_BUILD_DIR/server"
|
|
cp server/build/outputs/apk/release/server-release-unsigned.apk \
|
|
"$SERVER_BUILD_DIR/server/scrcpy-server"
|