mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2026-01-18 14:44:41 +01:00
Remove unnecessary dependencies
This commit is contained in:
24
setup.sh
Normal file
24
setup.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
DEB_URL=https://protonmail.com/download/protonmail-bridge_1.2.6-1_amd64.deb
|
||||
|
||||
# Install tools
|
||||
apt-get update
|
||||
apt-get install -y wget binutils xz-utils
|
||||
|
||||
# Download deb
|
||||
mkdir /protonmail
|
||||
cd /protonmail
|
||||
wget -O /protonmail/protonmail.deb ${DEB_URL}
|
||||
|
||||
# Remove unnecessary dependencies
|
||||
ar x -v protonmail.deb
|
||||
mkdir control
|
||||
tar xvfJ control.tar.xz -C control
|
||||
cd control
|
||||
sed -i "s/^Depends: .*$/Depends: libsecret-1-0/" control
|
||||
tar cvfJ ../control.tar.xz .
|
||||
cd ../
|
||||
ar rcs -v protonmail.deb debian-binary control.tar.xz data.tar.xz
|
||||
Reference in New Issue
Block a user