Skip to content

Packaging scripts: 6 reproduced defects (macOS version strings, notarize exit code, Tauri double autostart, ...) #1575

Backlog

Description

@TimeToBuildBob

These defects came out of a review of the packaging scripts at fc1ac55. Each one was reproduced, or read from the source with a concrete trigger. They are not fixed yet. Fixed separately: #1572 (bump-submodules EOF), #1573 (deb pre-release version and stale staging dir) and #1574 (ABI gate scanned nothing).

  1. aw.spec macOS app version can come from the research tag or from git's error text (aw.spec:67-71, used at 261/268).
    • Cause: it uses a bare git describe --tags --abbrev=0, with no --exclude '*-research' and with stderr=STDOUT, instead of scripts/package/getversion.sh.
    • Repro (scratch repo):
      • A research tag on an earlier commit gives 0.14.0b5-research, while getversion.sh gives v0.14.0b5.dev-<hash>.
      • v0.14.1 and v0.14.1-research on the same commit give 0.14.1-research.
      • With no tags it gives fatal: No names found, cannot describe anything.
  2. CFBundleVersion is not numeric (build_app_tauri.sh:10,122, aw.spec:268). It receives 0.14.0b5, 0.14.0b5.dev-<hash> or 0.14.0b4-research, but Apple defines it as 1-3 dot-separated integers. windows-version-info.py already has a numeric_version() that could be reused.
  3. scripts/notarize.sh discards notarization failures.
    • There is no set -e, and the return codes of run_notarytool (lines 38/40) are ignored at 96/104.
    • If no tool is found it exits 0.
    • A stub xcrun returning status: Invalid with a succeeding stapler exits 0.
    • Today only the real stapler failing turns CI red.
    • Separately, the .app is stapled after the DMG has been packed, so the app-level ticket never reaches users. Not verified.
  4. The Tauri installer adds a second autostart that the app cannot turn off (scripts/package/aw-tauri.iss:45,54).
  5. Signing step 1 parses raw file output (build_app_tauri.sh:180-184,254).
    • For universal binaries, macOS file prints path (for architecture x86_64): lines, which cut turns into non-existent paths.
    • A filename containing a quote makes xargs stop, so nothing is signed and no error is raised.
    • Whether today's bundle contains such files is unknown.
  6. scripts/symlink-systemd.sh is broken in four ways.
    • It links aw-watcher-x11, which doesn't exist, so the link dangles.
    • $(pwd) is unquoted.
    • It never runs mkdir -p ~/.config/systemd/user.
    • A second run fails with File exists.
    • Not used by CI.

Lower priority:

  • package-appimage.sh has no set -e and downloads an unpinned linuxdeploy continuous build with no checksum.
  • checkout-latest-tag.sh sorts v0.14.0b3-research above v0.14.0 and isn't referenced anywhere.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions