fix(update): zed-preview (#1935)

* fix(update): zed-preview

Signed-off-by: madomado <madonuko@outlook.com>

* fix spec

Signed-off-by: madomado <madonuko@outlook.com>

* Update zed-preview.spec

Signed-off-by: madomado <madonuko@outlook.com>

* yeah just don't remove -pre then

Signed-off-by: madomado <madonuko@outlook.com>

* other tidying

Signed-off-by: madomado <madonuko@outlook.com>

* oopsie

Signed-off-by: madomado <madonuko@outlook.com>

---------

Signed-off-by: madomado <madonuko@outlook.com>
This commit is contained in:
madomado
2024-08-19 02:54:19 +08:00
committed by GitHub
parent d07757e7bb
commit 6759bdfbf9
2 changed files with 4 additions and 5 deletions
-1
View File
@@ -1,7 +1,6 @@
let releases = "https://api.github.com/repos/zed-industries/zed/releases".get().json_arr();
for release in releases {
let tag = release.tag_name;
tag.pop(4); // remove the "-pre" suffix
tag.crop(1); // remove "v"
rpm.global("ver", tag);
break;
+4 -4
View File
@@ -1,6 +1,6 @@
%bcond_with check
%global ver 0.149.1
%global ver 0.149.1-pre
# Exclude input files from mangling
%global __brp_mangle_shebangs_exclude_from ^/usr/src/.*$
# Use Mold as the linker
@@ -10,13 +10,13 @@
%global app_id dev.zed.Zed-Preview
Name: zed-preview
Version: %ver
Version: %(echo %ver | sed 's/-/~/')
Release: pre1%?dist
Summary: Zed is a high-performance, multiplayer code editor
License: MIT
URL: https://zed.dev/
Source0: https://github.com/zed-industries/zed/archive/refs/tags/v%{ver}-pre.tar.gz
Source0: https://github.com/zed-industries/zed/archive/refs/tags/v%{ver}.tar.gz
Conflicts: zed
Provides: zed
@@ -44,7 +44,7 @@ BuildRequires: vulkan-loader
Code at the speed of thought - Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
%prep
%autosetup -n %{crate}-%{ver}-pre -p1
%autosetup -n %{crate}-%{ver} -p1
%cargo_prep_online
export DO_STARTUP_NOTIFY="true"