Add GitHub Actions

This commit is contained in:
Xiaonan Shen
2020-04-15 00:17:01 -07:00
parent 566735cf74
commit f8e83cf877
9 changed files with 96 additions and 47 deletions

25
repack-deb.sh Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
set -ex
source releaserc
# Download deb
mkdir deb
cd deb
rm -f ${DEB_FILE}
wget https://protonmail.com/download/${DEB_FILE}
# Unpack deb
ar x -v ${DEB_FILE}
mkdir control
tar xvfJ control.tar.xz -C control
# Replace qt with libgl and remove unnecessary dependencies
sed -i "s/^Depends: .*$/Depends: libsecret-1-0, libgl1-mesa-glx/" control/control
# Pack deb
cd control
tar cvfJ ../control.tar.xz .
cd ../
ar rcs -v ${DEB_FILE} debian-binary control.tar.xz data.tar.xz