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.
This commit is contained in:
Luis Quiñones
2025-02-15 19:39:41 -05:00
parent 6997a72c8a
commit dd6ba8e792
2 changed files with 3 additions and 3 deletions

4
.github/update.sh vendored
View File

@@ -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 >sources.json.tmp
jq ".[\"twilight\"][\"$arch-linux\"] = {\"version\":\"$semver\",\"sha1\":\"$remote_sha1\",\"url\":\"$self_download_url\",\"sha256\":\"$sha256\"}" <sources.json >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 >sources.json.tmp
jq ".[\"$version_name-official\"][\"$arch-linux\"] = {\"version\":\"$semver\",\"sha1\":\"$remote_sha1\",\"url\":\"$download_url\",\"sha256\":\"$sha256\"}" <sources.json >sources.json.tmp
mv sources.json.tmp sources.json
echo "$version_name was updated to $version"

View File

@@ -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";
});
};
}