Skip to content

Commit cb8bab6

Browse files
committed
build(fedora): update rpm build
1 parent a07078b commit cb8bab6

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,15 @@
3232

3333
devShells = forAllSystems (system: {
3434
default = pkgs.mkShell {
35-
nativeBuildInputs = with pkgs; [ rust.packages.stable.rustPlatform.rustcSrc rustc cargo rustPackages.clippy docker ];
35+
nativeBuildInputs = with pkgs; [
36+
rust.packages.stable.rustPlatform.rustcSrc
37+
rustc
38+
cargo
39+
rustPackages.clippy
40+
docker
41+
cargo-features-manager
42+
cargo-bloat
43+
];
3644
};
3745
});
3846

makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ none:
88

99
release: linux
1010
@mkdir -p "release/$(VERSION)"
11-
cp "target/$(LINUX_TARGET)/release/nyaa" "release/$(VERSION)/nyaa-$(VERSION)-$(LINUX_TARGET)"
12-
@echo "\nCommits since last tag:"
11+
cp "target/$(LINUX_TARGET)/github/nyaa" "release/$(VERSION)/nyaa-$(VERSION)-$(LINUX_TARGET)"
12+
@echo "Commits since last tag:"
1313
@git log $(shell git describe --tags --abbrev=0)..HEAD --oneline
1414

1515
win:
@@ -18,9 +18,12 @@ win:
1818
linux:
1919
cargo build --target $(LINUX_TARGET) --profile=github
2020

21-
fedora:
21+
github:
22+
cargo build --profile=github
23+
24+
fedora: github
2225
@mkdir -p "release/$(VERSION)"
23-
cargo generate-rpm
26+
cargo generate-rpm --profile github
2427
cp target/generate-rpm/nyaa-$(VERSION)*.rpm "release/$(VERSION)/"
2528

2629
deb:

0 commit comments

Comments
 (0)