Skip to content
This repository has been archived by the owner on May 21, 2022. It is now read-only.

Commit

Permalink
Deb and RPM stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyatt Jacob Herkamp committed Jun 6, 2021
1 parent 3b95706 commit e777d11
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .rpm/adoptopenjdk-installer.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
%define __spec_install_post %{nil}
%define __os_install_post %{_dbpath}/brp-compress
%define debug_package %{nil}

Name: adoptopenjdk-installer
Summary: A Linux installer for AdoptOpenJDK
Version: @@VERSION@@
Release: @@RELEASE@@%{?dist}
License: MIT
Group: Applications/System
Source0: %{name}-%{version}.tar.gz

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
%{summary}

%prep
%setup -q

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
cp -a * %{buildroot}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_bindir}/*
16 changes: 14 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ name = "adoptopenjdk-installer"
version = "0.1.0"
authors = ["wherkamp"]
edition = "2018"

license = "MIT"
repository = "https://github.com/wherkamp/adoptopenjdk-installer"
keywords = ["java"]
categories = ["command-line-utilities"]
description = "A Linux installer for AdoptOpenJDK "
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Expand All @@ -22,4 +26,12 @@ toml = "0.5.8"
whoami = "1.1.2"
[dependencies.reqwest]
version = "0.11.3"
features = ["json"]
features = ["json"]
[package.metadata.rpm]
package = "adoptopenjdk-installer"

[package.metadata.rpm.cargo]
buildflags = ["--release"]

[package.metadata.rpm.targets]
adoptopenjdk-installer = { path = "/usr/bin/adoptopenjdk-installer" }

0 comments on commit e777d11

Please sign in to comment.