feat: include olm to Windows builds
Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
This commit is contained in:
parent
71e501ed93
commit
18f51cda89
6 changed files with 44 additions and 10 deletions
7
scripts/build-olm-windows.sh
Executable file
7
scripts/build-olm-windows.sh
Executable 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 ..
|
||||
|
|
@ -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
|
||||
5
scripts/package-windows.ps1
Normal file
5
scripts/package-windows.ps1
Normal 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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue