mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Adds invoke script for automating release tasks (#324)
This commit is contained in:
parent
347692bf70
commit
ba1df2e817
1 changed files with 27 additions and 0 deletions
27
tasks.py
Normal file
27
tasks.py
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
"""Invoke tasks for building the app"""
|
||||
|
||||
from invoke import task
|
||||
|
||||
|
||||
@task
|
||||
def clean(c):
|
||||
"""Clean flutter build"""
|
||||
c.run("flutter clean")
|
||||
|
||||
|
||||
@task
|
||||
def translate(c):
|
||||
"""Update translation files"""
|
||||
c.run("cd lib/l10n && python collect_translations.py")
|
||||
|
||||
|
||||
@task(pre=[clean, translate])
|
||||
def ios(c):
|
||||
"""Build iOS app"""
|
||||
c.run("flutter build ipa --release --no-tree-shake-icons")
|
||||
|
||||
|
||||
@task(pre=[clean, translate])
|
||||
def android(c):
|
||||
"""Build Android app"""
|
||||
c.run("flutter build appbundle --release --no-tree-shake-icons")
|
||||
Loading…
Add table
Add a link
Reference in a new issue