mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Made installer generation more clear about missing rpmbuild/dpkg-deb
This commit is contained in:
parent
09d15ccbcc
commit
fc3c5b717a
@ -3493,9 +3493,9 @@ def MakeInstallerLinux():
|
|||||||
oscmd("cd linuxroot ; (find etc -type f -exec md5sum {} \;) >> DEBIAN/md5sums")
|
oscmd("cd linuxroot ; (find etc -type f -exec md5sum {} \;) >> DEBIAN/md5sums")
|
||||||
WriteFile("linuxroot/DEBIAN/conffiles","/etc/Config.prc\n")
|
WriteFile("linuxroot/DEBIAN/conffiles","/etc/Config.prc\n")
|
||||||
WriteFile("linuxroot/DEBIAN/control",txt)
|
WriteFile("linuxroot/DEBIAN/control",txt)
|
||||||
WriteFile("linuxroot/DEBIAN/postinst","#!/bin/sh\necho running ldconfig\nldconfig\n")
|
WriteFile("linuxroot/DEBIAN/postinst","#!/bin/sh\necho running ldconfig\nldconfig\n")
|
||||||
oscmd("chmod 755 linuxroot/DEBIAN/postinst")
|
oscmd("chmod 755 linuxroot/DEBIAN/postinst")
|
||||||
oscmd("cp linuxroot/DEBIAN/postinst linuxroot/DEBIAN/postrm")
|
oscmd("cp linuxroot/DEBIAN/postinst linuxroot/DEBIAN/postrm")
|
||||||
oscmd("dpkg-deb -b linuxroot panda3d_"+VERSION+"_"+ARCH+".deb")
|
oscmd("dpkg-deb -b linuxroot panda3d_"+VERSION+"_"+ARCH+".deb")
|
||||||
oscmd("chmod -R 755 linuxroot")
|
oscmd("chmod -R 755 linuxroot")
|
||||||
|
|
||||||
@ -3506,6 +3506,9 @@ def MakeInstallerLinux():
|
|||||||
oscmd("rpmbuild --define '_rpmdir "+pandasource+"' -bb panda3d.spec")
|
oscmd("rpmbuild --define '_rpmdir "+pandasource+"' -bb panda3d.spec")
|
||||||
oscmd("mv "+ARCH+"/panda3d-"+VERSION+"-1."+ARCH+".rpm .")
|
oscmd("mv "+ARCH+"/panda3d-"+VERSION+"-1."+ARCH+".rpm .")
|
||||||
|
|
||||||
|
if not(os.path.exists("/usr/bin/rpmbuild") or os.path.exists("/usr/bin/dpkg-deb")):
|
||||||
|
exit("To build an installer, either rpmbuild or dpkg-deb must be present on your system!")
|
||||||
|
|
||||||
# oscmd("chmod -R 755 linuxroot")
|
# oscmd("chmod -R 755 linuxroot")
|
||||||
# oscmd("rm -rf linuxroot data.tar.gz control.tar.gz panda3d.spec "+ARCH)
|
# oscmd("rm -rf linuxroot data.tar.gz control.tar.gz panda3d.spec "+ARCH)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user