mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2026-01-18 06:34:41 +01:00
Add GitHub Actions
This commit is contained in:
25
repack-deb.sh
Normal file
25
repack-deb.sh
Normal 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
|
||||
Reference in New Issue
Block a user