forked from abba23/spotify-adblock
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.toml
More file actions
30 lines (27 loc) · 924 Bytes
/
Makefile.toml
File metadata and controls
30 lines (27 loc) · 924 Bytes
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
[tasks.build]
script_runner = "@shell"
script = '''
# Check if CEF_ROOT is set, if not try to detect it locally
if [ -z "$CEF_ROOT" ]; then
# Look for CEF binary in project directory
CEF_DIR=$(find . -maxdepth 1 -type d -name "cef_binary_*" | head -n 1)
if [ -n "$CEF_DIR" ]; then
export CEF_ROOT="$PWD/$CEF_DIR"
echo "Found CEF at: $CEF_ROOT"
else
echo "ERROR: CEF_ROOT not set and no CEF binary found in project directory"
echo "Please set CEF_ROOT environment variable or download CEF binary"
exit 1
fi
fi
cargo build --release
'''
[tasks.install]
dependencies = ["build"]
script = [
"install -D --mode=644 --strip target/release/libspotifyadblock.so ${DESTDIR}${PREFIX}/lib/spotify-adblock.so",
"install -D --mode=644 config.toml ${DESTDIR}/etc/spotify-adblock/config.toml"
]
[tasks.verify]
command = "cargo"
args = ["build", "--profile", "verify"]