summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-12-21 23:41:16 +0100
committerCarl Hetherington <cth@carlh.net>2024-01-04 01:01:35 +0100
commit6b4da63ac591334aa83cd2539ca8a888da212406 (patch)
tree3ea0559191639d446140a96cb77db49753d5826b
parent33e500dccbf74265c70cacefe8f54fd92032827a (diff)
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.
-rw-r--r--cscript2
1 files changed, 1 insertions, 1 deletions
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}')