Skip to content

Commit

Permalink
fix unknown release version
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcarroty authored Aug 29, 2024
1 parent 4a927c2 commit 6c2cfd2
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions zed.spec
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,19 @@ Code at the speed of thought - Zed is a high-performance, multiplayer code edito


%prep
export APP_ZED="zed-editor"
export APP_CLI="zed"
export APP_ICON="zed"
export APP_NAME="Zed"
export ZED_BUNDLE=true
export DO_STARTUP_NOTIFY="false"
%setup -q -n zed-%{version}



%build
unset https_proxy http_proxy
export RELEASE_VERSION=%{version}
export ZED_UPDATE_EXPLANATION="Please use the swupd or cf-zed-updater to update zed."
export RUSTFLAGS="$RUSTFLAGS -C target-cpu=westmere -C target-feature=+avx,+fma,+avx2 -C opt-level=3 -C codegen-units=1 -C panic=abort -C link-args=-Wl,--disable-new-dtags,-rpath,\$ORIGIN/../lib "
# --cfg gles <= doesn't works, saved for the future
Expand All @@ -43,13 +51,6 @@ strip target/release/zed target/release/cli


%install
export RELEASE_VERSION=%{version}
export ZED_BUNDLE=true
export DO_STARTUP_NOTIFY="false"
export APP_ZED="zed-editor"
export APP_CLI="zed"
export APP_ICON="zed"
export APP_NAME="Zed"
envsubst < crates/zed/resources/zed.desktop.in > crates/zed/resources/zed.desktop
install -D -m0755 target/release/cli %{buildroot}/usr/bin/zed
install -D -m0755 target/release/zed %{buildroot}/usr/libexec/zed-editor
Expand Down

0 comments on commit 6c2cfd2

Please sign in to comment.