Skip to content

Commit 8394a7f

Browse files
committed
chore(deps): get architecture dynamically when fetching debian packages.
1 parent 2b67cd7 commit 8394a7f

File tree

2 files changed

+18
-23
lines changed

2 files changed

+18
-23
lines changed

docs/installation.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -132,21 +132,16 @@ There is a handy `install-deps.sh` script included in the repository and PyPI pa
132132

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

135-
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
136-
sudo dpkg -i sasquatch_1.0_amd64.deb
137-
rm sasquatch_1.0_amd64.deb
138-
3. If you need **squashfs(arm64) support**, install sasquatch(arm64):
139-
140-
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
141-
sudo dpkg -i sasquatch_1.0_arm64.deb
142-
rm sasquatch_1.0_arm64.deb
135+
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"
136+
sudo dpkg -i sasquatch_1.0.deb
137+
rm sasquatch_1.0.deb
143138

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

146-
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
147-
dpkg -i libext2fs2_1.47.0-3.ok1_amd64.deb
148-
rm -f libext2fs2_1.47.0-3.ok1_amd64.deb
141+
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"
142+
dpkg -i libext2fs2_1.47.0-3.ok1.deb
143+
rm -f libext2fs2_1.47.0-3.ok1.deb
149144

150-
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
151-
dpkg -i e2fsprogs_1.47.0-3.ok1_amd64.deb
152-
rm -f e2fsprogs_1.47.0-3.ok1_amd64.deb
145+
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"
146+
dpkg -i e2fsprogs_1.47.0-3.ok1.deb
147+
rm -f e2fsprogs_1.47.0-3.ok1.deb

unblob/install-deps.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ apt-get install --no-install-recommends -y \
1515
libmagic1 \
1616
zstd
1717

18-
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
19-
dpkg -i sasquatch_1.0_amd64.deb
20-
rm -f sasquatch_1.0_amd64.deb
18+
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"
19+
dpkg -i sasquatch_1.0.deb
20+
rm -f sasquatch_1.0.deb
2121

22-
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
23-
dpkg -i libext2fs2_1.47.0-3.ok1_amd64.deb
24-
rm -f libext2fs2_1.47.0-3.ok1_amd64.deb
22+
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"
23+
dpkg -i libext2fs2_1.47.0-3.ok1.deb
24+
rm -f libext2fs2_1.47.0-3.ok1.deb
2525

26-
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
27-
dpkg -i e2fsprogs_1.47.0-3.ok1_amd64.deb
28-
rm -f e2fsprogs_1.47.0-3.ok1_amd64.deb
26+
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"
27+
dpkg -i e2fsprogs_1.47.0-3.ok1.deb
28+
rm -f e2fsprogs_1.47.0-3.ok1.deb

0 commit comments

Comments
 (0)