Skip to content

Commit

Permalink
build(fedora): update rpm build
Browse files Browse the repository at this point in the history
  • Loading branch information
Beastwick18 committed Jun 30, 2024
1 parent a07078b commit cb8bab6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,15 @@

devShells = forAllSystems (system: {
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [ rust.packages.stable.rustPlatform.rustcSrc rustc cargo rustPackages.clippy docker ];
nativeBuildInputs = with pkgs; [
rust.packages.stable.rustPlatform.rustcSrc
rustc
cargo
rustPackages.clippy
docker
cargo-features-manager
cargo-bloat
];
};
});

Expand Down
11 changes: 7 additions & 4 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ none:

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

win:
Expand All @@ -18,9 +18,12 @@ win:
linux:
cargo build --target $(LINUX_TARGET) --profile=github

fedora:
github:
cargo build --profile=github

fedora: github
@mkdir -p "release/$(VERSION)"
cargo generate-rpm
cargo generate-rpm --profile github
cp target/generate-rpm/nyaa-$(VERSION)*.rpm "release/$(VERSION)/"

deb:
Expand Down

0 comments on commit cb8bab6

Please sign in to comment.