changeset 249:5c10b1e8d0e1

add unity key
author drewp@bigasterisk.com
date Mon, 08 Jan 2024 18:38:55 -0800
parents 7566ede833cf
children 17811a892951
files apt.py templates/sources.list.j2
diffstat 2 files changed, 9 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/apt.py	Thu Dec 28 19:54:13 2023 -0800
+++ b/apt.py	Mon Jan 08 18:38:55 2024 -0800
@@ -24,12 +24,13 @@
     server.shell(commands=[
         f"curl -fsSL {url} | gpg --dearmor > /etc/apt/keyrings/{name}" for (url, name) in [
             ('https://packages.microsoft.com/keys/microsoft.asc', 'ms.gpg'),
-            ('https://deb.nodesource.com/gpgkey/nodesource.gpg.key', 'nodesource-older.gpg'), # rm after everything's on 23.10
+            ('https://deb.nodesource.com/gpgkey/nodesource.gpg.key', 'nodesource-older.gpg'),  # rm after everything's on 23.10
             ('https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key', 'nodesource.gpg'),
             ('https://dl.google.com/linux/linux_signing_key.pub', 'chrome.gpg'),
             ('https://ftp-master.debian.org/keys/archive-key-11.asc', 'bullseye.gpg'),
             ('https://ftp-master.debian.org/keys/archive-key-11-security.asc', 'bullseye-security.gpg'),
             ('https://packages.cloud.google.com/apt/doc/apt-key.gpg', 'coral.gpg'),
+            ('https://hub.unity3d.com/linux/keys/public', 'unityhub.gpg'),
         ]
     ])
     if host.get_fact(Arch) == 'armv7l' or host.name == 'bang':  # I mean raspbian/debian
@@ -40,15 +41,16 @@
     #-rw-r--r-- 1 root root 2794 Mar 26  2021 /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg
     #-rw-r--r-- 1 root root 1733 Mar 26  2021 /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg
 
+
 dir = Path('/etc/apt/sources.list.d')
 
 
 def clear_known_sources_files(known=[
-        dir / 'vscode.list',
-        dir / 'google-chrome.list',
-        dir / 'steam-beta.list',
-        dir / 'google-chrome-unstable.list',
-        dir / 'steam-stable.list',
+    dir / 'vscode.list',
+    dir / 'google-chrome.list',
+    dir / 'steam-beta.list',
+    dir / 'google-chrome-unstable.list',
+    dir / 'steam-stable.list',
 ]):
     found = map(Path, host.get_fact(FindFiles, dir, quote_path=True))
     if set(found) - set(known):
--- a/templates/sources.list.j2	Thu Dec 28 19:54:13 2023 -0800
+++ b/templates/sources.list.j2	Mon Jan 08 18:38:55 2024 -0800
@@ -4,6 +4,7 @@
 deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/ms.gpg] http://packages.microsoft.com/repos/code stable main
 deb [arch=amd64 signed-by=/etc/apt/keyrings/chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main
 deb [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] https://repo.steampowered.com/steam/ stable steam
+deb [signed-by=/etc/apt/keyrings/unityhub.gpg] https://hub.unity3d.com/linux/repos/deb stable main
 {% endif %}
 
 {% if host.name in ['dash', 'squib', 'plus', 'bang', 'slash', 'dot', 'ditto'] %}