mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
ce0ca7d30b
commit
fbe20f5506
2 changed files with 28 additions and 2 deletions
|
@ -0,0 +1,21 @@
|
||||||
|
diff --git a/app/src/cli.c b/app/src/cli.c
|
||||||
|
index f57b75efc..fd4525f55 100644
|
||||||
|
--- a/app/src/cli.c
|
||||||
|
+++ b/app/src/cli.c
|
||||||
|
@@ -2154,7 +2154,7 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
- case OPT_ORIENTATION:
|
||||||
|
+ case OPT_ORIENTATION: {
|
||||||
|
enum sc_orientation orientation;
|
||||||
|
if (!parse_orientation(optarg, &orientation)) {
|
||||||
|
return false;
|
||||||
|
@@ -2162,6 +2162,7 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
|
||||||
|
opts->display_orientation = orientation;
|
||||||
|
opts->record_orientation = orientation;
|
||||||
|
break;
|
||||||
|
+ }
|
||||||
|
case OPT_RENDER_DRIVER:
|
||||||
|
opts->render_driver = optarg;
|
||||||
|
break;
|
|
@ -23,9 +23,14 @@ build:
|
||||||
ninja-build.org: '*'
|
ninja-build.org: '*'
|
||||||
freedesktop.org/pkg-config: '*'
|
freedesktop.org/pkg-config: '*'
|
||||||
gnu.org/wget: '*'
|
gnu.org/wget: '*'
|
||||||
|
gnu.org/patch: '*'
|
||||||
working-directory: build
|
working-directory: build
|
||||||
script:
|
script:
|
||||||
|
# quick post-release patch to address a build failure:
|
||||||
|
# https://github.com/Genymobile/scrcpy/commit/4135c411af419f4f86dc9ec9301c88012d616c49
|
||||||
|
- run: patch -p1 < props/4135c411af419f4f86dc9ec9301c88012d616c49.diff
|
||||||
|
working-directory: ..
|
||||||
|
if: =2.3
|
||||||
- wget $PREBUILT_SERVER_URL -O scrcpy-server
|
- wget $PREBUILT_SERVER_URL -O scrcpy-server
|
||||||
- meson setup $ARGS ..
|
- meson setup $ARGS ..
|
||||||
- meson compile --verbose
|
- meson compile --verbose
|
||||||
|
@ -44,4 +49,4 @@ build:
|
||||||
provides:
|
provides:
|
||||||
- bin/scrcpy
|
- bin/scrcpy
|
||||||
|
|
||||||
test: scrcpy --version | grep {{version.marketing}}
|
test: scrcpy --version | grep {{version.marketing}}
|
||||||
|
|
Loading…
Reference in a new issue