From dd6ba8e7920703ec3511f8df5b4fc08c8d5b9b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Qui=C3=B1ones?= Date: Sat, 15 Feb 2025 19:39:41 -0500 Subject: [PATCH] feat: variant version will be the default version + official variant The official variant will pin the official binaries from github:zen-browser/desktop, that's the option for people that doesn't trust the binaries of this repository. In other hand, the "twilight" package is pinned with artifacts that we store in this repository. The reason why this is default now is because I decided to follow the philosophy that is available in the official NixOS page(https://nixos.org/): reproducible, declarative and reliable. I know this could be a little bit invasive for some people but I think that they're just a minority and this is a problem that should be solved now given the time that has been passed since twilight was implemented. --- .github/update.sh | 4 ++-- flake.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/update.sh b/.github/update.sh index 3aadc32..08e2e8e 100755 --- a/.github/update.sh +++ b/.github/update.sh @@ -121,12 +121,12 @@ try_to_update() { echo "[skipping] An artifact $artifact_name already exists in $release_name @ following link: $self_download_url" fi - jq ".[\"twilight-resilient\"][\"$arch-linux\"] = {\"version\":\"$semver\",\"sha1\":\"$remote_sha1\",\"url\":\"$self_download_url\",\"sha256\":\"$sha256\"}" sources.json.tmp + jq ".[\"twilight\"][\"$arch-linux\"] = {\"version\":\"$semver\",\"sha1\":\"$remote_sha1\",\"url\":\"$self_download_url\",\"sha256\":\"$sha256\"}" sources.json.tmp mv sources.json.tmp sources.json done fi - jq ".[\"$version_name\"][\"$arch-linux\"] = {\"version\":\"$semver\",\"sha1\":\"$remote_sha1\",\"url\":\"$download_url\",\"sha256\":\"$sha256\"}" sources.json.tmp + jq ".[\"$version_name-official\"][\"$arch-linux\"] = {\"version\":\"$semver\",\"sha1\":\"$remote_sha1\",\"url\":\"$download_url\",\"sha256\":\"$sha256\"}" sources.json.tmp mv sources.json.tmp sources.json echo "$version_name was updated to $version" diff --git a/flake.nix b/flake.nix index c8ac523..3316f5f 100644 --- a/flake.nix +++ b/flake.nix @@ -154,7 +154,7 @@ default = mkZen "beta" system "beta"; beta = mkZen "beta" system "beta"; twilight = mkZen "twilight" system "twilight"; - twilight-resilient = mkZen "twilight" system "twilight-resilient"; + twilight-official = mkZen "twilight" system "twilight-official"; }); }; }