[Android] Move the remote access client git to the remote-access-client module directory
Nicolas Pomepuy
git at videolan.org
Wed Jan 29 07:16:54 UTC 2025
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Jan 28 15:01:30 2025 +0100| [afe591f95848e04528079cc6d4feeba08b70bfe8] | committer: Nicolas Pomepuy
Move the remote access client git to the remote-access-client module directory
> https://code.videolan.org/videolan/vlc-android/commit/afe591f95848e04528079cc6d4feeba08b70bfe8
---
application/remote-access-client/build.gradle | 8 ++++----
buildsystem/compile-remoteaccess.sh | 11 ++++++-----
buildsystem/gitlab/.gitlab-ci.yml | 6 +++---
3 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/application/remote-access-client/build.gradle b/application/remote-access-client/build.gradle
index b39ecc5d52..bcfb43fb50 100644
--- a/application/remote-access-client/build.gradle
+++ b/application/remote-access-client/build.gradle
@@ -61,7 +61,7 @@ android {
}
task webCopy(type: Copy) {
- from '../../remoteaccess/dist'
+ from 'remoteaccess/dist'
into 'assets/dist'
}
@@ -89,10 +89,10 @@ preBuild.dependsOn(webCopy)
def remoteAccessVersion() {
def code = new ByteArrayOutputStream()
try {
- if (file("../../remoteaccess/package.json").exists()) {
+ if (file("remoteaccess/package.json").exists()) {
exec {
- commandLine = ['bash', '-c', 'grep -m1 "version" ../../remoteaccess/package.json']
+ commandLine = ['bash', '-c', 'grep -m1 "version" remoteaccess/package.json']
standardOutput = code
}
return code.toString().split("\"")[3]
@@ -107,7 +107,7 @@ def remoteAccessRevision() {
try {
def hash = new ByteArrayOutputStream()
exec {
- commandLine = ['bash', '-c', 'git -C ../../remoteaccess rev-parse --short HEAD']
+ commandLine = ['bash', '-c', 'git -C remoteaccess rev-parse --short HEAD']
standardOutput = hash
}
return hash.toString()
diff --git a/buildsystem/compile-remoteaccess.sh b/buildsystem/compile-remoteaccess.sh
index c7b006efe8..cb09402a45 100755
--- a/buildsystem/compile-remoteaccess.sh
+++ b/buildsystem/compile-remoteaccess.sh
@@ -60,22 +60,23 @@ done
REMOTE_ACCESS_TESTED_HASH=543dcf36610e6944c85cbf355b4b934b8ae451d3
REMOTE_ACCESS_REPOSITORY=https://code.videolan.org/videolan/remoteaccess
- : ${VLC_REMOTE_ACCESS_PATH:="$(pwd -P)/remoteaccess"}
+ : ${VLC_REMOTE_ACCESS_PATH:="$(pwd -P)/application/remote-access-client/remoteaccess"}
+ diagnostic "VLC_REMOTE_ACCESS_PATH is $VLC_REMOTE_ACCESS_PATH"
if [ ! -d "$VLC_REMOTE_ACCESS_PATH" ] || [ ! -d "$VLC_REMOTE_ACCESS_PATH/.git" ]; then
diagnostic "Remote access sources: not found, cloning"
branch="main"
if [ ! -d "$VLC_REMOTE_ACCESS_PATH" ]; then
- git clone --single-branch --branch ${branch} "${REMOTE_ACCESS_REPOSITORY}"
- cd remoteaccess
+ git clone --single-branch --branch ${branch} "${REMOTE_ACCESS_REPOSITORY}" application/remote-access-client/remoteaccess
+ cd application/remote-access-client/remoteaccess
else # folder exist with only the artifacts
- cd remoteaccess
+ cd application/remote-access-client/remoteaccess
git init
git remote add origin "${REMOTE_ACCESS_REPOSITORY}"
git pull origin ${branch}
fi
git reset --hard ${REMOTE_ACCESS_TESTED_HASH} || fail "Remote access sources: REMOTE_ACCESS_TESTED_HASH ${REMOTE_ACCESS_TESTED_HASH} not found"
- cd ..
+ cd ../../..
fi
if [ "$INIT_ONLY" != 1 ]; then
diff --git a/buildsystem/gitlab/.gitlab-ci.yml b/buildsystem/gitlab/.gitlab-ci.yml
index 9f0fb4712d..8f9a48611e 100644
--- a/buildsystem/gitlab/.gitlab-ci.yml
+++ b/buildsystem/gitlab/.gitlab-ci.yml
@@ -9,7 +9,7 @@ variables:
VLC_ANDROID_IMAGE_30: registry.videolan.org/vlc-debian-android-3.0:20230621085943
VLC_ANDROID_IMAGE_40: registry.videolan.org/vlc-debian-android:20240731083648
VLC_WEB_BUILD_IMAGE: registry.videolan.org/videolan-alpine-node:20230523124511
- WEBSERVER_DIR: "./remoteaccess"
+ WEBSERVER_DIR: "./application/remote-access-client/remoteaccess"
default:
before_script: |
@@ -53,7 +53,7 @@ webserver-install-dependencies:
- npm install
artifacts:
paths:
- - remoteaccess/
+ - application/remote-access-client/remoteaccess/
when: on_success
expire_in: 1h
@@ -67,7 +67,7 @@ webserver-build:
- npm run build-android
artifacts:
paths:
- - remoteaccess/
+ - application/remote-access-client/remoteaccess/
when: on_success
expire_in: 1h
More information about the Android
mailing list