Skip to content

Commit

Permalink
feat(script): migrate to @feed/feed
Browse files Browse the repository at this point in the history
Since it's more lightweight and faster
  • Loading branch information
GabsEdits committed Oct 26, 2024
1 parent adeb3ed commit 94165bf
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 103 deletions.
206 changes: 115 additions & 91 deletions updates-feed.xml
Original file line number Diff line number Diff line change
@@ -1,92 +1,116 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>https://info.vanillaos.org/updates-feed.xml</id>
<title>Vanilla OS Updates</title>
<updated>2024-09-21T09:47:39.247Z</updated>
<generator>https://github.com/jpmonette/feed</generator>
<author>
<name>Vanilla OS</name>
<email>[email protected]</email>
<uri>https://vanillaos.org/</uri>
</author>
<link rel="alternate" href="https://vanillaos.org/"/>
<link rel="self" href="https://info.vanillaos.org/updates-feed.xml"/>
<subtitle>Live feed of Vanilla OS updates and changes.</subtitle>
<entry>
<title type="html"><![CDATA[Enhancement: New Image Release with updated packages and bug fixes]]></title>
<id>https://github.com/Vanilla-OS/desktop-image/releases/tag/v1.0.2</id>
<link href="https://github.com/Vanilla-OS/desktop-image/releases/tag/v1.0.2"/>
<updated>2024-09-21T00:00:00.000Z</updated>
<summary type="html"><![CDATA[We have shipped a new release across our images bringing updated packages and bug fixes to your Vanilla OS Installation. You will receive the update automatically via VSO in the forthcoming days (based on the your update settings). It can also be performed manually with abroot upgrade command (for updating the host alone) or with vso sys upgrade command (to update both the host and VSO shell environment). Version: 1.0.2.]]></summary>
</entry>
<entry>
<title type="html"><![CDATA[Bug Fix: Fixed installer crashing while looking for Wi-Fi connections]]></title>
<id>https://github.com/Vanilla-OS/vanilla-installer/pull/425</id>
<link href="https://github.com/Vanilla-OS/vanilla-installer/pull/425"/>
<updated>2024-08-26T00:00:00.000Z</updated>
<summary type="html"><![CDATA[Affected: Users installing. Fixed in version: N/A.]]></summary>
</entry>
<entry>
<title type="html"><![CDATA[Bug Fix: Fixed missing wayland session and GDM freezes for most NVIDIA users]]></title>
<id>https://github.com/Vanilla-OS/nvidia-image/pull/49</id>
<link href="https://github.com/Vanilla-OS/nvidia-image/pull/49"/>
<updated>2024-08-05T00:00:00.000Z</updated>
<summary type="html"><![CDATA[Affected: NVIDIA users. Fixed in version: N/A.]]></summary>
</entry>
<entry>
<title type="html"><![CDATA[Enhancement: Deprecated the nvidia-proprietary image]]></title>
<id/>
<link href=""/>
<updated>2024-08-05T00:00:00.000Z</updated>
<summary type="html"><![CDATA[We have deprecated the nvidia-proprietary image and replaced by nvidia and nvidia-exp images. Once upgraded, Vanilla OS will ask the user to switch image by pointing to the documentation. Version: N/A.]]></summary>
</entry>
<entry>
<title type="html"><![CDATA[Enhancement: Removed multi image support for NVIDIA devices in installer]]></title>
<id/>
<link href=""/>
<updated>2024-08-05T00:00:00.000Z</updated>
<summary type="html"><![CDATA[The installer now always proposes to install the nvidia image for all NVIDIA devices, since the nvidia-proprietary image got deprecated. Users who really need for recent drivers (at costs of possible issues) can opt for the Custom Image option during the installation and type ghcr.io/vanilla-os/nvidia-exp once asked. Version: N/A.]]></summary>
</entry>
<entry>
<title type="html"><![CDATA[Enhancement: New and improved translations]]></title>
<id/>
<link href=""/>
<updated>2024-08-05T00:00:00.000Z</updated>
<summary type="html"><![CDATA[One or more of the supported languages have been updated. Version: N/A.]]></summary>
</entry>
<entry>
<title type="html"><![CDATA[Bug Fix: Newly created users were not able to complete the First Setup Wizard]]></title>
<id>https://github.com/Vanilla-OS/first-setup/releases/tag/v2.2.3</id>
<link href="https://github.com/Vanilla-OS/first-setup/releases/tag/v2.2.3"/>
<updated>2024-08-01T00:00:00.000Z</updated>
<summary type="html"><![CDATA[Affected: Newly created users. Fixed in version: 2.2.3.]]></summary>
</entry>
<entry>
<title type="html"><![CDATA[Bug Fix: Some NVIDIA setups were unable to boot]]></title>
<id/>
<link href=""/>
<updated>2024-08-01T00:00:00.000Z</updated>
<summary type="html"><![CDATA[Affected: NVIDIA users on some specific setups. Fixed in version: N/A.]]></summary>
</entry>
<entry>
<title type="html"><![CDATA[Enhancement: Support for custom images in the Installer]]></title>
<id>https://github.com/Vanilla-OS/vanilla-installer/releases/tag/v2.3.7</id>
<link href="https://github.com/Vanilla-OS/vanilla-installer/releases/tag/v2.3.7"/>
<updated>2024-08-01T00:00:00.000Z</updated>
<summary type="html"><![CDATA[Users can now use their own system images during the installation process. Usefull for OEMs and users who need specific firmware or drivers. Version: 2.3.7.]]></summary>
</entry>
<entry>
<title type="html"><![CDATA[Enhancement: Support for new NVIDIA images in the installer]]></title>
<id/>
<link href=""/>
<updated>2024-08-01T00:00:00.000Z</updated>
<summary type="html"><![CDATA[We have 2 different images for NVIDIA now, one for recent GPUs using the official Open NVIDIA drivers, one for old GPUs using the official proprietary NVIDIA drivers; the installer will automatically detect the hardware and pick the correct one. Version: N/A.]]></summary>
</entry>
<entry>
<title type="html"><![CDATA[Enhancement: New and improved translations]]></title>
<id/>
<link href=""/>
<updated>2024-08-01T00:00:00.000Z</updated>
<summary type="html"><![CDATA[One or more of the supported languages have been updated. Version: N/A.]]></summary>
</entry>
</feed>
<title>Vanilla OS Updates</title>
<subtitle>Live feed of Vanilla OS updates and changes.</subtitle>
<link rel="alternate" href="https://vanillaos.org/"/>
<updated>2024-10-26T12:24:34.289Z</updated>
<generator>Feed for Deno</generator>
<author>
<name>Vanilla OS Contributors</name>
<email>[email protected]</email>
</author>
<entry>
<title>Bug Fix: Fixed a critical bug that prevents the boot in the 1.0.3 image</title>
<link href="https://github.com/Vanilla-OS/desktop-image/releases/tag/v1.0.4"/>
<id>https://github.com/Vanilla-OS/desktop-image/releases/tag/v1.0.4</id>
<updated>2024-09-24T21:00:00.000Z</updated>
<summary>Affected: New and existing users. Fixed in version: N/A.</summary>
<content type="text">Affected: New and existing users. Fixed in version: N/A.</content>
</entry>
<entry>
<title>Enhancement: New Image Release with boot fixes</title>
<link href="https://github.com/Vanilla-OS/desktop-image/releases/tag/v1.0.4"/>
<id>https://github.com/Vanilla-OS/desktop-image/releases/tag/v1.0.4</id>
<updated>2024-09-24T21:00:00.000Z</updated>
<summary>We have shipped a new release across our images with a fix for a critical bug preventing the boot from happening. Version: 1.0.4.</summary>
<content type="text">We have shipped a new release across our images with a fix for a critical bug preventing the boot from happening. Version: 1.0.4.</content>
</entry>
<entry>
<title>Enhancement: New Image Release with updated packages and bug fixes</title>
<link href="https://github.com/Vanilla-OS/desktop-image/releases/tag/v1.0.2"/>
<id>https://github.com/Vanilla-OS/desktop-image/releases/tag/v1.0.2</id>
<updated>2024-09-20T21:00:00.000Z</updated>
<summary>We have shipped a new release across our images bringing updated packages and bug fixes to your Vanilla OS Installation. You will receive the update automatically via VSO in the forthcoming days (based on the your update settings). It can also be performed manually with abroot upgrade command (for updating the host alone) or with vso sys upgrade command (to update both the host and VSO shell environment). Version: 1.0.2.</summary>
<content type="text">We have shipped a new release across our images bringing updated packages and bug fixes to your Vanilla OS Installation. You will receive the update automatically via VSO in the forthcoming days (based on the your update settings). It can also be performed manually with abroot upgrade command (for updating the host alone) or with vso sys upgrade command (to update both the host and VSO shell environment). Version: 1.0.2.</content>
</entry>
<entry>
<title>Bug Fix: Fixed installer crashing while looking for Wi-Fi connections</title>
<link href="https://github.com/Vanilla-OS/vanilla-installer/pull/425"/>
<id>https://github.com/Vanilla-OS/vanilla-installer/pull/425</id>
<updated>2024-08-25T21:00:00.000Z</updated>
<summary>Affected: Users installing. Fixed in version: N/A.</summary>
<content type="text">Affected: Users installing. Fixed in version: N/A.</content>
</entry>
<entry>
<title>Bug Fix: Fixed missing wayland session and GDM freezes for most NVIDIA users</title>
<link href="https://github.com/Vanilla-OS/nvidia-image/pull/49"/>
<id>https://github.com/Vanilla-OS/nvidia-image/pull/49</id>
<updated>2024-08-04T21:00:00.000Z</updated>
<summary>Affected: NVIDIA users. Fixed in version: N/A.</summary>
<content type="text">Affected: NVIDIA users. Fixed in version: N/A.</content>
</entry>
<entry>
<title>Enhancement: Deprecated the nvidia-proprietary image</title>
<link href=""/>
<id></id>
<updated>2024-08-04T21:00:00.000Z</updated>
<summary>We have deprecated the nvidia-proprietary image and replaced by nvidia and nvidia-exp images. Once upgraded, Vanilla OS will ask the user to switch image by pointing to the documentation. Version: N/A.</summary>
<content type="text">We have deprecated the nvidia-proprietary image and replaced by nvidia and nvidia-exp images. Once upgraded, Vanilla OS will ask the user to switch image by pointing to the documentation. Version: N/A.</content>
</entry>
<entry>
<title>Enhancement: Removed multi image support for NVIDIA devices in installer</title>
<link href=""/>
<id></id>
<updated>2024-08-04T21:00:00.000Z</updated>
<summary>The installer now always proposes to install the nvidia image for all NVIDIA devices, since the nvidia-proprietary image got deprecated. Users who really need for recent drivers (at costs of possible issues) can opt for the Custom Image option during the installation and type ghcr.io/vanilla-os/nvidia-exp once asked. Version: N/A.</summary>
<content type="text">The installer now always proposes to install the nvidia image for all NVIDIA devices, since the nvidia-proprietary image got deprecated. Users who really need for recent drivers (at costs of possible issues) can opt for the Custom Image option during the installation and type ghcr.io/vanilla-os/nvidia-exp once asked. Version: N/A.</content>
</entry>
<entry>
<title>Enhancement: New and improved translations</title>
<link href=""/>
<id></id>
<updated>2024-08-04T21:00:00.000Z</updated>
<summary>One or more of the supported languages have been updated. Version: N/A.</summary>
<content type="text">One or more of the supported languages have been updated. Version: N/A.</content>
</entry>
<entry>
<title>Bug Fix: Newly created users were not able to complete the First Setup Wizard</title>
<link href="https://github.com/Vanilla-OS/first-setup/releases/tag/v2.2.3"/>
<id>https://github.com/Vanilla-OS/first-setup/releases/tag/v2.2.3</id>
<updated>2024-07-31T21:00:00.000Z</updated>
<summary>Affected: Newly created users. Fixed in version: 2.2.3.</summary>
<content type="text">Affected: Newly created users. Fixed in version: 2.2.3.</content>
</entry>
<entry>
<title>Bug Fix: Some NVIDIA setups were unable to boot</title>
<link href=""/>
<id></id>
<updated>2024-07-31T21:00:00.000Z</updated>
<summary>Affected: NVIDIA users on some specific setups. Fixed in version: N/A.</summary>
<content type="text">Affected: NVIDIA users on some specific setups. Fixed in version: N/A.</content>
</entry>
<entry>
<title>Enhancement: Support for custom images in the Installer</title>
<link href="https://github.com/Vanilla-OS/vanilla-installer/releases/tag/v2.3.7"/>
<id>https://github.com/Vanilla-OS/vanilla-installer/releases/tag/v2.3.7</id>
<updated>2024-07-31T21:00:00.000Z</updated>
<summary>Users can now use their own system images during the installation process. Usefull for OEMs and users who need specific firmware or drivers. Version: 2.3.7.</summary>
<content type="text">Users can now use their own system images during the installation process. Usefull for OEMs and users who need specific firmware or drivers. Version: 2.3.7.</content>
</entry>
<entry>
<title>Enhancement: Support for new NVIDIA images in the installer</title>
<link href=""/>
<id></id>
<updated>2024-07-31T21:00:00.000Z</updated>
<summary>We have 2 different images for NVIDIA now, one for recent GPUs using the official Open NVIDIA drivers, one for old GPUs using the official proprietary NVIDIA drivers; the installer will automatically detect the hardware and pick the correct one. Version: N/A.</summary>
<content type="text">We have 2 different images for NVIDIA now, one for recent GPUs using the official Open NVIDIA drivers, one for old GPUs using the official proprietary NVIDIA drivers; the installer will automatically detect the hardware and pick the correct one. Version: N/A.</content>
</entry>
<entry>
<title>Enhancement: New and improved translations</title>
<link href=""/>
<id></id>
<updated>2024-07-31T21:00:00.000Z</updated>
<summary>One or more of the supported languages have been updated. Version: N/A.</summary>
<content type="text">One or more of the supported languages have been updated. Version: N/A.</content>
</entry>
</feed>
26 changes: 14 additions & 12 deletions updates/generateUpdatesFeed.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Feed } from "npm:feed";
import { Atom } from "jsr:@feed/feed";
import { dirname, join } from "jsr:@std/path";

interface Bug {
Expand Down Expand Up @@ -28,7 +28,7 @@ const data: UpdateData = JSON.parse(
await Deno.readTextFile(join(__dirname, "_index.json")),
);

const feed = new Feed({
const feed = new Atom({
title: "Vanilla OS Updates",
description: "Live feed of Vanilla OS updates and changes.",
id: "https://info.vanillaos.org/updates-feed.xml",
Expand All @@ -38,11 +38,13 @@ const feed = new Feed({
feedLinks: {
atom: "https://info.vanillaos.org/updates-feed.xml",
},
author: {
name: "Vanilla OS",
email: "[email protected]",
link: "https://vanillaos.org/",
},
authors: [
{
name: "Vanilla OS Contributors",
email: "[email protected]",
link: "https://vanillaos.org/",
},
],
copyright: "Copyright (c) Vanilla OS Contributors",
});

Expand All @@ -55,10 +57,10 @@ Object.keys(data).forEach((date) => {
title: `Bug Fix: ${bug.title}`,
id: bug.link || "",
link: bug.link || "",
description: `Affected: ${bug.affected}. Fixed in version: ${
summary: `Affected: ${bug.affected}. Fixed in version: ${
bug.fixed || "N/A"
}.`,
date: new Date(date),
updated: new Date(date),
});
});

Expand All @@ -67,14 +69,14 @@ Object.keys(data).forEach((date) => {
title: `Enhancement: ${enhancement.title}`,
id: enhancement.link || "",
link: enhancement.link || "",
description: `${enhancement.description || ""} Version: ${
summary: `${enhancement.description || ""} Version: ${
enhancement.version || "N/A"
}.`,
date: new Date(date),
updated: new Date(date),
});
});
});

await Deno.writeTextFile(join(__dirname, "../updates-feed.xml"), feed.atom1());
await Deno.writeTextFile(join(__dirname, "../updates-feed.xml"), feed.build());

console.log("Atom feed generated.");

0 comments on commit 94165bf

Please sign in to comment.