Rimesso tutto in carreggiata. Build dovrebbero tutte prodursi al prossimo giro.
This commit is contained in:
parent
0fcae9c164
commit
1508540847
10
build.py
10
build.py
@ -77,13 +77,13 @@ class Build(object):
|
|||||||
self.__unpackbuild__('standard', False)
|
self.__unpackbuild__('standard', False)
|
||||||
|
|
||||||
# Run to build standard full help
|
# Run to build standard full help
|
||||||
#self.__unpackbuild__('standard', True)
|
self.__unpackbuild__('standard', True)
|
||||||
|
|
||||||
# Build full no help
|
# Build full no help
|
||||||
#self.__unpackbuild__('full', False)
|
self.__unpackbuild__('full', False)
|
||||||
|
|
||||||
# Full with help
|
# Full with help
|
||||||
#self.__unpackbuild__('full', True)
|
self.__unpackbuild__('full', True)
|
||||||
|
|
||||||
def __unpackbuild__(self, languageset = 'full', offlinehelp = False):
|
def __unpackbuild__(self, languageset = 'full', offlinehelp = False):
|
||||||
# We start by filtering out tarballs from the list
|
# We start by filtering out tarballs from the list
|
||||||
@ -112,6 +112,7 @@ class Build(object):
|
|||||||
os.chdir(self.appnamedir)
|
os.chdir(self.appnamedir)
|
||||||
# At this point, let's decompress the deb packages
|
# At this point, let's decompress the deb packages
|
||||||
subprocess.run("find .. -iname '*.deb' -exec dpkg -x {} . \;", shell=True, cwd=self.appimagedir)
|
subprocess.run("find .. -iname '*.deb' -exec dpkg -x {} . \;", shell=True, cwd=self.appimagedir)
|
||||||
|
os.makedirs(self.appimagedir, exist_ok = True)
|
||||||
# Changing desktop file
|
# Changing desktop file
|
||||||
subprocess.run("find . -iname startcenter.desktop -exec cp {} . \;", shell=True, cwd=self.appimagedir)
|
subprocess.run("find . -iname startcenter.desktop -exec cp {} . \;", shell=True, cwd=self.appimagedir)
|
||||||
appname = 'LibreOffice' if not self.__query__ == 'daily' else 'LibreOfficeDev'
|
appname = 'LibreOffice' if not self.__query__ == 'daily' else 'LibreOfficeDev'
|
||||||
@ -146,7 +147,6 @@ class Build(object):
|
|||||||
for deb in glob.glob(self.appnamedir + '/*.deb'):
|
for deb in glob.glob(self.appnamedir + '/*.deb'):
|
||||||
os.remove(deb)
|
os.remove(deb)
|
||||||
subprocess.run("find . -type d -maxdepth 1 -exec rm -rf {} \+", shell=True)
|
subprocess.run("find . -type d -maxdepth 1 -exec rm -rf {} \+", shell=True)
|
||||||
os.makedirs(self.appimagedir)
|
|
||||||
|
|
||||||
def checksums(self):
|
def checksums(self):
|
||||||
"""Create checksums of the built versions."""
|
"""Create checksums of the built versions."""
|
||||||
@ -164,7 +164,7 @@ class Build(object):
|
|||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
"""Destructor"""
|
"""Destructor"""
|
||||||
#del self.__builddir__
|
del self.__builddir__
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Reference in New Issue
Block a user