-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathvariables.yaml
More file actions
77 lines (63 loc) · 3.41 KB
/
variables.yaml
File metadata and controls
77 lines (63 loc) · 3.41 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Taskfile.yaml
version: '3'
# -----------------------------------------------------------------------------
# Configuration Variables
# These variables define important root paths and general settings for the build process.
# They are primarily for internal Taskfile use and can be overridden via `task -v VAR=...`.
# -----------------------------------------------------------------------------
vars:
# Temporary directory for build artifacts
PATH_TMP:
sh: realpath "{{.TASKFILE_DIR}}/../tmp"
PATH_BIN: "{{.PATH_TMP}}/bin"
PATH_NODE: "{{.TASKFILE_DIR}}/node"
PATH_DOTNET: "{{.TASKFILE_DIR}}/dotnet"
PATH_DIST_TEMPLATE: "{{.TASKFILE_DIR}}/dist-template"
PATH_BUILD_ROOT: "{{.PATH_TMP}}/build"
# Define base step paths for the build pipeline
PATH_DEP_DOTNET: "{{.PATH_BUILD_ROOT}}/0-deps-dotnet"
PATH_STEP_DOWNLOAD: "{{.PATH_BUILD_ROOT}}/1-download"
PATH_STEP_UNPACK: "{{.PATH_BUILD_ROOT}}/2-unpack"
PATH_STEP_STASH: "{{.PATH_BUILD_ROOT}}/3-stash"
PATH_STEP_EDIT: "{{.PATH_BUILD_ROOT}}/4-edit"
PATH_STEP_BUILD: "{{.PATH_BUILD_ROOT}}/5-build"
PATH_DIST: "{{.PATH_BUILD_ROOT}}/dist"
# Specific paths within the unpacked Emby structure
PATH_EMBY_SYSTEM: "{{.PATH_STEP_UNPACK}}/opt/emby-server/system"
# Paths to utility commands
PATH_STRING_REPLACER: "{{.PATH_BIN}}/StringReplacer"
# Command definitions for reusability
COMMAND_DECOMPILE_DLL: "{{.PATH_BIN}}/ildasm -all -typelist -metadata=raw "
COMMAND_COPY_RECURSIVE: "rsync -av -q "
# -----------------------------------------------------------------------------
# Environment Variables
# These variables are exposed as environment variables to all shell commands
# executed by tasks. They support default values using shell parameter expansion.
# -----------------------------------------------------------------------------
env:
# Emby Server version to target. Override with `EMBY_VERSION=... task ...`
EMBY_VERSION:
sh: 'echo ${EMBY_VERSION:-4.8.11.0}'
# URL to replace Emby's validation services with.
EMBY_REPLACEMENT_URL:
sh: 'echo ${EMBY_REPLACEMENT_URL:-https://example.com/}'
# Derived Emby package name and download URL based on EMBY_VERSION.
EMBY_PACKAGE: "emby-server-deb_{{.EMBY_VERSION}}_amd64.deb"
EMBY_DOWNLOAD_URL: "https://github.com/MediaBrowser/Emby.Releases/releases/download/{{.EMBY_VERSION}}/{{.EMBY_PACKAGE}}"
# Space-separated list of DLLs to decompile/modify.
EMBY_TARGET_DLL:
sh: 'echo ${EMBY_TARGET_DLL:-"Emby.Server.Implementations.dll Emby.Web.dll"}'
# Space-separated list of JavaScript files to modify.
EMBY_TARGET_JS:
sh: 'echo ${EMBY_TARGET_JS:-"dashboard-ui/embypremiere/embypremiere.js dashboard-ui/modules/emby-apiclient/connectionmanager.js"}'
# Space-separated list of URLs to be replaced within target files.
EMBY_TARGET_URL:
sh: 'echo ${EMBY_TARGET_URL:-"https://mb3admin.com/admin/service/registration/validateDevice https://mb3admin.com/admin/service/registration/validate https://mb3admin.com/admin/service/appstore/register https://mb3admin.com/admin/service/registration/getStatus"}'
# The pattern to search for and replace in target files.
EMBY_REPLACE_PATTERN:
sh: 'echo ${EMBY_REPLACE_PATTERN:-"https://mb3admin.com/"}'
# NVM directory for Node.js version management. Defaults to ~/.nvm.
NVM_DIR:
sh: '[[ -n "$NVM_DIR" ]] && echo "$NVM_DIR" || echo "${HOME}/.nvm"' # Use $HOME for consistency
# Path to the NVM initialization script.
NVM_SH: "{{.NVM_DIR}}/nvm.sh"