- Explicitly just enable unstable features with --features unstable

- Rebuild wasm-wasi plugins manually.

OBS-URL: https://build.opensuse.org/package/show/utilities/zellij?expand=0&rev=25
This commit is contained in:
Soc Virnyl Estela 2022-10-09 02:07:00 +00:00 committed by Git OBS Bridge
parent 58c43103eb
commit 786eb33a43
2 changed files with 19 additions and 13 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Oct 9 02:05:25 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Explicitly just enable unstable features with `--features unstable`
- Rebuild wasm-wasi plugins manually.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Oct 8 10:51:51 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com> Sat Oct 8 10:51:51 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>

View File

@ -78,25 +78,25 @@ Zsh command-line completion support for %{name}.
mkdir -p .cargo mkdir -p .cargo
cp %{SOURCE2} .cargo/config cp %{SOURCE2} .cargo/config
# Remove prebuilt binaries # Remove prebuilt binaries
# rm assets/plugins/* rm assets/plugins/*
%build %build
# First rebuilt plugins we just deleted # First rebuilt plugins we just deleted
# Note: RUSTFLAGS break linking with WASM-files, so we don't use the cargo_build-macro here # Note: RUSTFLAGS break linking with WASM-files, so we don't use the cargo_build-macro here
# pushd default-plugins/status-bar pushd default-plugins/status-bar
# cargo --offline build --release --target=wasm32-wasi cargo --offline build --release --target=wasm32-wasi
# popd popd
# pushd default-plugins/tab-bar pushd default-plugins/tab-bar
# cargo --offline build --release --target=wasm32-wasi cargo --offline build --release --target=wasm32-wasi
# popd popd
# pushd default-plugins/strider pushd default-plugins/strider
# cargo --offline build --release --target=wasm32-wasi cargo --offline build --release --target=wasm32-wasi
# popd popd
# Move the results to the place they are expected # Move the results to the place they are expected
# mv target/wasm32-wasi/release/*.wasm assets/plugins/ mv target/wasm32-wasi/release/*.wasm assets/plugins/
# Build zellij proper # Build zellij proper
%{cargo_build} --all-features %{cargo_build} --features unstable
./target/release/zellij setup --generate-completion bash > target/zellij.bash ./target/release/zellij setup --generate-completion bash > target/zellij.bash
./target/release/zellij setup --generate-completion fish > target/zellij.fish ./target/release/zellij setup --generate-completion fish > target/zellij.fish
./target/release/zellij setup --generate-completion zsh > target/zellij.zsh ./target/release/zellij setup --generate-completion zsh > target/zellij.zsh
@ -105,7 +105,7 @@ cp %{SOURCE2} .cargo/config
install -Dm644 -T ./target/zellij.bash %{buildroot}%{_datadir}/bash-completion/completions/zellij install -Dm644 -T ./target/zellij.bash %{buildroot}%{_datadir}/bash-completion/completions/zellij
install -Dm644 -T ./target/zellij.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/zellij.fish install -Dm644 -T ./target/zellij.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/zellij.fish
install -Dm644 -T ./target/zellij.zsh %{buildroot}%{_datadir}/zsh/site-functions/_zellij install -Dm644 -T ./target/zellij.zsh %{buildroot}%{_datadir}/zsh/site-functions/_zellij
%{cargo_install} --all-features %{cargo_install} --features unstable
%if %{with test} %if %{with test}
%check %check