feat: include olm to Windows builds

Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
This commit is contained in:
TheOneWithTheBraid 2022-09-16 13:50:20 +02:00
commit 18f51cda89
6 changed files with 44 additions and 10 deletions

7
scripts/build-olm-windows.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
git clone https://gitlab.matrix.org/matrix-org/olm.git -b 3.2.12
cd olm
cmake . -Bbuild -DCMAKE_TOOLCHAIN_FILE=Windows64.cmake
cmake --build build
cd ..

View file

@ -3,10 +3,5 @@ flutter config --enable-windows-desktop
flutter clean
flutter pub get
Write-Output "$WINDOWN_PFX"
Move-Item -Path $WINDOWS_PFX -Destination fluffychat.pem
certutil -decode fluffychat.pem fluffychat.pfx
flutter build windows --release -v
flutter pub run msix:create -c fluffychat.pfx -p $WINDOWS_PFX_PASS --sign-msix true --install-certificate false

View file

@ -0,0 +1,5 @@
Write-Output "$WINDOWN_PFX"
Move-Item -Path $WINDOWS_PFX -Destination fluffychat.pem
certutil -decode fluffychat.pem fluffychat.pfx
flutter pub run msix:create -c fluffychat.pfx -p $WINDOWS_PFX_PASS --sign-msix true --install-certificate false

View file

@ -1,4 +1,4 @@
choco install flutter -y
choco install flutter cmake --installargs 'ADD_CMAKE_TO_PATH=System' -y
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
refreshenv