Post by liblaf » Thu Feb 23, 2023 4:09 pm
If you open the freedownloadmanager.deb package as an archive and look into control.tar.xz > ./postinst, you will find something looks like:
Code: Select all
/usr/bin/apt-key add - >/dev/null 2>&1 <<PUBKEYDATA
-----BEGIN PGP PUBLIC KEY BLOCK-----
...
-----END PGP PUBLIC KEY BLOCK-----
PUBKEYDATA
The above script uses `apt-key` to add the public key. As far as I know, we should copy that key to `/etc/apt/trusted.gpg.d` instead of using `apt-key add`. For example:
Code: Select all
/usr/bin/gpg --dearmor --output /etc/apt/trusted.gpg.d/freedownloadmanager.gpg >/dev/null 2>&1 <<PUBKEYDATA
-----BEGIN PGP PUBLIC KEY BLOCK-----
...
-----END PGP PUBLIC KEY BLOCK-----
PUBKEYDATA
I'm not sure how the .deb package are packaged manually or automatically. But I feel this is not a very difficult problem to solve.
BTW, another more general distribution method is to package the application as an AppImage (though I'm not very familiar with it), which will enable FDM to run on almost all Linux distributions, not just Debian-based distros.
If you open the freedownloadmanager.deb package as an archive and look into control.tar.xz > ./postinst, you will find something looks like:
[code]
/usr/bin/apt-key add - >/dev/null 2>&1 <<PUBKEYDATA
-----BEGIN PGP PUBLIC KEY BLOCK-----
...
-----END PGP PUBLIC KEY BLOCK-----
PUBKEYDATA
[/code]
The above script uses `apt-key` to add the public key. As far as I know, we should copy that key to `/etc/apt/trusted.gpg.d` instead of using `apt-key add`. For example:
[code]
/usr/bin/gpg --dearmor --output /etc/apt/trusted.gpg.d/freedownloadmanager.gpg >/dev/null 2>&1 <<PUBKEYDATA
-----BEGIN PGP PUBLIC KEY BLOCK-----
...
-----END PGP PUBLIC KEY BLOCK-----
PUBKEYDATA
[/code]
I'm not sure how the .deb package are packaged manually or automatically. But I feel this is not a very difficult problem to solve.
BTW, another more general distribution method is to package the application as an AppImage (though I'm not very familiar with it), which will enable FDM to run on almost all Linux distributions, not just Debian-based distros.