Daniel Brötzmann pushed to branch master at gajim / gajim
Commits: 5acf8494 by wurstsalat at 2024-09-28T21:53:24+02:00 other: Windows: Add script to unpack msixbundle files - - - - - 3 changed files: - win/README.md - win/_base.sh - + win/unpack_msixbundle.sh Changes: ===================================== win/README.md ===================================== @@ -33,3 +33,12 @@ ## Build Gajim / Create an Installer Follow the steps in the Development section, but instead of `./dev_env.sh` execute `./build.sh`. Both the installer and the portable installer should appear in `C:\msys64\home\USER\gajim\win\_build_root`. + +## Register Development App from msixbundle + +To test Gajim's Microsoft Store msix bundle, the following steps are necessary: + +* Either build the msixbundle locally by running `./build.sh` as described above, or download a nightly build and place it in `C:\msys64\home\USER\gajim\win\_build_root\Gajim.msixbundle` +* Run `./unpack_msixbundle.sh`, which unpacks the bundle to `C:\msys64\home\USER\gajim\win\_build_root\unpack\Gajim` +* Open `C:\msys64\home\USER\gajim\win\_build_root\unpack\Gajim` in a PowerShell +* Now register the app by running `Add-AppxPackage –Register AppxManifest.xml` from a PowerShell ===================================== win/_base.sh ===================================== @@ -379,3 +379,13 @@ function build_msix_installer { makeappx bundle -d bundle/ -p Gajim.msixbundle -o ) } + +function unpack_msixbundle { + ( + cd ${BUILD_ROOT} + mkdir -p "${BUILD_ROOT}"/unpack + makeappx unbundle -p Gajim.msixbundle -d "${BUILD_ROOT}"/unpack + makeappx unpack -p "${BUILD_ROOT}"/unpack/Gajim_x64.msix -d "${BUILD_ROOT}"/unpack/Gajim + echo Unpacked msixbundle to "${BUILD_ROOT}"/unpack/Gajim + ) +} ===================================== win/unpack_msixbundle.sh ===================================== @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +# Copyright 2016 Christoph Reiter +# +# SPDX-License-Identifier: GPL-2.0-or-later + +DIR="$( cd "$( dirname "$0" )" && pwd )" +source "$DIR"/_base.sh + +function main { + set_build_root + unpack_msixbundle +} + +main "$@"; View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/5acf8494b97585c3c0474b065ad4d4f43d29a069 -- View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/5acf8494b97585c3c0474b065ad4d4f43d29a069 You're receiving this email because of your account on dev.gajim.org.
_______________________________________________ Commits mailing list -- commits@gajim.org To unsubscribe send an email to commits-le...@gajim.org