-
Notifications
You must be signed in to change notification settings - Fork 15
/
repo.sh
executable file
·28 lines (23 loc) · 1 KB
/
repo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
script_full_path=$(dirname "$0")
cd $script_full_path || exit 1
rm Packages Packages.bz2 Packages.xz Packages.zst Release Release.gpg
echo "[Repository] Generating Packages..."
apt-ftparchive packages ./pool > Packages
zstd -q -c19 Packages > Packages.zst
xz -c9 Packages > Packages.xz
bzip2 -c9 Packages > Packages.bz2
echo "[Repository] Generating Release..."
apt-ftparchive \
-o APT::FTPArchive::Release::Origin="Sileo" \
-o APT::FTPArchive::Release::Label="Sileo" \
-o APT::FTPArchive::Release::Suite="stable" \
-o APT::FTPArchive::Release::Version="2.0" \
-o APT::FTPArchive::Release::Codename="ios" \
-o APT::FTPArchive::Release::Architectures="iphoneos-arm iphoneos-arm64" \
-o APT::FTPArchive::Release::Components="main" \
-o APT::FTPArchive::Release::Description="Sileo for Checkra1n and Unc0ver" \
release . > Release
echo "[Repository] Signing Release using Amy's GPG Key..."
gpg -abs -u 816C7A50B575162DC29288CD72339224580758CE -o Release.gpg Release
echo "[Repository] Finished"