Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc45b86271 | ||
|
|
84c5cda668 | ||
|
|
bc96cb13d9 | ||
|
|
f7f2f0cddd | ||
|
|
05b06b1fc1 | ||
|
|
748d58f036 |
No files matched your search
@@ -60,3 +60,8 @@ jobs:
|
|||||||
dart pub get
|
dart pub get
|
||||||
if ($LASTEXITCODE) { exit 1 }
|
if ($LASTEXITCODE) { exit 1 }
|
||||||
dart test test/updater_test.dart
|
dart test test/updater_test.dart
|
||||||
|
# The release build, without publishing: a broken Windows build shows
|
||||||
|
# here, not only on a tag.
|
||||||
|
- name: Windows build
|
||||||
|
shell: powershell
|
||||||
|
run: powershell -NoProfile -ExecutionPolicy Bypass -File tool/package_windows.ps1
|
||||||
@@ -228,11 +228,11 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: "v0.1.8"
|
ref: "v0.1.9"
|
||||||
resolved-ref: d2435a06b26d4f94c3c3777e6ef006ac84f4eef4
|
resolved-ref: ef96868b87e55935792f392dd5881d49bc672ce5
|
||||||
url: "https://git.senkochan.moe/Foxyz/fox_utils.git"
|
url: "https://git.senkochan.moe/Foxyz/fox_utils.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.1.8"
|
version: "0.1.9"
|
||||||
hive_ce:
|
hive_ce:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@@ -748,14 +748,14 @@ packages:
|
|||||||
path: "../../packages/core"
|
path: "../../packages/core"
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "1.0.1"
|
version: "1.1.0"
|
||||||
sync_relay_server:
|
sync_relay_server:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "../../packages/server"
|
path: "../../packages/server"
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "1.0.1"
|
version: "1.1.0"
|
||||||
synchronized:
|
synchronized:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: watch_together
|
name: watch_together
|
||||||
description: Watch-together desktop app (working title, repo sync_relay_project). One binary.
|
description: Watch-together desktop app (working title, repo sync_relay_project). One binary.
|
||||||
publish_to: none
|
publish_to: none
|
||||||
version: 1.1.0
|
version: 1.1.1
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=3.13.0-0 <4.0.0'
|
sdk: '>=3.13.0-0 <4.0.0'
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ dependencies:
|
|||||||
fox_utils:
|
fox_utils:
|
||||||
git:
|
git:
|
||||||
url: https://git.senkochan.moe/Foxyz/fox_utils.git
|
url: https://git.senkochan.moe/Foxyz/fox_utils.git
|
||||||
ref: v0.1.8
|
ref: v0.1.9
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: sync_relay_core
|
name: sync_relay_core
|
||||||
description: Pure-Dart protocol, sync engine, media-source abstractions. No Flutter.
|
description: Pure-Dart protocol, sync engine, media-source abstractions. No Flutter.
|
||||||
version: 1.1.0
|
version: 1.1.1
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.0.0
|
sdk: ^3.0.0
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: sync_relay_server
|
name: sync_relay_server
|
||||||
description: Pure-Dart sync + media server. Embeddable, no Flutter.
|
description: Pure-Dart sync + media server. Embeddable, no Flutter.
|
||||||
publish_to: none
|
publish_to: none
|
||||||
version: 1.1.0
|
version: 1.1.1
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.0.0
|
sdk: ^3.0.0
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|||||||
@@ -25,9 +25,35 @@ function Invoke-Checked([string]$What, [scriptblock]$Cmd) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (-not $SkipBuild) {
|
if (-not $SkipBuild) {
|
||||||
|
# The host runner keeps the pub cache between jobs; its clone of a git
|
||||||
|
# dependency (fox_utils) went stale ("some refs were not updated") and
|
||||||
|
# resolved the wrong revision. Git deps are tiny: always fetch them fresh.
|
||||||
|
$PubCache = if ($env:PUB_CACHE) { $env:PUB_CACHE } else { Join-Path $env:LOCALAPPDATA 'Pub\Cache' }
|
||||||
|
foreach ($d in @((Join-Path $PubCache 'git'), (Join-Path $PubCache 'git\cache'))) {
|
||||||
|
Get-ChildItem -Path $d -Directory -Filter 'fox_utils*' -ErrorAction SilentlyContinue |
|
||||||
|
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
}
|
||||||
Push-Location $App
|
Push-Location $App
|
||||||
try {
|
try {
|
||||||
Invoke-Checked 'flutter build windows' { flutter build windows --release "--dart-define=APP_VERSION=$Version" }
|
Invoke-Checked 'flutter pub get' { flutter pub get }
|
||||||
|
} finally { Pop-Location }
|
||||||
|
Push-Location $App
|
||||||
|
try {
|
||||||
|
flutter build windows --release "--dart-define=APP_VERSION=$Version"
|
||||||
|
if ($LASTEXITCODE -ne 0) {
|
||||||
|
# Flutter hides MSBuild's messages: rebuild verbosely and show only
|
||||||
|
# the compiler/linker errors, so CI logs say what broke.
|
||||||
|
# Through cmd and with 'Continue': under 'Stop' PowerShell aborts on
|
||||||
|
# the first stderr line of a native command.
|
||||||
|
$ErrorActionPreference = 'Continue'
|
||||||
|
$log = cmd /c "flutter build windows --release -v --dart-define=APP_VERSION=$Version 2>&1"
|
||||||
|
$ErrorActionPreference = 'Stop'
|
||||||
|
Write-Host '--- error lines ---'
|
||||||
|
$log | Select-String -Pattern 'error' | ForEach-Object { $_.Line } | Select-Object -Unique -First 60
|
||||||
|
Write-Host '--- last lines ---'
|
||||||
|
$log | Select-Object -Last 80
|
||||||
|
throw 'flutter build windows failed'
|
||||||
|
}
|
||||||
} finally { Pop-Location }
|
} finally { Pop-Location }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"protocol": 11,
|
"protocol": 11,
|
||||||
"url": "https://git.senkochan.moe/Foxyz/sync_replay_project/releases/download/v1.1.0/watch-together-1.1.0-linux-x64.tar.gz",
|
"url": "https://git.senkochan.moe/Foxyz/sync_replay_project/releases/download/v1.1.1/watch-together-1.1.1-linux-x64.tar.gz",
|
||||||
"notes": "- One updater for app and server: updater in core; watch-together-server --upgrade / --check-update; update.sh uses the server",
|
"notes": "- CI (Windows): fetch git dependencies fresh; the host's cached fox_utils clone was stale",
|
||||||
"assets": {
|
"assets": {
|
||||||
"linux-x64": "https://git.senkochan.moe/Foxyz/sync_replay_project/releases/download/v1.1.0/watch-together-1.1.0-linux-x64.tar.gz",
|
"linux-x64": "https://git.senkochan.moe/Foxyz/sync_replay_project/releases/download/v1.1.1/watch-together-1.1.1-linux-x64.tar.gz",
|
||||||
"windows-x64": "https://git.senkochan.moe/Foxyz/sync_replay_project/releases/download/v1.1.0/watch-together-1.1.0-windows-x64.zip"
|
"windows-x64": "https://git.senkochan.moe/Foxyz/sync_replay_project/releases/download/v1.1.1/watch-together-1.1.1-windows-x64.zip"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user