-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpack.sh
More file actions
34 lines (28 loc) · 669 Bytes
/
pack.sh
File metadata and controls
34 lines (28 loc) · 669 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
31
32
33
34
#!/bin/bash
# Delete dist if it already exists
if [ -d "dist" ]; then
rm -rf dist
fi
# Create dist
mkdir dist
# Install dependencies
if [ -f "requirements.txt" ]; then
pip install --target ./deps -r requirements.txt
fi
# Remember to add any additional files, and change the name of the plugin
artifacts=(
"MediaPlayerPlugin.py"
"MediaControllers.py"
"MediaControllerTypes.py"
"MPRISController.py"
"WindowsMediaController.py"
"requirements.txt"
"README.md"
"manifest.json"
"__init__.py"
)
if [ -d "deps" ]; then
artifacts+=("deps")
fi
# Create the zip archive
zip -r -9 "dist/MediaPlayerPlugin.zip" "${artifacts[@]}"