Philipp Hörist pushed to branch master at gajim / gajim
Commits:
d61c60d4 by Philipp Hörist at 2024-09-14T10:12:54+02:00
ci: Build: Add windows dist switch
- - - - -
2 changed files:
- build.py
- win/_base.sh
Changes:
=====================================
build.py
=====================================
@@ -144,12 +144,10 @@ def install(*, prefix: Path) -> None:
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument(
- '--dist', choices=['flatpak', 'flatpak-nightly'], help='Distribution'
+ '--dist', choices=['flatpak', 'flatpak-nightly', 'win'],
help='Distribution'
)
- parser.add_argument(
- '--install', action='store_true', help='Install metadata files'
- )
+ parser.add_argument('--install', action='store_true', help='Install
metadata files')
parser.add_argument(
'--prefix',
@@ -159,12 +157,16 @@ 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()
+ build_translations()
+
+ if args.dist == 'win':
+ sys.exit()
+
if args.dist == 'flatpak':
configure_flatpak()
elif args.dist == 'flatpak-nightly':
@@ -174,7 +176,8 @@ def install(*, prefix: Path) -> None:
configure_file(METAINFO, CONFIG_VALUES)
configure_file(DESKTOP, CONFIG_VALUES)
+ METADATA.mkdir(parents=True, exist_ok=True)
+
build_man()
build_meta()
build_app_icons()
- build_translations()
=====================================
win/_base.sh
=====================================
@@ -145,7 +145,7 @@ function install_gajim {
cd ..
- build_python build.py
+ build_python build.py --dist=win
build_pip install .
QL_VERSION=$(MSYSTEM= build_python -c \
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d61c60d4db2a518b6ac611ec0757bfb1397cafed
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d61c60d4db2a518b6ac611ec0757bfb1397cafed
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]