mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-09-27 03:38:35 +00:00
Improve portable builds
In portable builds, scrcpy-server.jar was supposed to be present in the current directory, so in practice it worked only if scrcpy was launched from its own directory. Instead, find the absolute path of the executable and build a suitable path to use scrcpy-server.jar from the same directory.
This commit is contained in:
parent
3b17ff7c86
commit
2755bfc255
6 changed files with 95 additions and 12 deletions
|
@ -93,8 +93,8 @@ conf.set_quoted('SCRCPY_VERSION', meson.project_version())
|
|||
# the prefix used during configuration (meson --prefix=PREFIX)
|
||||
conf.set_quoted('PREFIX', get_option('prefix'))
|
||||
|
||||
# build a "portable" version (with scrcpy-server.jar accessible from the
|
||||
# current directory)
|
||||
# build a "portable" version (with scrcpy-server.jar accessible from the same
|
||||
# directory as the executable)
|
||||
conf.set('PORTABLE', get_option('portable'))
|
||||
|
||||
# the default client TCP port for the "adb reverse" tunnel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue