Files
plezy/scripts/upload-symbols.ps1
edde746 f622ba8efe chore(scripts): group scripts into checks, codegen, maestro and release subdirectories
scripts/ had ~80 flat files. Entry points (ci_*.sh, codegen.sh, run_tests.sh, format_native.sh, setup_hooks.sh, upload-symbols.*) and the shared pubspec_version.py stay at the root; checkers, generators, maestro tooling and release tooling move into subdirectories with their tests. Updated every reference: workflow steps, guard-test glob, Docker COPY paths and .dockerignore whitelist, website audit path, dart test imports, and regenerated the five outputs whose headers embed generator paths.
2026-08-17 01:40:54 +02:00

27 lines
758 B
PowerShell
Executable File

#!/usr/bin/env pwsh
# Usage: upload-symbols.ps1 <platform> [source-root]
# Env: SENTRY_AUTH_TOKEN or BUGS_ADMIN_TOKEN (required unless BUGS_UPLOAD_DRY_RUN is set)
# SENTRY_URL or BUGS_URL (default https://bugs.plezy.app)
# Platforms: windows-x64 | windows-arm64
param(
[Parameter(Mandatory = $true)]
[string]$Platform,
[string]$SourceRoot
)
$ErrorActionPreference = 'Stop'
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
$Root = Split-Path -Parent $ScriptDir
Set-Location $Root
if ([string]::IsNullOrEmpty($SourceRoot)) {
& dart run scripts/release/upload_symbols.dart $Platform
}
else {
& dart run scripts/release/upload_symbols.dart $Platform $SourceRoot
}
if ($LASTEXITCODE -ne 0) {
exit $LASTEXITCODE
}