Skip to content

Commit 3ada94a

Browse files
committed
fix: remove undefined CLI changelog reference in verify-versioning script
1 parent 26b3c76 commit 3ada94a

File tree

5 files changed

+42
-11
lines changed

5 files changed

+42
-11
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ This script will:
4343
**Available platforms:**
4444

4545
- 📱 **Android** - `Dester-*-Android-arm64-v8a.apk`
46-
- 📺 **Android TV** - `Dester-*-AndroidTV-arm64.apk`
4746
- 🍎 **macOS** - `Dester-*-macOS.dmg`
4847
- 🪟 **Windows** - `Dester-*-Windows-x64.zip`
4948
- 🐧 **Linux** - `Dester-*-Linux-x64.tar.gz`

docker-compose.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,21 @@ services:
4040
NODE_ENV: production
4141
PORT: 3001
4242
FRONTEND_URL: http://localhost:3001
43+
# Media library path configuration
44+
# HOST_MEDIA_PATH: The root host path for your media library (used for path mapping)
45+
# Should match the host path in the volume mount above (before the colon)
46+
HOST_MEDIA_PATH: /Volumes/External/Library/Media
47+
CONTAINER_MEDIA_PATH: /media
4348
ports:
4449
# Bind to all interfaces (0.0.0.0) to allow mobile app connections
4550
# Mobile apps will use the host machine's IP address
4651
- "0.0.0.0:3001:3001"
4752
volumes:
48-
# Mount your media library directory (read-only for security)
53+
# Mount your media library root directory (read-only for security)
54+
# This is the root location for all your media libraries (e.g., /Volumes/Media)
55+
# Subdirectories like /Volumes/Media/Movies, /Volumes/Media/TV Shows, etc. should be scanned via the API
4956
# The application automatically handles path mapping between host and container
57+
# Clients should use host paths (e.g., /Volumes/Media/Movies) when calling the API
5058
- /Volumes/External/Library/Media:/media:ro
5159
healthcheck:
5260
test:

scripts/setup/unix.sh

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ echo ""
4747
# Get installation directory
4848
INSTALL_DIR="${HOME}/.desterlib"
4949
echo -e "${CYAN}Installation directory: ${INSTALL_DIR}${NC}"
50-
read -p "Press Enter to use default, or type a different path: " custom_dir
50+
echo -n "Press Enter to use default, or type a different path: "
51+
read custom_dir
5152
if [ -n "$custom_dir" ]; then
5253
INSTALL_DIR="$custom_dir"
5354
fi
@@ -62,32 +63,41 @@ echo -e "${CYAN}📋 Configuration${NC}"
6263
echo ""
6364

6465
# Media library path
65-
read -p "Media library path (where your movies/TV shows are): " MEDIA_PATH
66+
echo -e "${CYAN}Media library root path:${NC}"
67+
echo -e "${YELLOW} This should be the root directory containing your media libraries${NC}"
68+
echo -e "${YELLOW} Example: /Volumes/Media (which contains Movies/, TV Shows/, etc.)${NC}"
69+
echo -n "Media library root path: "
70+
read MEDIA_PATH
6671
if [ -z "$MEDIA_PATH" ]; then
6772
echo -e "${RED}❌ Media library path is required${NC}"
6873
exit 1
6974
fi
7075
if [ ! -d "$MEDIA_PATH" ]; then
7176
echo -e "${YELLOW}⚠️ Warning: Media path does not exist: $MEDIA_PATH${NC}"
72-
read -p "Continue anyway? (y/N): " continue_anyway
77+
echo -n "Continue anyway? (y/N): "
78+
read continue_anyway
7379
if [ "$continue_anyway" != "y" ] && [ "$continue_anyway" != "Y" ]; then
7480
exit 1
7581
fi
7682
fi
7783

7884
# Port
79-
read -p "API port [3001]: " PORT
85+
echo -n "API port [3001]: "
86+
read PORT
8087
PORT=${PORT:-3001}
8188

8289
# Database credentials
83-
read -p "Database user [postgres]: " DB_USER
90+
echo -n "Database user [postgres]: "
91+
read DB_USER
8492
DB_USER=${DB_USER:-postgres}
8593

86-
read -sp "Database password [postgres]: " DB_PASSWORD
94+
echo -n "Database password [postgres]: "
95+
read -s DB_PASSWORD
8796
DB_PASSWORD=${DB_PASSWORD:-postgres}
8897
echo ""
8998

90-
read -p "Database name [desterlib_prod]: " DB_NAME
99+
echo -n "Database name [desterlib_prod]: "
100+
read DB_NAME
91101
DB_NAME=${DB_NAME:-desterlib_prod}
92102

93103
echo ""
@@ -112,6 +122,9 @@ DATABASE_URL=postgresql://${DB_USER}:${DB_PASSWORD}@postgres:5432/${DB_NAME}?sch
112122
NODE_ENV=production
113123
PORT=${PORT}
114124
FRONTEND_URL=http://localhost:${PORT}
125+
# Media library path configuration (for path mapping between host and container)
126+
HOST_MEDIA_PATH=${MEDIA_PATH}
127+
CONTAINER_MEDIA_PATH=/media
115128
EOF
116129

117130
# Update docker-compose.yml with user's configuration
@@ -133,6 +146,8 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
133146
sed -i '' "s|POSTGRES_USER:-postgres|POSTGRES_USER:-${DB_USER}|" docker-compose.yml
134147
sed -i '' "s|postgres:postgres@postgres|${DB_USER}:${ESCAPED_DB_PASSWORD}@postgres|" docker-compose.yml
135148
sed -i '' "s|desterlib_prod|${DB_NAME}|g" docker-compose.yml
149+
# Update HOST_MEDIA_PATH environment variable
150+
sed -i '' "s|HOST_MEDIA_PATH: /Volumes/External/Library/Media|HOST_MEDIA_PATH: ${ESCAPED_MEDIA_PATH}|" docker-compose.yml
136151
else
137152
# Linux sed
138153
sed -i "s|- /Volumes/External/Library/Media:/media:ro|- ${ESCAPED_MEDIA_PATH}:/media:ro|" docker-compose.yml
@@ -144,6 +159,8 @@ else
144159
sed -i "s|POSTGRES_USER:-postgres|POSTGRES_USER:-${DB_USER}|" docker-compose.yml
145160
sed -i "s|postgres:postgres@postgres|${DB_USER}:${ESCAPED_DB_PASSWORD}@postgres|" docker-compose.yml
146161
sed -i "s|desterlib_prod|${DB_NAME}|g" docker-compose.yml
162+
# Update HOST_MEDIA_PATH environment variable
163+
sed -i "s|HOST_MEDIA_PATH: /Volumes/External/Library/Media|HOST_MEDIA_PATH: ${ESCAPED_MEDIA_PATH}|" docker-compose.yml
147164
fi
148165

149166
echo -e "${GREEN}✅ Configuration files created${NC}"

scripts/setup/windows.ps1

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ Write-ColorOutput Cyan "📋 Configuration"
7070
Write-Output ""
7171

7272
# Media library path
73-
$MEDIA_PATH = Read-Host "Media library path (where your movies/TV shows are)"
73+
Write-ColorOutput Cyan "Media library root path:"
74+
Write-ColorOutput Yellow " This should be the root directory containing your media libraries"
75+
Write-ColorOutput Yellow " Example: C:\Media (which contains Movies\, TV Shows\, etc.)"
76+
$MEDIA_PATH = Read-Host "Media library root path"
7477
if (-not $MEDIA_PATH) {
7578
Write-ColorOutput Red "❌ Media library path is required"
7679
exit 1
@@ -129,6 +132,9 @@ DATABASE_URL=postgresql://${DB_USER}:${DB_PASSWORD}@postgres:5432/${DB_NAME}?sch
129132
NODE_ENV=production
130133
PORT=${PORT}
131134
FRONTEND_URL=http://localhost:${PORT}
135+
# Media library path configuration (for path mapping between host and container)
136+
HOST_MEDIA_PATH=${MEDIA_PATH}
137+
CONTAINER_MEDIA_PATH=/media
132138
"@
133139
$envPath = Join-Path "apps" "api"
134140
New-Item -ItemType Directory -Force -Path $envPath | Out-Null
@@ -154,6 +160,8 @@ $dockerComposeContent = $dockerComposeContent -replace "POSTGRES_DB: desterlib_p
154160
$dockerComposeContent = $dockerComposeContent -replace "POSTGRES_USER:-postgres", "POSTGRES_USER:-${DB_USER}"
155161
$dockerComposeContent = $dockerComposeContent -replace "postgres:postgres@postgres", "${DB_USER}:${DB_PASSWORD}@postgres"
156162
$dockerComposeContent = $dockerComposeContent -replace "desterlib_prod", $DB_NAME
163+
# Update HOST_MEDIA_PATH environment variable
164+
$dockerComposeContent = $dockerComposeContent -replace "HOST_MEDIA_PATH: /Volumes/External/Library/Media", "HOST_MEDIA_PATH: ${MEDIA_PATH}"
157165

158166
$dockerComposeContent | Out-File -FilePath $dockerComposePath -Encoding utf8 -NoNewline
159167

scripts/verify-versioning.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,6 @@ function testChangelogSync() {
353353
// Verify docs changelogs were updated
354354
const docsChangelogs = [
355355
{ name: "API", path: apiDocsChangelogPath },
356-
{ name: "CLI", path: cliDocsChangelogPath },
357356
{ name: "Docs", path: docsDocsChangelogPath },
358357
];
359358

0 commit comments

Comments
 (0)