diff --git a/anda/devs/zed/preview/update.rhai b/anda/devs/zed/preview/update.rhai index 9a764d5fbc..26d0a43273 100644 --- a/anda/devs/zed/preview/update.rhai +++ b/anda/devs/zed/preview/update.rhai @@ -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; diff --git a/anda/devs/zed/preview/zed-preview.spec b/anda/devs/zed/preview/zed-preview.spec index 4cb816cea6..ba73f2d7c0 100644 --- a/anda/devs/zed/preview/zed-preview.spec +++ b/anda/devs/zed/preview/zed-preview.spec @@ -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"