From: Carl Hetherington Date: Thu, 21 Dec 2023 22:41:16 +0000 (+0100) Subject: Use sudo for apt. X-Git-Tag: v2.16.72~52 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=6b4da63ac591334aa83cd2539ca8a888da212406 Use sudo for apt. Though the cci instance on main runs things on droplets as root, on klopp they run as carl. I made password-less sudo for apt work on the docker image so this makes the appimage builds work on klopp too. --- diff --git a/cscript b/cscript index 5ca1d2c57..3903bd074 100644 --- a/cscript +++ b/cscript @@ -792,7 +792,7 @@ def make_appimage(target, nice_name, internal_name, version, extra_binaries=None lib = 'usr/lib/x86_64-linux-gnu' target.command(f'mkdir -p build/{nice_filename}.AppDir/{lib}/gdk-pixbuf-2.0/2.10.0') target.command(f'cp -a /{lib}/gdk-pixbuf-2.0 build/{nice_filename}.AppDir/usr/lib/x86_64-linux-gnu/') - target.command('apt update') + target.command('sudo apt update') for package in ['libc6', 'libglib2.0-0', 'gnome-settings-daemon-schemas', 'librsvg2-common', 'libgdk-pixbuf2.0-0', 'libpango-1.0-0', 'libpangoft2-1.0-0', 'libpangocairo-1.0-0', 'libthai0']: target.command(f'apt download {package}') target.command(f'dpkg-deb -x {package}*.deb {appdir}')