1
0
Fork 0

Primo push con nuova versione del build.

This commit is contained in:
Emiliano Vavassori 2022-03-31 00:24:21 +02:00
parent 11570940f7
commit 6510226227
2 changed files with 9 additions and 8 deletions

View File

@ -7,15 +7,16 @@ import loaih
@click.command()
@click.option('-a', '--arch', 'arch', type=click.Choice(['x86', 'x86_64', 'all'], case_sensitive=False), default='all', help="Build the AppImage for a specific architecture. If there is no specific options, the process will build for both architectures (if available). Default: all")
@click.option('-c/-C', '--check/--no-check', 'check', default=True, help="Check in the final storage if the queried version is existent. Default: check")
@click.option('-d', '--download-path', 'download_path', default = '/var/tmp/downloads', type=str, help="Path to the download folder. Default: /var/tmp/downloads")
@click.option('-l', '--language', 'language', default = 'basic', type=str, help="Languages to be included. Options: basic, standard, full, a language string (e.g. 'it') or a list of languages comma separated (e.g.: 'en-US,en-GB,it'). Default: basic")
@click.option('-o/-O', '--offline-help/--no-offline-help', 'offline', default = False, help="Include or not the offline help for the chosen languages. Default: no offline help")
@click.option('-p/-P', '--portable/--no-portable', 'portable', default = False, help="Create a portable version of the AppImage or not. Default: no portable")
@click.option('-r', '--repo-path', 'repo_path', default = '/srv/http/appimage.sys42.eu', type=str, help="Path to the final storage of the AppImage. Default: /srv/http/appimage.sys42.eu")
@click.option('-s/-S', '--sign/--no-sign', 'sign', default=False, help="Wether to sign the build. Default: no-sign")
@click.option('-u/-U', '--updatable/--no-updatable', 'updatable', default = True, help="Create an updatable version of the AppImage or not. Default: updatable")
@click.option('-d', '--download-path', 'download', default = '/var/tmp/downloads', type=str, help="Path to the download folder. Default: /var/tmp/downloads")
@click.option('-s', '--storage-path', 'storage', default = '/srv/http/appimage.sys42.eu', type=str, help="Path to the final storage of the AppImage. Default: /srv/http/appimage.sys42.eu")
@click.option('-c/-C', '--check/--no-check', 'check', default=True, help="Check in the final storage if the queried version is existent. Default: check")
@click.argument('query')
def build(arch, language, offline, portable, updatable, download, storage, check, query):
def build(arch, language, offline, portable, updatable, download_path, repo_path, check, sign, query):
# Parsing options
arches = []
if arch.lower() == 'all':
@ -61,11 +62,11 @@ def build(arch, language, offline, portable, updatable, download, storage, check
obj.updatable = updatable
if check:
obj.check(storage)
obj.check(repo_path)
else:
obj.storage_path = storage
obj.storage_path = repo_path
obj.download(download)
obj.download(download_path)
obj.build()
obj.checksums()
obj.publish()

View File

@ -6,7 +6,7 @@ from setuptools import setup,find_packages
setup(
name="loaih",
version="1.0.1",
version="1.1.0",
description="LOAIH - LibreOffice AppImage Helpers, help build a LibreOffice AppImage",
author="Emiliano Vavassori",
author_email="syntaxerrormmm@libreoffice.org",