forked from Bleuzen/FFaudioConverter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.sh
executable file
·26 lines (23 loc) · 852 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
#!/bin/sh
VERSION=$(awk '{if(/VERSION = /) print $3}' FFaudioConverter.pro)
VERSION=${VERSION/QCoreApplication::setApplicationVersion(\"}
VERSION=${VERSION/\");}
VERSION=$(echo $VERSION | tr -d '\n')
# Set version in appdata.xml
sed -i "/ <release date=/c\ <release date=\"$(date +%Y-%m-%d)\" version=\"$VERSION\"/>" com.github.Bleuzen.FFaudioConverter.appdata.xml
# Package
mkdir -p release
tar -cJf release/FFaudioConverter-$VERSION-src.tar.xz \
src/ \
translations/ \
FFaudioConverter.pro \
build_linux.sh \
build_win32.bat \
LICENSE \
com.github.Bleuzen.FFaudioConverter.appdata.xml \
com.github.Bleuzen.FFaudioConverter.desktop \
com.github.Bleuzen.FFaudioConverter.png \
com.github.Bleuzen.FFaudioConverter.ico \
ffaudioconverter.qrc
cd release/
sha256sum FFaudioConverter-$VERSION-src.tar.xz