Skip to content
Snippets Groups Projects
Commit 15901956 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

cfix: Build: Don’t build and install in the same step

parent 694aa25e
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ ### Building the metadata files and translation
```
Afterwards metadata files can be found in the `dist` folder.
Afterwards metadata files can be found in `dist/metadata` folder.
### Building the wheel
......
......@@ -7,6 +7,7 @@
import logging
import shutil
import subprocess
import sys
from pathlib import Path
logging.basicConfig(level='INFO', format='%(message)s')
......@@ -159,6 +160,10 @@ def install(*, prefix: Path) -> None:
args = parser.parse_args()
METADATA.mkdir(parents=True, exist_ok=True)
if args.install:
install(prefix=args.prefix)
sys.exit()
if args.dist == 'flatpak':
configure_flatpak()
elif args.dist == 'flatpak-nightly':
......@@ -172,6 +177,3 @@ def install(*, prefix: Path) -> None:
build_meta()
build_app_icons()
build_translations()
if args.install:
install(prefix=args.prefix)
......@@ -402,7 +402,8 @@ modules:
- name: gajim
buildsystem: simple
build-commands:
- ./build.py --dist=flatpak-nightly --install --prefix=/app
- ./build.py --dist=flatpak-nightly
- ./build.py --install --prefix=/app
- pip3 install --no-build-isolation .
- cp -t ${FLATPAK_DEST} app-overrides.json
sources:
......
......@@ -397,7 +397,8 @@ modules:
- name: gajim
buildsystem: simple
build-commands:
- ./build.py --dist=flatpak --install --prefix=/app
- ./build.py --dist=flatpak
- ./build.py --install --prefix=/app
- pip3 install --no-build-isolation .
- cp -t ${FLATPAK_DEST} app-overrides.json
sources:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment