forked from scakemyer/plugin.video.quasar
-
Notifications
You must be signed in to change notification settings - Fork 158
/
release.sh
44 lines (33 loc) · 950 Bytes
/
release.sh
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
#!/bin/bash
set -e
set -x
TAG=$(git describe --tags)
# git checkout master
rm -rf plugin.video.elementum
# Get Elementum binaries
wget https://github.com/elgatito/elementum-binaries/archive/master.zip && \
unzip master.zip && \
mv elementum-binaries-master/* resources/bin/ && \
rm -rf elementum-binaries-master && \
rm master.zip
# Get platform_detect library
wget https://github.com/ElementumOrg/platform_detect/archive/master.zip && \
unzip master.zip && \
cp -rf platform_detect-master/python resources/site-packages/platform_detect && \
cp -rf platform_detect-master/libraries resources/site-packages/platform_detect/ && \
rm -rf platform_detect-master && \
rm master.zip
sudo -S true
# Install Python dependencies
pip3 install -r requirements.txt
# Run linting
python3 -m flake8
./scripts/xgettext.sh
# Compile zip artifacts
make
make zipfiles
# Run artifact uploads if we are on the tag
if [[ $TAG != *-* ]]
then
make upload
fi