Build with calbuilder user
This commit is contained in:
parent
32c5fbc01d
commit
0bfe96e621
|
@ -35,7 +35,7 @@ installAurDeps() {
|
|||
importPrivateKey() {
|
||||
echo "$gpgPrivateKey" > private.key
|
||||
gpgFlags=("--batch" "--pinentry-mode" "loopback" "--passphrase")
|
||||
sudo -H -u nobody gpg "${gpgFlags[@]}" "$gpgPassphrase" --import private.key
|
||||
sudo -Hu calbuilder gpg "${gpgFlags[@]}" "$gpgPassphrase" --import private.key
|
||||
rm private.key
|
||||
sedCommand="gpg ${gpgFlags[*]} \"$gpgPassphrase\""
|
||||
makepkgSigFile="/usr/share/makepkg/integrity/generate_signature.sh"
|
||||
|
@ -45,9 +45,9 @@ importPrivateKey() {
|
|||
buildPackage() {
|
||||
if [ -n "$gpgPrivateKey" ] && [ -n "$gpgPublicKey" ]; then
|
||||
importPrivateKey
|
||||
sudo -H -u nobody makepkg -s --sign --key "$gpgPublicKey" --noconfirm
|
||||
sudo -Hu calbuilder makepkg -s --sign --key "$gpgPublicKey" --noconfirm
|
||||
else
|
||||
sudo -u nobody makepkg -s --noconfirm
|
||||
sudo -Hu calbuilder makepkg -s --noconfirm
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue