Skip to content

Commit

Permalink
chore(deps): get architecture dynamically when fetching debian packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
qkaiser committed Nov 13, 2023
1 parent 2b67cd7 commit 8394a7f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 23 deletions.
23 changes: 9 additions & 14 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,21 +132,16 @@ There is a handy `install-deps.sh` script included in the repository and PyPI pa

2. If you need **squashfs support**, install sasquatch:

curl -L -o sasquatch_1.0_amd64.deb https://github.com/onekey-sec/sasquatch/releases/download/sasquatch-v4.5.1-4/sasquatch_1.0_amd64.deb
sudo dpkg -i sasquatch_1.0_amd64.deb
rm sasquatch_1.0_amd64.deb
3. If you need **squashfs(arm64) support**, install sasquatch(arm64):

curl -L -o sasquatch_1.0_arm64.deb https://github.com/onekey-sec/sasquatch/releases/download/sasquatch-v4.5.1-4/sasquatch_1.0_arm64.deb
sudo dpkg -i sasquatch_1.0_arm64.deb
rm sasquatch_1.0_arm64.deb
curl -L -o sasquatch_1.0.deb "https://github.com/onekey-sec/sasquatch/releases/download/sasquatch-v4.5.1-4/sasquatch_1.0_$(dpkg --print-architecture).deb"
sudo dpkg -i sasquatch_1.0.deb
rm sasquatch_1.0.deb

4. We maintain a fork of e2fsprogs based on Debian upstream, with some security fixes. You can install it this way:

curl -L -o libext2fs2_1.47.0-3.ok1_amd64.deb https://github.com/onekey-sec/e2fsprogs/releases/download/v1.47.0-3.ok1/libext2fs2_1.47.0-3.ok1_amd64.deb
dpkg -i libext2fs2_1.47.0-3.ok1_amd64.deb
rm -f libext2fs2_1.47.0-3.ok1_amd64.deb
curl -L -o libext2fs2_1.47.0-3.ok1.deb "https://github.com/onekey-sec/e2fsprogs/releases/download/v1.47.0-3.ok1/libext2fs2_1.47.0-3.ok1_$(dpkg --print-architecture).deb"
dpkg -i libext2fs2_1.47.0-3.ok1.deb
rm -f libext2fs2_1.47.0-3.ok1.deb

curl -L -o e2fsprogs_1.47.0-3.ok1_amd64.deb https://github.com/onekey-sec/e2fsprogs/releases/download/v1.47.0-3.ok1/e2fsprogs_1.47.0-3.ok1_amd64.deb
dpkg -i e2fsprogs_1.47.0-3.ok1_amd64.deb
rm -f e2fsprogs_1.47.0-3.ok1_amd64.deb
curl -L -o e2fsprogs_1.47.0-3.ok1.deb "https://github.com/onekey-sec/e2fsprogs/releases/download/v1.47.0-3.ok1/e2fsprogs_1.47.0-3.ok1_$(dpkg --print-architecture).deb"
dpkg -i e2fsprogs_1.47.0-3.ok1.deb
rm -f e2fsprogs_1.47.0-3.ok1.deb
18 changes: 9 additions & 9 deletions unblob/install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ apt-get install --no-install-recommends -y \
libmagic1 \
zstd

curl -L -o sasquatch_1.0_amd64.deb https://github.com/onekey-sec/sasquatch/releases/download/sasquatch-v4.5.1-4/sasquatch_1.0_amd64.deb
dpkg -i sasquatch_1.0_amd64.deb
rm -f sasquatch_1.0_amd64.deb
curl -L -o sasquatch_1.0.deb "https://github.com/onekey-sec/sasquatch/releases/download/sasquatch-v4.5.1-4/sasquatch_1.0_$(dpkg --print-architecture).deb"
dpkg -i sasquatch_1.0.deb
rm -f sasquatch_1.0.deb

curl -L -o libext2fs2_1.47.0-3.ok1_amd64.deb https://github.com/onekey-sec/e2fsprogs/releases/download/v1.47.0-3.ok1/libext2fs2_1.47.0-3.ok1_amd64.deb
dpkg -i libext2fs2_1.47.0-3.ok1_amd64.deb
rm -f libext2fs2_1.47.0-3.ok1_amd64.deb
curl -L -o libext2fs2_1.47.0-3.ok1.deb "https://github.com/onekey-sec/e2fsprogs/releases/download/v1.47.0-3.ok1/libext2fs2_1.47.0-3.ok1_$(dpkg --print-architecture).deb"
dpkg -i libext2fs2_1.47.0-3.ok1.deb
rm -f libext2fs2_1.47.0-3.ok1.deb

curl -L -o e2fsprogs_1.47.0-3.ok1_amd64.deb https://github.com/onekey-sec/e2fsprogs/releases/download/v1.47.0-3.ok1/e2fsprogs_1.47.0-3.ok1_amd64.deb
dpkg -i e2fsprogs_1.47.0-3.ok1_amd64.deb
rm -f e2fsprogs_1.47.0-3.ok1_amd64.deb
curl -L -o e2fsprogs_1.47.0-3.ok1.deb "https://github.com/onekey-sec/e2fsprogs/releases/download/v1.47.0-3.ok1/e2fsprogs_1.47.0-3.ok1_$(dpkg --print-architecture).deb"
dpkg -i e2fsprogs_1.47.0-3.ok1.deb
rm -f e2fsprogs_1.47.0-3.ok1.deb

0 comments on commit 8394a7f

Please sign in to comment.