1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-10 12:03:18 +02:00

packaging: fix permissions issues

generated files should be using correct UID:GID
Change-Id: I5eae54d683862154a873787c3d8e1b73b55b0beb
This commit is contained in:
Sébastien Blin 2022-12-29 09:40:06 -05:00
parent 2b7a421e1f
commit be036ba6b7
No known key found for this signature in database
GPG key ID: C894BB01EEB2A9A9
3 changed files with 3 additions and 0 deletions

View file

@ -133,3 +133,4 @@ dpkg-buildpackage -b -uc -us ${DPKG_BUILD_OPTIONS}
# Move the artifacts to the output.
mv ../*deb /opt/output # .deb and .ddeb packages
chown -R "${CURRENT_UID}:${CURRENT_UID}" /opt/output
chown -R "${CURRENT_UID}:${CURRENT_UID}" .

View file

@ -144,6 +144,7 @@ rpmbuild --define "debug_package %{nil}" -ba jami.spec
mv /root/rpmbuild/RPMS/*/* /opt/output
touch /opt/output/.packages-built
chown -R "$CURRENT_UID:$CURRENT_UID" /opt/output
chown -R "${CURRENT_UID}:${CURRENT_UID}" .
# TODO: One click install: create a package that combines the already
# built package into one.

View file

@ -35,4 +35,5 @@ snapcraft # requires snapcraft >= 4.8
# move the built snap to output
mv *.snap /opt/output/
chown -R "${CURRENT_UID}:${CURRENT_UID}" .
chown ${CURRENT_UID}:${CURRENT_GID} /opt/output/*.snap