Skip to content

Your Android phone and your Windows PC, working as one. Local-first, end-to-end encrypted, no account.

ARM64 packaging: review fixes

Beec80b07a89a5f
diff --git a/docs/technical/releasing.md b/docs/technical/releasing.md
index 173952b..226d7ea 100644
--- a/docs/technical/releasing.md
+++ b/docs/technical/releasing.md
@@ -5,7 +5,7 @@ apps update themselves afterwards.
## What a release is
-A GitHub release with three files:
+A GitHub release with four files:
| File | Built by |
|---|---|
@@ -14,8 +14,9 @@ A GitHub release with three files:
| `Nectarlink-<version>-android.apk` | The `android` job: a release build for 64-bit and 32-bit ARM, signed with the release key and checked with `apksigner verify` |
| `SHA256SUMS.txt` | The `publish` job, over all installers and APKs |
-Both apps' updaters need all four: they only accept an installer that
-`SHA256SUMS.txt` lists with a matching hash.
+Each app's updater needs its own file and `SHA256SUMS.txt`: it only
+accepts an installer that `SHA256SUMS.txt` lists with a matching hash.
+Each Windows updater picks the installer for its own architecture.
## Steps
@@ -32,7 +33,7 @@ Both apps' updaters need all four: they only accept an installer that
The `Release` workflow refuses a tag that doesn't match `Cargo.toml`.
4. **Review the draft.** The workflow creates a draft release with generated
notes. Edit the notes (what's new, anything users must do), check the
- three files are there, then **Publish**. Installed copies see it within a
+ four files are there, then **Publish**. Installed copies see it within a
day: updaters skip drafts and pre-releases.
## Signing
diff --git a/scripts/package.ps1 b/scripts/package.ps1
index a5429d9..7d383a9 100644
--- a/scripts/package.ps1
+++ b/scripts/package.ps1
@@ -161,8 +161,10 @@ if (Test-Path (Join-Path $root 'desktop\app\i18n')) {
$translationSources = @(Get-ChildItem (Join-Path $root 'desktop\app\i18n') -Filter '*.ts')
}
if ($translationSources.Count -gt 0) {
- $lrelease = Join-Path $QtRoot 'bin\lrelease.exe'
- if (-not (Test-Path $lrelease)) { throw "lrelease not found under $QtRoot; pass -QtRoot" }
+ # A host tool: the x64 kit's, as an ARM64 kit's own can't run here.
+ $lrelease = Join-Path $hostKit 'bin\lrelease.exe'
+ if (-not (Test-Path $lrelease)) { $lrelease = Join-Path $QtRoot 'bin\lrelease.exe' }
+ if (-not (Test-Path $lrelease)) { throw "lrelease not found under $hostKit or $QtRoot; pass -QtRoot" }
foreach ($source in $translationSources) {
$ts = $source.FullName
$qm = Join-Path $stage "$($source.BaseName).qm"
@@ -182,7 +184,8 @@ foreach ($style in 'Fusion', 'Imagine', 'Material', 'Universal') {
# so it runs on PCs without the Visual C++ Redistributable.
$vswhere = Join-Path ${env:ProgramFiles(x86)} 'Microsoft Visual Studio\Installer\vswhere.exe'
$vs = if (Test-Path $vswhere) {
- & $vswhere -latest -products * -property installationPath
+ $component = if ($isArm64) { 'Microsoft.VisualStudio.Component.VC.Tools.ARM64' } else { 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64' }
+ & $vswhere -latest -products * -requires $component -property installationPath
} else { $null }
$crtArch = if ($isArm64) { 'arm64' } else { 'x64' }
$redistDirs = @()