]> code.delx.au - refind/blobdiff - mkdistrib
Changes to RPM .spec file and installation script to make for better
[refind] / mkdistrib
index 4ce2c68c84b32c6c74c19eac9d988c7f1096501a..47942b291b6c9a8db8ca514535950a846761f597 100755 (executable)
--- a/mkdistrib
+++ b/mkdistrib
@@ -86,19 +86,24 @@ fi
 cp refind-bin-$1/refind/refind_x64.efi $StartDir
 cp -a docs keys COPYING.txt LICENSE.txt README.txt CREDITS.txt NEWS.txt install.sh mkrlconf.sh refind-bin-$1
 
-# Prepare the final .zip file and clean up
-if [[ $SignIt == 1 ]] ; then
-   umount $KeysDir
-fi
+# Prepare the final .zip file
 zip -9r ../refind-bin-$1.zip refind-bin-$1
 cd ..
 rm -r refind-$1
 
-# Prepare the RPM files
+# Prepare the RPM & Debian package files
 cp refind-src-$1.zip ~/rpmbuild/SOURCES/
 rpmbuild -ba $StartDir/refind.spec
 mv ~/rpmbuild/RPMS/*/refind-$1* ./
 mv ~/rpmbuild/SRPMS/refind-$1* ./
+sudo alien --to-deb -k -c refind-$1*x86_64.rpm
+sudo chown rodsmith: refind*deb
+rm ~/rpmbuild/SOURCES/refind-src-$1.zip
+
+# Clean up
+if [[ $SignIt == 1 ]] ; then
+   umount $KeysDir
+fi
 
 # Finish
 cd $StartDir