rpkg: Use NIRI_BUILD_COMMIT
Browse files at this commit64288de04ec80078dcfc9308dff4fde0ee933229Parent: fb4471e1 changed file +1 -4
- niri.spec.rpkg +1 -4
niri.spec.rpkgmodified+1 -4
| @@ -101,10 +101,6 @@ Opening a new window never causes existing windows to resize. | |||
| 101 | %prep | 101 | %prep |
| 102 | {{{ git_dir_setup_macro }}} | 102 | {{{ git_dir_setup_macro }}} |
| 103 | 103 | ||
| 104 | -# Make the version log message look nicer: since we're building not from niri's git repository, | ||
| 105 | -# the git version macro will show its fallback string. | ||
| 106 | -sed -i 's/"unknown commit"/"%{version}"/' src/utils/mod.rs | ||
| 107 | - | ||
| 108 | %cargo_prep -N | 104 | %cargo_prep -N |
| 109 | 105 | ||
| 110 | # We're doing an online build. | 106 | # We're doing an online build. |
| @@ -114,6 +110,7 @@ sed -i 's/^offline = true$//' .cargo/config.toml | |||
| 114 | sed -i 's/.*please-remove-me$//' .cargo/config.toml | 110 | sed -i 's/.*please-remove-me$//' .cargo/config.toml |
| 115 | 111 | ||
| 116 | %build | 112 | %build |
| 113 | +export NIRI_BUILD_COMMIT="%{version}" | ||
| 117 | %cargo_build | 114 | %cargo_build |
| 118 | 115 | ||
| 119 | %install | 116 | %install |