mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 12:25:11 +00:00
fix windows
This commit is contained in:
parent
82195f4dc5
commit
14bd9ff937
3 changed files with 18 additions and 24 deletions
|
@ -32,30 +32,16 @@ build_web:
|
||||||
paths:
|
paths:
|
||||||
- build/web/
|
- build/web/
|
||||||
|
|
||||||
#build_windows:
|
build_windows:
|
||||||
# extends:
|
extends:
|
||||||
# - .shared_windows_runners
|
- .shared_windows_runners
|
||||||
# stage: coverage
|
stage: coverage
|
||||||
# script:
|
before_script: [./scripts/prepare-windows.ps1]
|
||||||
# # Install chocolately
|
script: [./scripts/build-windows.ps1]
|
||||||
# - Set-ExecutionPolicy Bypass -Scope Process
|
artifacts:
|
||||||
# - Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
paths:
|
||||||
# - choco install git -y
|
- build/windows/runner/Release
|
||||||
# - choco install visualstudio2019community -y --package-parameters "--add Microsoft.VisualStudio.Product.BuildTools --includeRecommended --includeOptional --passive --locale en-US"
|
allow_failure: true
|
||||||
# - cd ..; git clone https://github.com/flutter/flutter.git -b dev; $env:path += ";C:\GitLab-Runner\builds\famedly\flutter\bin"; cd fluffychat
|
|
||||||
# - flutter doctor
|
|
||||||
# - flutter config --enable-windows-desktop
|
|
||||||
# - '$package_override = "`r`ndependency_overrides:`r`n intl: 0.17.0-nullsafety.2"'
|
|
||||||
# - '[System.IO.File]::AppendAllText("$CI_PROJECT_DIR/pubspec.yaml", $package_override, [System.Text.Encoding]::UTF8)'
|
|
||||||
# - flutter clean
|
|
||||||
# - flutter pub get
|
|
||||||
# - flutter build windows
|
|
||||||
# needs: []
|
|
||||||
# artifacts:
|
|
||||||
# paths:
|
|
||||||
# - build/windows/runner/Release/
|
|
||||||
# name: "Binaries"
|
|
||||||
# allow_failure: true
|
|
||||||
|
|
||||||
build_android_debug:
|
build_android_debug:
|
||||||
stage: coverage
|
stage: coverage
|
||||||
|
|
5
scripts/build-windows.ps1
Normal file
5
scripts/build-windows.ps1
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
flutter doctor
|
||||||
|
flutter config --enable-windows-desktop
|
||||||
|
flutter clean
|
||||||
|
flutter pub get
|
||||||
|
flutter build windows --release -v
|
3
scripts/prepare-windows.ps1
Normal file
3
scripts/prepare-windows.ps1
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
choco install flutter -y
|
||||||
|
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
|
||||||
|
refreshenv
|
Loading…
Reference in a new issue