Skip to content

Commit

Permalink
improved rpm conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
msciabarra committed Oct 14, 2023
1 parent 390bf24 commit 75f6cef
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions bin/linux/nuvfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,19 @@ tasks:

download:
- curl -L https://raw.githubusercontent.com/mh-cbon/latest/master/install.sh | GH=mh-cbon/go-bin-deb sh -xe
- sudo apt-get -y install alien
- sudo apt-get -y install alien rpm

assemble:
- rm -r deb-build-{{.ARCH}}
- go-bin-deb generate -a {{.ARCH}} --version {{.VERSION}} --wd deb-build-{{.ARCH}}
- sudo alien --to-rpm nuv_{{.VERSION}}_{{.ARCH}}.deb --scripts
- |
mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
cd rpmbuild
sudo alien --to-rpm $NUV_PWD/../nuv_{{.VERSION}}_{{.ARCH}}.deb --scripts --generate
sudo mv nuv-*/*.spec SPECS
sudo mv nuv-*/* BUILD/
sudo rpmbuild --buildroot $PWD/BUILD -bb SPECS/nuv*.spec
cd ..
- mv nuv-*.rpm nuv_{{.VERSION}}_{{.ARCH}}.rpm

clean: rm -r *.deb *.rpm deb-build-{{.ARCH}}
Expand Down

0 comments on commit 75f6cef

Please sign in to comment.