Repository navigation
Expand file tree
/
Copy pathsetup
More file actions
executable file
·50 lines (40 loc) · 1.43 KB
/
Copy pathsetup
File metadata and controls
executable file
·50 lines (40 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env bash
# Copyright 2026 Dan Keder
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This file includes code modified from
# https://github.com/ludeeus/integration_blueprint/, which is licensed under
# the MIT License.
#
set -e
cd "$(dirname "$0")/.."
# Configure go2rtc version (update this when needed)
GO2RTC_VERSION="1.9.14"
# Install go2rtc if not already installed
if ! command -v go2rtc &> /dev/null; then
echo "Installing go2rtc v${GO2RTC_VERSION}..."
# Determine architecture
ARCH=$(uname -m)
case $ARCH in
x86_64) ARCH="amd64" ;;
aarch64) ARCH="arm64" ;;
*) ARCH="amd64" ;;
esac
# Download go2rtc
sudo curl -L "https://github.com/alexxit/go2rtc/releases/download/v${GO2RTC_VERSION}/go2rtc_linux_${ARCH}" -o /usr/local/bin/go2rtc
sudo chown root:root /usr/local/bin/go2rtc
sudo chmod +x /usr/local/bin/go2rtc
echo "go2rtc installed: $(go2rtc --version)"
fi
uv sync --frozen